perf dlfilter: Add object_code() to perf_dlfilter_fns
Add a function, for use by dlfilters, to read object code. 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-11-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
6495e76252
commit
ec4c00fedb
@@ -127,7 +127,8 @@ struct perf_dlfilter_fns {
|
||||
const __u8 *(*insn)(void *ctx, __u32 *length);
|
||||
const char *(*srcline)(void *ctx, __u32 *line_number);
|
||||
struct perf_event_attr *(*attr)(void *ctx);
|
||||
void *(*reserved[121])(void *);
|
||||
__s32 (*object_code)(void *ctx, __u64 ip, void *buf, __u32 len);
|
||||
void *(*reserved[120])(void *);
|
||||
};
|
||||
----
|
||||
|
||||
@@ -146,6 +147,8 @@ before calling. Returns 0 on success, -1 otherwise.
|
||||
|
||||
'attr' returns perf_event_attr, refer <linux/perf_event.h>.
|
||||
|
||||
'object_code' reads object code and returns the number of bytes read.
|
||||
|
||||
The perf_dlfilter_al structure
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user