perf tools: Misc small fixes
authorOGAWA Hirofumi <[email protected]>
Sun, 6 Dec 2009 11:10:49 +0000 (20:10 +0900)
committerIngo Molnar <[email protected]>
Sun, 6 Dec 2009 17:15:02 +0000 (18:15 +0100)
commit7691b1ec2e4a8d4bd88dcf88b29792399ebe1c91
tree3b232372d2bd2a3aae58ccb37b36155d9917ab73
parent180f95e29aa8782c019caa64ede2a28d8ab62564
perf tools: Misc small fixes

- util/header.c
"len" is aligned to 64. So, it tries to write the out of
long_name buffer.

So, this use "zero_buf" to write aligned area.

- util/trace-event-read.c
"size" is not including nul byte. So, this allocates it, and set '\0'.

- util/trace-event-parse.c
It needs parens to calc correct size.

Signed-off-by: OGAWA Hirofumi <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
tools/perf/util/header.c
tools/perf/util/trace-event-parse.c
tools/perf/util/trace-event-read.c