Wang Nan
43d0b97817
perf tools: Enable config and setting names for legacy cache events
...
This patch allows setting config terms for legacy cache events.
For example:
# perf stat -e L1-icache-misses/name=valA/ -e branches/name=valB/ ls
...
Performance counter stats for 'ls':
11299 valA
451605 valB
0.000779091 seconds time elapsed
# perf record -e cache-misses/name=inh/ -e cache-misses/name=noinh,no-inherit/ bash
# ls
# exit
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.023 MB perf.data (131 samples) ]
# perf report --stdio | grep -B 1 'Event count'
# Samples: 105 of event 'inh'
# Event count (approx.): 109118
--
# Samples: 26 of event 'noinh'
# Event count (approx.): 48302
A test case is introduced to test this feature.
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Brendan Gregg <brendan.d.gregg@gmail.com>
Cc: Cody P Schafer <dev@codyps.com>
Cc: He Kuang <hekuang@huawei.com>
Cc: Jeremie Galarneau <jeremie.galarneau@efficios.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kirill Smelkov <kirr@nexedi.com>
Cc: Li Zefan <lizefan@huawei.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1455882283-79592-14-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-02-19 19:12:51 -03:00
..
2015-05-08 16:11:05 -03:00
2016-02-05 09:46:45 -03:00
2015-12-14 19:15:05 -08:00
2015-08-16 10:51:26 +01:00
2016-01-12 12:42:07 -03:00
2015-06-08 16:42:07 -06:00
2015-08-26 06:12:35 +02:00
2016-02-16 17:12:57 -03:00
2015-11-15 17:24:33 -05:00
2016-02-19 19:12:51 -03:00
2016-01-21 00:43:29 +01:00
2016-01-11 19:22:20 -03:00
2015-12-08 17:58:56 +00:00
2016-02-01 15:21:20 -08:00
2015-10-10 11:32:31 +08:00
2015-10-22 17:19:33 -07:00
2016-01-26 10:18:30 +02:00
2015-11-20 16:17:32 -08:00
2016-01-14 11:39:09 -08:00