perf list: Clean up the printing functions of hardware/software events
authorYunlong Song <yunlong.song@huawei.com>
Fri, 27 Feb 2015 10:21:27 +0000 (18:21 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 27 Feb 2015 18:52:18 +0000 (15:52 -0300)
commit705750f2d6e283ba2856ba8eda60dce2d405b387
tree7bcd239ca2dba67baff8fd48148de7769059f7f2
parent3ef1e65c829c86ffaa94a4ed59fed5da37f9610a
perf list: Clean up the printing functions of hardware/software events

Do not need print_events_type or __print_events_type for listing hw/sw
events, let print_symbol_events do its job instead. Moreover,
print_symbol_events can also handle event_glob and name_only.

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1425032491-20224-4-git-send-email-yunlong.song@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-list.c
tools/perf/util/parse-events.c
tools/perf/util/parse-events.h