[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240510024729.1075732-2-justin.he@arm.com>
Date: Fri, 10 May 2024 02:47:28 +0000
From: Jia He <justin.he@....com>
To: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Namhyung Kim <namhyung@...nel.org>
Cc: Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
Ian Rogers <irogers@...gle.com>,
Adrian Hunter <adrian.hunter@...el.com>,
Kan Liang <kan.liang@...ux.intel.com>,
James Clark <james.clark@....com>,
linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jia He <justin.he@....com>
Subject: [PATCH 1/2] perf pmu: Allow finishing loading json events when !events_table
Otherwise, cpu_aliases_added is never set to true on an Arm v8a
Neoverse N2 server.
Signed-off-by: Jia He <justin.he@....com>
---
tools/perf/util/pmu.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c
index f39cbbc1a7ec..a1eef7b2e389 100644
--- a/tools/perf/util/pmu.c
+++ b/tools/perf/util/pmu.c
@@ -915,13 +915,11 @@ void pmu_add_cpu_aliases_table(struct perf_pmu *pmu, const struct pmu_events_tab
static void pmu_add_cpu_aliases(struct perf_pmu *pmu)
{
- if (!pmu->events_table)
- return;
-
if (pmu->cpu_aliases_added)
return;
- pmu_add_cpu_aliases_table(pmu, pmu->events_table);
+ if (pmu->events_table)
+ pmu_add_cpu_aliases_table(pmu, pmu->events_table);
pmu->cpu_aliases_added = true;
}
--
2.34.1
Powered by blists - more mailing lists