projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eea9b68
)
perf header: Fix a typo on evsel
author
Namhyung Kim
<
[email protected]
>
Thu, 6 Sep 2012 02:10:45 +0000
(11:10 +0900)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Thu, 6 Sep 2012 13:49:03 +0000
(10:49 -0300)
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]
>
tools/perf/util/header.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/header.c
b/tools/perf/util/header.c
index 43425b75f0c93c5d4133e5e02ebdf71c8ad9977d..8b0b873c22954fed6d547a70f05a12f90fd9a874 100644
(file)
--- 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 (ev
ent
->name == NULL)
+ if (ev
sel
->name == NULL)
return -1;
evsel->tp_format = event;