]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf list: Also append PMU name in verbose mode
authorJames Clark <james.clark@linaro.org>
Wed, 19 Feb 2025 15:16:21 +0000 (15:16 +0000)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 19 Feb 2025 21:23:43 +0000 (13:23 -0800)
commit687b8c3938af61230bc954f5ecf349d3a449b12a
treef42c0af073030acfdec938f892ece8f165dd0c8b
parent2ed0e3ea8aac156b43e9c6a452d751723785fc4b
perf list: Also append PMU name in verbose mode

When listing in verbose mode, the long description is used but the PMU
name isn't appended. There doesn't seem to be a reason to exclude it
when asking for more information, so use the same print block for both
long and short descriptions.

Before:
  $ perf list -v
  ...
  inst_retired
       [Instruction architecturally executed]

After:
  $ perf list -v
  ...
   inst_retired
       [Instruction architecturally executed. Unit: armv8_cortex_a57]

Signed-off-by: James Clark <james.clark@linaro.org>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250219151622.1097289-1-james.clark@linaro.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-list.c