From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD91CC388F7 for ; Fri, 13 Nov 2020 17:27:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5BE9D2223C for ; Fri, 13 Nov 2020 17:27:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726066AbgKMR1P (ORCPT ); Fri, 13 Nov 2020 12:27:15 -0500 Received: from foss.arm.com ([217.140.110.172]:42258 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726397AbgKMR1O (ORCPT ); Fri, 13 Nov 2020 12:27:14 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E5C3B1042; Fri, 13 Nov 2020 09:27:13 -0800 (PST) Received: from e121896.arm.com (unknown [10.57.58.204]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1FC283F718; Fri, 13 Nov 2020 09:27:12 -0800 (PST) From: James Clark To: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, jolsa@redhat.com Cc: james.clark@arm.com, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Namhyung Kim , Thomas Richter , John Garry Subject: [PATCH 00/13 v4] perf tools: fix perf stat with large socket IDs Date: Fri, 13 Nov 2020 19:26:41 +0200 Message-Id: <20201113172654.989-1-james.clark@arm.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org v3 had a mistake in a couple of my signed off lines so I have fixed them in v4. v3 breaks up the previous v2 patchset into smaller atomic commits. The end result is the same as the previous patchset apart from some minor refactoring, asserting on an empty header and calling cpu__setup_cpunode_map() in the topology self test. Testing done: Tested --per-core, --per-thread, --per-die, --per-node 'perf stat' outputs on Arm ThunderX2 and Intel KNL. Also tested 'perf stat record' and 'perf stat report --input' with recordings from a version of perf before this patchset to confirm that the output was the same. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Thomas Richter Cc: John Garry James Clark (13): perf tools: Improve topology test perf tools: Use allocator for perf_cpu_map perf tools: Add new struct for cpu aggregation perf tools: Replace aggregation ID with a struct perf tools: add new map type for aggregation perf tools: drop in cpu_aggr_map struct perf tools: restrict visibility of functions perf tools: Start using cpu_aggr_id in map perf tools: Add separate node member perf tools: Add separate socket member perf tools: Add separate die member perf tools: Add separate core member perf tools: add thread field tools/perf/builtin-stat.c | 128 +++++++++++++------------ tools/perf/tests/topology.c | 58 +++++++++-- tools/perf/util/cpumap.c | 170 ++++++++++++++++++++++----------- tools/perf/util/cpumap.h | 55 ++++++----- tools/perf/util/stat-display.c | 106 +++++++++++--------- tools/perf/util/stat.c | 2 +- tools/perf/util/stat.h | 9 +- 7 files changed, 332 insertions(+), 196 deletions(-) -- 2.28.0