diff options
| author | Namhyung Kim <[email protected]> | 2020-09-09 05:58:48 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-09-09 14:12:10 +0000 |
| commit | fac49a3bc4030524c155d9d59f3d7d14e771fe6f (patch) | |
| tree | b49ef76e0bc34200868c46aa33c5c8354000131a /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | perf list: Remove dead code in argument check (diff) | |
| download | kernel-fac49a3bc4030524c155d9d59f3d7d14e771fe6f.tar.gz kernel-fac49a3bc4030524c155d9d59f3d7d14e771fe6f.zip | |
perf list: Do not print 'Metric Groups:' unnecessarily
It was printed unconditionally even if nothing is printed.
Check if the output list empty when filter is given.
Before:
$ ./perf list duration
List of pre-defined events (to be used in -e):
duration_time [Tool event]
Metric Groups:
After:
$ ./perf list duration
List of pre-defined events (to be used in -e):
duration_time [Tool event]
Signed-off-by: Namhyung Kim <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
