From patchwork Wed Sep 1 16:19:40 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: 1523307 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=F57YOHxN; 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 4H08w56xsWz9sXN for ; Thu, 2 Sep 2021 02:41:41 +1000 (AEST) Received: from localhost ([::1]:45466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLTIx-0005Ov-OQ for incoming@patchwork.ozlabs.org; Wed, 01 Sep 2021 12:41:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLSxq-0002HN-DU for qemu-devel@nongnu.org; Wed, 01 Sep 2021 12:19:52 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:22530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLSxo-0003ir-DA for qemu-devel@nongnu.org; Wed, 01 Sep 2021 12:19:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630513187; 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=o9k4VULlBtEVICWMDzetVlf0jUIflUHHlITC/iwhe74=; b=F57YOHxN6Kcmc7Jq6eXU4giw5GUXkcO1F/3ZFfUsrhLlVA2hOSJPbkBeqYq0lcaMrKh2du WgZ1V96wVQ4uQU6DWu2n05783zzdyxeaOGzWiYtkIMoI0baLV41ZvD5Q+Yz7zVrhLmvHQO 9Pdt2e1IIqCrPDEIgO0bYKAZMG5vGCA= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-518-cC5_KxyjNwK5q0Dpsg_8DQ-1; Wed, 01 Sep 2021 12:19:46 -0400 X-MC-Unique: cC5_KxyjNwK5q0Dpsg_8DQ-1 Received: by mail-wm1-f69.google.com with SMTP id p5-20020a7bcc85000000b002e7563efc4cso24854wma.4 for ; Wed, 01 Sep 2021 09:19:46 -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=VUR3axTjLiG/ZmEq+5IjJWrMokvFs7tsIqlEnqCtVGE=; b=jhBYDap2qAH3o09YtmK3qCDcBKOFmNReOrf8z8JJlnVAlByPa2C2+CsvfNb8jZcd0V QWPabNKIgssma3MtnCtuO92SOXTWz9q5bs+IOfxV6hBD4TG5xMEwiiyN8Rh4x+QpUYaD NaPTCQYNM8aBRZwIhf0ldTE6MvM5u+pYCejtXSDYehWD7KecC8MJ5ERjKZelVZwJJkD1 /twBdtaf6/iFnFZGEXf6PF/FBov+q1qszJDuoBE40mV46prkcKH53eM3tyt74F8YJ4O4 JfRkeaN3vVNARxEP+V32r8Fh65WMVfgUPLu+uPdVciuzFkgTFdVb3w4l7EtMZGHYAb5m 529g== X-Gm-Message-State: AOAM532iTld4oDCmlyHXcfR+PrMWYtzspHWN74L+FXWkZ8wYTI/kGxrg qzmFqk41upNq9n7E0W0JDBtdftXrcmWhXpGSwemF3wmtr3nf4oKxsWm2aCClOuL/IImX8aGsWzW 3SG4QTvjagcgN2NkIveMpPHaStL8wXc2SFoyMXezXyQr+SNf7lbQjtuS8pPLOhW4k X-Received: by 2002:adf:e449:: with SMTP id t9mr170320wrm.135.1630513185162; Wed, 01 Sep 2021 09:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGr1wp7QZC5BfQRsSSnN3AlEID5pNrco+6K7wNPYw2XV1NMiQyBmTe4sWAXhVrVjCx2r4OVw== X-Received: by 2002:adf:e449:: with SMTP id t9mr170284wrm.135.1630513184860; Wed, 01 Sep 2021 09:19:44 -0700 (PDT) Received: from x1w.redhat.com (163.red-83-52-55.dynamicip.rima-tde.net. [83.52.55.163]) by smtp.gmail.com with ESMTPSA id m1sm25318wmq.10.2021.09.01.09.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Sep 2021 09:19:44 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v4 0/3] memory: Have 'info mtree' remove duplicated Address Space information Date: Wed, 1 Sep 2021 18:19:40 +0200 Message-Id: <20210901161943.4174212-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.392, 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" Follow Peter Maydell suggestions: - Split mtree_info() as mtree_info_flatview() + mtree_info_as() - Remove duplicated Address Space information Since v3: - Fix typos - Split mtree_info_flatview() + mtree_info_as() first - Rebased last patch keeping Peter's R-b tag Philippe Mathieu-Daudé (3): memory: Extract mtree_info_flatview() from mtree_info() memory: Extract mtree_info_as() from mtree_info() memory: Have 'info mtree' remove duplicated Address Space information softmmu/memory.c | 160 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 118 insertions(+), 42 deletions(-)