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:
38f6ae1
)
perf header: Use event_name() to get an event name
author
Andrew Vagin
<
[email protected]
>
Mon, 28 Nov 2011 09:03:29 +0000
(12:03 +0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Tue, 6 Dec 2011 11:22:48 +0000
(09:22 -0200)
perf_evsel.name may be not initialized
Cc: David Ahern <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Arun Sharma <
[email protected]
>
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Andrew Vagin <
[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 bcd05d05b4f01969906efe3dbfcc899ccdea554a..33c17a2b2a81e739066991a9a9facd2b38ee0416 100644
(file)
--- a/
tools/perf/util/header.c
+++ b/
tools/perf/util/header.c
@@
-388,7
+388,7
@@
static int write_event_desc(int fd, struct perf_header *h __used,
/*
* write event string as passed on cmdline
*/
- ret = do_write_string(fd,
attr->name
);
+ ret = do_write_string(fd,
event_name(attr)
);
if (ret < 0)
return ret;
/*