perf script: Factor out script_fetch_insn()
authorAdrian Hunter <adrian.hunter@intel.com>
Sun, 30 May 2021 19:23:01 +0000 (22:23 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Jun 2021 13:03:46 +0000 (10:03 -0300)
commitd9ae9c9776abc60d4bdf2320c4a8f32340cff527
tree1c7ce71c327e1e49fb83e4e8af83da169fed0b4b
parentcf9bfa6c150f038328f8059a69a6f1598d6702b2
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>
tools/perf/builtin-script.c
tools/perf/util/trace-event.h