projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfcbc2f
)
perf list: Filter metrics too
author
Andi Kleen
<
[email protected]
>
Thu, 14 Mar 2019 22:49:53 +0000
(15:49 -0700)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Tue, 19 Mar 2019 14:56:19 +0000
(11:56 -0300)
When a filter is specified on the command line, filter the metrics too.
Before:
% perf list foo
List of pre-defined events (to be used in -e):
Metric Groups:
DSB:
DSB_Coverage
[Fraction of Uops delivered by the DSB (aka Decoded Icache; or Uop Cache)]
... more metrics ...
After:
% perf list foo
List of pre-defined events (to be used in -e):
Metric Groups:
Signed-off-by: Andi Kleen <
[email protected]
>
Acked-by: Jiri Olsa <
[email protected]
>
LPU-Reference:
20190314225002
[email protected]
Link:
https://lkml.kernel.org/n/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/builtin-list.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-list.c
b/tools/perf/builtin-list.c
index c9f98d00c0e998292d334c92bcfa4186a74dd6bc..a8394b4f116746250d5ee5bbb7339e12a54ca5e9 100644
(file)
--- a/
tools/perf/builtin-list.c
+++ b/
tools/perf/builtin-list.c
@@
-119,7
+119,7
@@
int cmd_list(int argc, const char **argv)
details_flag);
print_tracepoint_events(NULL, s, raw_dump);
print_sdt_events(NULL, s, raw_dump);
- metricgroup__print(true, true,
NULL
, raw_dump, details_flag);
+ metricgroup__print(true, true,
s
, raw_dump, details_flag);
free(s);
}
}