diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2021-06-27 16:18:16 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-07-01 22:14:38 +0300 |
commit | 244afc0c93205fa144c782562ad3f9435ae4ea93 (patch) | |
tree | 8b90901bc6f1f0a79da40afefdd312f1603a8032 /tools/perf/Documentation | |
parent | e35995effdd3815cad7f0db8360c23d60479122a (diff) | |
download | linux-244afc0c93205fa144c782562ad3f9435ae4ea93.tar.xz |
perf dlfilter: Add srcline() to perf_dlfilter_fns
Add a function, for use by dlfilters, to return source code file name and
line number.
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-9-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 bc4dba0995d8..df118ddcd7f4 100644 --- a/tools/perf/Documentation/perf-dlfilter.txt +++ b/tools/perf/Documentation/perf-dlfilter.txt @@ -125,7 +125,8 @@ struct perf_dlfilter_fns { char **(*args)(void *ctx, int *dlargc); __s32 (*resolve_address)(void *ctx, __u64 address, struct perf_dlfilter_al *al); const __u8 *(*insn)(void *ctx, __u32 *length); - void *(*reserved[123])(void *); + const char *(*srcline)(void *ctx, __u32 *line_number); + void *(*reserved[122])(void *); }; ---- @@ -140,6 +141,8 @@ before calling. Returns 0 on success, -1 otherwise. 'insn' returns instruction bytes and length. +'srcline' return source file name and line number. + The perf_dlfilter_al structure ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |