aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2012-09-06 11:10:45 +0900
committerArnaldo Carvalho de Melo <[email protected]>2012-09-06 10:49:03 -0300
commitae42c6bb9300cf25990bd15f1bd6ee38598f7483 (patch)
tree339d33cf9d05989d64497803867e49f162af737f
parenteea9b6842950924876a1a21ca197f189f8bb335a (diff)
perf header: Fix a typo on evsel
For checking return value of the strdup, 'event' should be 'evsel'. Signed-off-by: Namhyung Kim <[email protected]> Cc: David Ahern <[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]>
-rw-r--r--tools/perf/util/header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
index 43425b75f0c9..8b0b873c2295 100644
--- a/tools/perf/util/header.c
+++ b/tools/perf/util/header.c
@@ -2307,7 +2307,7 @@ static int perf_evsel__set_tracepoint_name(struct perf_evsel *evsel,
snprintf(bf, sizeof(bf), "%s:%s", event->system, event->name);
evsel->name = strdup(bf);
- if (event->name == NULL)
+ if (evsel->name == NULL)
return -1;
evsel->tp_format = event;