perf header: Prepare tracepoint events regardless of name
authorNamhyung Kim <namhyung.kim@lge.com>
Thu, 6 Sep 2012 02:10:46 +0000 (11:10 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 6 Sep 2012 13:51:02 +0000 (10:51 -0300)
commit831394bdd9dd3ac1661336505c7cbdfd786d8cd4
tree08ce81df572942ce33ab84a2161a95127cd35ea4
parentae42c6bb9300cf25990bd15f1bd6ee38598f7483
perf header: Prepare tracepoint events regardless of name

Current perf_evlist__set_tracepoint_names is a misnomer because it finds
and sets correspoding event_format in addition to the name.  So skipping
it when a event has set name already caused a trouble.

Rename it and set name only a event doesn't have one.

Reported-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1346897446-16569-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c