perf scripting python: Add perf_sample_srcline() and perf_sample_srccode()
authorAdrian Hunter <adrian.hunter@intel.com>
Sun, 30 May 2021 19:23:05 +0000 (22:23 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Jun 2021 13:04:35 +0000 (10:04 -0300)
commite79457a526105c94930a5babbecaeeb794593723
treec0028e60eb4db74a4922a605d2d04ce6c3e1c9fc
parent7d00540d7deb6802cde23b132b0c50347f27cc90
perf scripting python: Add perf_sample_srcline() and perf_sample_srccode()

Add perf_sample_srcline() and perf_sample_srccode() to the
perf_trace_context module so that a script can get the srcline or srccode
information.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/r/20210530192308.7382-11-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/Perf-Trace-Util/Context.c