summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/strlist.h
diff options
context:
space:
mode:
authorArun Kalyanasundaram2017-07-22 00:04:21 +0200
committerArnaldo Carvalho de Melo2017-07-26 03:43:20 +0200
commitf38d281663b011d1d8a1b0119bb8357706d134a8 (patch)
tree5a33f1bf722a5a1b4bd33faed9c2cbcf66d9d59f /tools/perf/util/strlist.h
parentperf script python: Add sample_read to dict (diff)
downloadkernel-qcow2-linux-f38d281663b011d1d8a1b0119bb8357706d134a8.tar.gz
kernel-qcow2-linux-f38d281663b011d1d8a1b0119bb8357706d134a8.tar.xz
kernel-qcow2-linux-f38d281663b011d1d8a1b0119bb8357706d134a8.zip
perf script python: Add perf_sample dict to tracepoint handlers
The process_event python hook receives a dict with all perf_sample entries, but the tracepoint specific and trace_unhandled hooks predate the introduction of this dict, and do not receive it. Add the aforementioned dict as an additional argument to the affected handlers. To keep backwards compatibility (and avoid unnecessary work), do not pass the dict if the number of arguments signals that handler version predates this change. Signed-off-by: Arun Kalyanasundaram <arunkaly@google.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: David Carrillo-Cisneros <davidcc@google.com> Cc: David S. Miller <davem@davemloft.net> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Seongjae Park <sj38.park@gmail.com> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/20170721220422.63962-5-arunkaly@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/strlist.h')
0 files changed, 0 insertions, 0 deletions