perf scripting python: Add perf_sample_insn()
authorAdrian Hunter <adrian.hunter@intel.com>
Sun, 30 May 2021 19:23:02 +0000 (22:23 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Jun 2021 13:03:58 +0000 (10:03 -0300)
commit13c71b92327aaacc7a3c3ca5f003f3f66ba5af65
treeb82b867b8945d35c16eb1898a7d42ea309eccc5a
parentd9ae9c9776abc60d4bdf2320c4a8f32340cff527
perf scripting python: Add perf_sample_insn()

Add perf_sample_insn() to the perf_trace_context module so that a script
can get the instruction bytes.

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-8-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/Perf-Trace-Util/Context.c