From patchwork Sat Sep 4 23:10:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 1524702 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=izSdvpsW; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H29R20PQqz9sRf for ; Sun, 5 Sep 2021 09:11:57 +1000 (AEST) Received: from localhost ([::1]:47946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMepG-0001b5-Ip for incoming@patchwork.ozlabs.org; Sat, 04 Sep 2021 19:11:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMeoa-0001aq-QP for qemu-devel@nongnu.org; Sat, 04 Sep 2021 19:11:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:50443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMeoV-0002jN-Jh for qemu-devel@nongnu.org; Sat, 04 Sep 2021 19:11:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630797065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+N+Jc5dyr1JwhVXPicVRmvKkcUCOH4GU1N5fYhc7py0=; b=izSdvpsW23nQOyUSJ84XZ6JJmz72v0X21UewUlRmMbZr9Oq/4uZl8oph7cu1+Ob88CNVs7 zrdj0XZWDF1rEHt2XwrJ+ohwCFiPx5S1hBplcmMDQi+Cu5Y7Flw07EC4g+4sebZlEzRwcw gQE1q/c+/6MzbJkm1s/mvevPOcvlYqs= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-560-rXh6_l17MpCpvn5MDA95PQ-1; Sat, 04 Sep 2021 19:11:04 -0400 X-MC-Unique: rXh6_l17MpCpvn5MDA95PQ-1 Received: by mail-wm1-f72.google.com with SMTP id y188-20020a1c7dc5000000b002e80e0b2f87so1778104wmc.1 for ; Sat, 04 Sep 2021 16:11:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/g2SGWmc5qs6Urh9ljwmf2by5EM6rBHhxfoRd9k/VVY=; b=mDvlnmgPgYA3deovL7FA/wkooGjNmMXprZsKpGapT2xlBWi5y4bFofAGNidVRzY2DM 2F8GYgaJPITn0/q0mZsJL3g/5nCrSMbKHtbUeSELviA0cAXNLF0vuI6jga41l0MBUP1l 5PFnwB18Y7a5aE90AVULAa72YqQACIBjWbuWMlG4+yM5B/iQX+wxOfr5rj7HmKO3ut86 dwJgPPMrzyIbkWiPtv3K5btF1Bk1LslSGmPJ/NDed2JY8wZ0GxWCtfEuDM4VfzyKfHpJ 3W0a7LKhbKna3JWo1mubxg2uZ/ihx52ld7DO9Si/87l8UYiJvX8SsREt7BsakRl9qaRv IC+g== X-Gm-Message-State: AOAM533UNIL3idp5Mu+xNJu2LJRk5aTuV/HkAUG1RVeAVcL+YGbpk9im dvPdT/Yt+Opvi0cQGYU+kyPH8+wcwG2lGYVNUONb7vjyZRJm+jdORAzmbmFHInMadrHyTFjyF7b y8cTc0+Y1gmRDja+P71lF2c93oIvewnBQrhI+iaE9d1AJ9k52wlj9C2SUcmsd82EP X-Received: by 2002:adf:fd51:: with SMTP id h17mr5841593wrs.178.1630797063200; Sat, 04 Sep 2021 16:11:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtqlydsQ3gmdRFY56lTY1G/XHbjuGnG8CHNIX6UW5WnTrs4TxVBiByoTMyir5PCHANKt7J1g== X-Received: by 2002:adf:fd51:: with SMTP id h17mr5841572wrs.178.1630797062920; Sat, 04 Sep 2021 16:11:02 -0700 (PDT) Received: from x1w.. (21.red-83-52-55.dynamicip.rima-tde.net. [83.52.55.21]) by smtp.gmail.com with ESMTPSA id z19sm3758435wma.0.2021.09.04.16.11.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Sep 2021 16:11:02 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v7 0/2] memory: Have 'info mtree' remove duplicated Address Space information Date: Sun, 5 Sep 2021 01:10:59 +0200 Message-Id: <20210904231101.1071929-1-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.391, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Hildenbrand , Mark Cave-Ayland , Peter Xu , Gerd Hoffmann , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Series fully reviewed. Follow Peter Maydell suggestions: - Split mtree_info() as mtree_info_flatview() + mtree_info_as() - Remove duplicated Address Space information Since v6: - Added missing vertical whitespace (rth) - Added rth's R-b Since v5: - Fixed messed up during v3->v4 (peterx) . Restore format . Remove unused 'int counter' Since v4: - Merged patches 1 & 2 (David) - Remove unnecessary return void (David) - Added David R-b Since v3: - Fix typos - Split mtree_info_flatview() + mtree_info_as() first - Rebased last patch keeping Peter's R-b tag Since v2: - Removed unused AddressSpaceInfo::counter Since v1: - List AS similarly to 'info mtree -f' (peterx) checkpatch warning (81 chars): WARNING: line over 80 characters #86: FILE: softmmu/memory.c:3359: + address_space_compare_name); Philippe Mathieu-Daudé (2): memory: Split mtree_info() as mtree_info_flatview() + mtree_info_as() memory: Have 'info mtree' remove duplicated Address Space information softmmu/memory.c | 150 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 108 insertions(+), 42 deletions(-)