diff options
author | Namhyung Kim <namhyung@kernel.org> | 2015-09-30 04:45:24 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-10-01 15:54:33 +0300 |
commit | e5bed564485b340d87f2d8945643a393e55b8225 (patch) | |
tree | 01c745a44ba4489f149ccbfc182a92ec75a80bcb /tools/perf/builtin-top.c | |
parent | c2365b9388e8ec19305e3f449c1826e7493d156d (diff) | |
download | linux-e5bed564485b340d87f2d8945643a393e55b8225.tar.xz |
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 <acme@kernel.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1443577526-3240-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-top.c')
0 files changed, 0 insertions, 0 deletions