aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2015-09-30 10:45:24 +0900
committerArnaldo Carvalho de Melo <[email protected]>2015-10-01 09:54:33 -0300
commite5bed564485b340d87f2d8945643a393e55b8225 (patch)
tree01c745a44ba4489f149ccbfc182a92ec75a80bcb /tools/perf/scripts/python/syscall-counts-by-pid.py
parentc2365b9388e8ec19305e3f449c1826e7493d156d (diff)
perf record: Allocate area for sample_id_hdr in a synthesized comm event
A previous patch added a synthesized comm event for forked child process but it missed that the event should contain area for sample_id_hdr at the end. It worked by accident since the perf_event union contains bigger event structs like mmap_events. This patch fixes it by dynamically allocating event struct including those area like in perf_event__synthesize_thread_map(). Reported-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Namhyung Kim <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions