
Jean-Philippe RomainandGreg Kroah-Hartman
f38ab496c7
perf list: Fix topic and pmu_name argument order
[ Upstream commit d99b312572 ]
Fix function definitions to match header file declaration. Fix two
callers to pass the arguments in the right order.
On Intel Tigerlake, before:
```
$ perf list -j|grep "\"Topic\""|sort|uniq
"Topic": "cache",
"Topic": "cpu",
"Topic": "floating point",
"Topic": "frontend",
"Topic": "memory",
"Topic": "other",
"Topic": "pfm icl",
"Topic": "pfm ix86arch",
"Topic": "pfm perf_raw",
"Topic": "pipeline",
"Topic": "tool",
"Topic": "uncore interconnect",
"Topic": "uncore memory",
"Topic": "uncore other",
"Topic": "virtual memory",
$ perf list -j|grep "\"Unit\""|sort|uniq
"Unit": "cache",
"Unit": "cpu",
"Unit": "cstate_core",
"Unit": "cstate_pkg",
"Unit": "i915",
"Unit": "icl",
"Unit": "intel_bts",
"Unit": "intel_pt",
"Unit": "ix86arch",
"Unit": "msr",
"Unit": "perf_raw",
"Unit": "power",
"Unit": "tool",
"Unit": "uncore_arb",
"Unit": "uncore_clock",
"Unit": "uncore_imc_free_running_0",
"Unit": "uncore_imc_free_running_1",
```
After:
```
$ perf list -j|grep "\"Topic\""|sort|uniq
"Topic": "cache",
"Topic": "floating point",
"Topic": "frontend",
"Topic": "memory",
"Topic": "other",
"Topic": "pfm icl",
"Topic": "pfm ix86arch",
"Topic": "pfm perf_raw",
"Topic": "pipeline",
"Topic": "tool",
"Topic": "uncore interconnect",
"Topic": "uncore memory",
"Topic": "uncore other",
"Topic": "virtual memory",
$ perf list -j|grep "\"Unit\""|sort|uniq
"Unit": "cpu",
"Unit": "cstate_core",
"Unit": "cstate_pkg",
"Unit": "i915",
"Unit": "icl",
"Unit": "intel_bts",
"Unit": "intel_pt",
"Unit": "ix86arch",
"Unit": "msr",
"Unit": "perf_raw",
"Unit": "power",
"Unit": "tool",
"Unit": "uncore_arb",
"Unit": "uncore_clock",
"Unit": "uncore_imc_free_running_0",
"Unit": "uncore_imc_free_running_1",
```
Fixes: e5c6109f48 ("perf list: Reorganize to use callbacks to allow honouring command line options")
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Jean-Philippe Romain <jean-philippe.romain@foss.st.com>
Tested-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Junhao He <hejunhao3@huawei.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20241109025801.560378-1-irogers@google.com
[ I fixed the two callers and added it to Jean-Phillippe's original change. ]
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-09 10:32:28 +01:00
..
2023-06-21 08:53:31 -06:00
2024-04-27 17:11:34 +02:00
2023-06-12 18:18:13 -03:00
2024-06-12 11:12:23 +02:00
2023-08-16 08:48:06 -03:00
2023-08-16 08:46:45 -03:00
2023-08-03 17:01:28 -03:00
2023-06-12 15:57:53 -03:00
2023-06-12 15:57:53 -03:00
2023-08-23 08:41:52 -03:00
2024-10-04 16:29:24 +02:00
2024-10-04 16:29:24 +02:00
2023-06-12 15:57:53 -03:00
2024-06-21 14:38:39 +02:00
2024-10-04 16:29:24 +02:00
2024-10-04 16:29:24 +02:00
2023-11-20 11:59:25 +01:00
2024-01-25 15:35:54 -08:00
2024-01-25 15:35:54 -08:00
2023-08-15 16:41:48 -03:00
2023-08-03 17:01:24 -03:00
2023-08-16 08:37:52 -03:00
2023-08-25 10:24:10 -03:00
2023-05-28 10:24:14 -03:00
2024-08-11 12:47:18 +02:00
2023-06-12 15:57:54 -03:00
2023-08-15 16:41:48 -03:00
2023-05-27 09:38:25 -03:00
2023-05-27 09:38:25 -03:00
2023-05-27 09:42:38 -03:00
2024-12-09 10:32:23 +01:00
2023-06-12 18:18:13 -03:00
2023-06-12 15:57:53 -03:00
2024-03-26 18:19:43 -04:00
2024-01-25 15:35:55 -08:00
2023-09-29 23:55:05 -07:00
2023-06-23 21:47:20 -07:00
2023-06-23 21:47:20 -07:00
2023-07-11 11:41:07 -03:00
2024-01-25 15:35:54 -08:00
2024-01-25 15:35:54 -08:00
2024-06-12 11:12:15 +02:00
2023-07-28 19:01:16 -03:00
2024-12-09 10:32:24 +01:00
2024-12-09 10:32:24 +01:00
2023-06-12 15:57:54 -03:00
2023-05-12 15:21:49 -03:00
2024-03-26 18:19:44 -04:00
2023-07-01 17:57:43 -07:00
2024-06-12 11:12:31 +02:00
2023-08-17 14:12:14 -03:00
2023-08-17 14:12:14 -03:00
2023-08-17 14:12:14 -03:00
2023-06-20 22:18:58 -07:00
2024-01-25 15:35:52 -08:00
2023-09-11 10:31:02 -03:00
2024-01-25 15:35:54 -08:00
2023-05-23 12:20:14 -03:00
2023-06-12 18:18:14 -03:00
2024-01-25 15:35:52 -08:00
2024-10-10 11:58:09 +02:00
2024-10-04 16:29:24 +02:00
2023-06-12 15:57:53 -03:00
2024-06-12 11:12:23 +02:00
2023-06-12 15:57:54 -03:00
2023-08-22 16:53:32 -03:00
2024-10-10 12:49:09 +02:00
2023-06-23 21:47:20 -07:00
2023-06-23 21:47:20 -07:00
2024-06-12 11:12:29 +02:00
2024-06-12 11:12:29 +02:00
2024-01-25 15:35:51 -08:00
2023-08-25 10:22:16 -03:00
2023-12-13 18:45:34 +01:00
2023-06-16 09:56:36 -03:00
2023-09-02 08:12:15 -03:00
2023-09-02 08:12:15 -03:00
2023-08-31 16:24:55 -03:00
2023-11-20 11:59:28 +01:00
2023-05-28 10:24:14 -03:00
2024-06-12 11:12:32 +02:00
2023-08-16 08:49:10 -03:00
2023-08-16 08:52:45 -03:00
2024-12-09 10:32:28 +01:00
2024-06-12 11:12:32 +02:00
2024-06-12 11:12:32 +02:00
2023-08-24 10:38:04 -03:00
2024-12-09 10:32:28 +01:00
2023-08-29 14:16:14 -03:00
2024-03-26 18:19:51 -04:00
2023-08-29 14:16:14 -03:00
2024-06-12 11:12:13 +02:00
2023-08-07 16:40:29 -03:00
2024-12-09 10:32:25 +01:00
2024-12-09 10:32:25 +01:00
2023-08-16 08:37:52 -03:00
2024-06-12 11:12:32 +02:00
2023-08-29 14:16:14 -03:00
2024-10-04 16:29:23 +02:00
2024-10-10 11:58:09 +02:00
2023-06-20 17:03:43 -07:00
2023-06-20 17:03:43 -07:00
2024-10-04 16:29:23 +02:00
2024-03-26 18:19:47 -04:00
2023-06-14 18:19:06 -03:00
2024-10-04 16:29:24 +02:00
2024-08-03 08:54:27 +02:00
2023-07-24 18:23:18 -03:00
2023-06-16 10:17:45 -03:00
2024-06-12 11:13:02 +02:00
2024-06-12 11:13:02 +02:00
2023-08-29 14:13:48 -03:00
2024-06-12 11:12:16 +02:00
2023-06-23 21:47:20 -07:00
2023-08-11 11:27:50 -03:00
2024-06-12 11:12:29 +02:00
2024-06-12 11:12:29 +02:00
2023-08-29 14:16:14 -03:00
2023-06-05 11:36:17 -03:00
2023-05-27 09:38:59 -03:00
2024-03-26 18:19:46 -04:00
2023-08-14 11:46:51 +02:00
2024-10-10 12:49:09 +02:00
2024-10-10 12:49:09 +02:00
2024-10-04 16:29:24 +02:00
2024-10-04 16:29:23 +02:00
2024-06-12 11:12:16 +02:00
2023-06-23 22:30:16 -07:00
2023-06-23 22:30:16 -07:00
2023-05-02 08:36:14 -03:00
2024-01-25 15:35:53 -08:00
2024-01-25 15:35:53 -08:00
2023-06-12 15:57:53 -03:00
2023-08-16 08:48:06 -03:00
2023-06-12 15:57:53 -03:00