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:
6acd8e9
)
perf evlist: Display WEIGHT sample type bit
author
Jiri Olsa
<
[email protected]
>
Wed, 25 Nov 2015 15:36:55 +0000
(16:36 +0100)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Thu, 26 Nov 2015 19:54:00 +0000
(16:54 -0300)
Adding WIEGHT bit_name call to display sample_type properly.
$ perf evlist -v
cpu/mem-loads/pp: ...SNIP... sample_type: IP|TID|TIME|ADDR|ID|CPU|DATA_SRC|WEIGHT ...
Signed-off-by: Jiri Olsa <
[email protected]
>
Tested-by: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/evsel.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/evsel.c
b/tools/perf/util/evsel.c
index 397fb4ed3c97b6deffeffd8f69bbceb886ac58ea..0a1f4d9e52fc0e0180b6ebeb96e0b1849f3c8da7 100644
(file)
--- a/
tools/perf/util/evsel.c
+++ b/
tools/perf/util/evsel.c
@@
-1192,6
+1192,7
@@
static void __p_sample_type(char *buf, size_t size, u64 value)
bit_name(PERIOD), bit_name(STREAM_ID), bit_name(RAW),
bit_name(BRANCH_STACK), bit_name(REGS_USER), bit_name(STACK_USER),
bit_name(IDENTIFIER), bit_name(REGS_INTR), bit_name(DATA_SRC),
+ bit_name(WEIGHT),
{ .name = NULL, }
};
#undef bit_name