diff options
author | Ian Rogers <irogers@google.com> | 2024-02-16 20:20:44 +0100 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-02-17 01:07:34 +0100 |
commit | 81377de00f117706211ced7f6adcb9a5a94ba326 (patch) | |
tree | 6fba01b956b73d87664cdcfc265d8851ab5d606b /lib/list-test.c | |
parent | perf tools: Fixup module symbol end address properly (diff) | |
download | linux-81377de00f117706211ced7f6adcb9a5a94ba326.tar.xz linux-81377de00f117706211ced7f6adcb9a5a94ba326.zip |
perf list: For metricgroup only list include description
If perf list is invoked with 'metricgroups' include the description
unless it is invoked with flags to exclude it. Make the description of
metricgroup dumping dependent on the desc flag in print_state as with
metrics.
Before:
```
$ perf list metricgroups
List of pre-defined events (to be used in -e or -M):
Metric Groups:
Backend
Bad
BadSpec
...
```
After:
```
$ perf list metricgroups
List of pre-defined events (to be used in -e or -M):
Metric Groups:
Backend [Grouping from Top-down Microarchitecture Analysis Metrics spreadsheet]
Bad [Grouping from Top-down Microarchitecture Analysis Metrics spreadsheet]
BadSpec
...
```
Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240216192044.119897-1-irogers@google.com
Diffstat (limited to 'lib/list-test.c')
0 files changed, 0 insertions, 0 deletions