diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2021-06-27 16:18:15 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-07-01 16:14:38 -0300 |
commit | e35995effdd3815cad7f0db8360c23d60479122a (patch) | |
tree | ab002eb193509e291299345d2fb4b0e9d210467c /tools/perf/util/perf_dlfilter.h | |
parent | perf dlfilter: Add resolve_address() to perf_dlfilter_fns (diff) | |
download | linux-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.h | 4 |
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 *); }; /* |