perf tools: Rename and move pmu_event_name to get_config_name
authorWang Nan <[email protected]>
Fri, 19 Feb 2016 11:43:59 +0000 (11:43 +0000)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 19 Feb 2016 22:12:50 +0000 (19:12 -0300)
commite814fddde18fec43fa41a27ae94c09b54772697e
tree556249c76e7fc4e0ee0f6dd9214c15ab05d519c6
parent1669e509ea25e4e3e871d913d21b1cac4a96d1e8
perf tools: Rename and move pmu_event_name to get_config_name

Following commits will make more events obey /name=newname/ options.
This patch makes pmu_event_name() a generic helper.

Makes new get_config_name() accept NULL input to make life easier.

Signed-off-by: Wang Nan <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Brendan Gregg <[email protected]>
Cc: Cody P Schafer <[email protected]>
Cc: He Kuang <[email protected]>
Cc: Jeremie Galarneau <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kirill Smelkov <[email protected]>
Cc: Li Zefan <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Zefan Li <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/parse-events.c