diff options
| author | Jiri Olsa <[email protected]> | 2012-05-21 07:12:53 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-05-22 14:47:54 +0000 |
| commit | 6b5fc39bdd781711d7da8b95ae0243df3b35c5bf (patch) | |
| tree | 95b7a6062e5170da6121cd8486b0e4c7a921cf70 /tools/perf/util/scripting-engines/trace-event-perl.c | |
| parent | perf tools: Separate 'mem:' event scanner bits (diff) | |
| download | kernel-6b5fc39bdd781711d7da8b95ae0243df3b35c5bf.tar.gz kernel-6b5fc39bdd781711d7da8b95ae0243df3b35c5bf.zip | |
perf tools: Add hardcoded name term for pmu events
Adding a new hardcoded term 'name' allowing to specify a name for the
pmu event. The term is defined along with standard pmu terms. If no
'name' term is given, the event name follows following template:
"raw 0x<perf_event_attr::config>"
running:
perf stat -e cpu/config=1,name=krava1/u ls
will produce following output:
...
Performance counter stats for 'ls':
0 krava1
...
running:
perf stat -e cpu/config=1/u ls
will produce following output:
...
Performance counter stats for 'ls':
0 raw 0x1
...
Signed-off-by: Jiri Olsa <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions
