aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2021-05-30 22:23:01 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-06-01 10:03:46 -0300
commitd9ae9c9776abc60d4bdf2320c4a8f32340cff527 (patch)
tree1c7ce71c327e1e49fb83e4e8af83da169fed0b4b /tools/perf/util
parentperf scripting python: Assign perf_script_context (diff)
downloadlinux-dev-d9ae9c9776abc60d4bdf2320c4a8f32340cff527.tar.xz
linux-dev-d9ae9c9776abc60d4bdf2320c4a8f32340cff527.zip
perf script: Factor out script_fetch_insn()
Factor out script_fetch_insn() so it can be reused. 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-7-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/trace-event.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h
index 73f5b29472f7..54aadeedf28c 100644
--- a/tools/perf/util/trace-event.h
+++ b/tools/perf/util/trace-event.h
@@ -97,6 +97,9 @@ extern unsigned int scripting_max_stack;
int script_spec_register(const char *spec, struct scripting_ops *ops);
+void script_fetch_insn(struct perf_sample *sample, struct thread *thread,
+ struct machine *machine);
+
void setup_perl_scripting(void);
void setup_python_scripting(void);