aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/perf_dlfilter.h
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2021-06-27 16:18:15 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-07-01 16:14:38 -0300
commite35995effdd3815cad7f0db8360c23d60479122a (patch)
treeab002eb193509e291299345d2fb4b0e9d210467c /tools/perf/util/perf_dlfilter.h
parentperf dlfilter: Add resolve_address() to perf_dlfilter_fns (diff)
downloadlinux-dev-e35995effdd3815cad7f0db8360c23d60479122a.tar.xz
linux-dev-e35995effdd3815cad7f0db8360c23d60479122a.zip
perf dlfilter: Add insn() to perf_dlfilter_fns
Add a function, for use by dlfilters, to return instruction bytes. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Leo Yan <leo.yan@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20210627131818.810-8-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to '')
-rw-r--r--tools/perf/util/perf_dlfilter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/perf_dlfilter.h b/tools/perf/util/perf_dlfilter.h
index dfd0f8482824..763c5af3c5f7 100644
--- a/tools/perf/util/perf_dlfilter.h
+++ b/tools/perf/util/perf_dlfilter.h
@@ -97,8 +97,10 @@ struct perf_dlfilter_fns {
* calling). Returns 0 on success, -1 otherwise.
*/
__s32 (*resolve_address)(void *ctx, __u64 address, struct perf_dlfilter_al *al);
+ /* Return instruction bytes and length */
+ const __u8 *(*insn)(void *ctx, __u32 *length);
/* Reserved */
- void *(*reserved[124])(void *);
+ void *(*reserved[123])(void *);
};
/*