diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2021-06-27 16:18:18 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-07-01 16:14:38 -0300 |
commit | ec4c00fedbf3e713776d2776e88a7e4bc61b7efc (patch) | |
tree | c6559fd01ae8a1951f55b199398a2ea010d177f1 /tools/perf/Documentation | |
parent | 6495e762522d4cf73d0b339830091799881eb025 (diff) |
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>
Diffstat (limited to 'tools/perf/Documentation')
-rw-r--r-- | tools/perf/Documentation/perf-dlfilter.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/Documentation/perf-dlfilter.txt b/tools/perf/Documentation/perf-dlfilter.txt index 6b1d9da16feb..02842cb4cf90 100644 --- a/tools/perf/Documentation/perf-dlfilter.txt +++ b/tools/perf/Documentation/perf-dlfilter.txt @@ -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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |