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 16:14:38 -0300 |
commit | 244afc0c93205fa144c782562ad3f9435ae4ea93 (patch) | |
tree | 8b90901bc6f1f0a79da40afefdd312f1603a8032 /tools/perf/util/perf_dlfilter.h | |
parent | perf dlfilter: Add insn() to perf_dlfilter_fns (diff) | |
download | linux-dev-244afc0c93205fa144c782562ad3f9435ae4ea93.tar.xz linux-dev-244afc0c93205fa144c782562ad3f9435ae4ea93.zip |
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 '')
-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 763c5af3c5f7..b989918056e2 100644 --- a/tools/perf/util/perf_dlfilter.h +++ b/tools/perf/util/perf_dlfilter.h @@ -99,8 +99,10 @@ struct perf_dlfilter_fns { __s32 (*resolve_address)(void *ctx, __u64 address, struct perf_dlfilter_al *al); /* Return instruction bytes and length */ const __u8 *(*insn)(void *ctx, __u32 *length); + /* Return source file name and line number */ + const char *(*srcline)(void *ctx, __u32 *line_number); /* Reserved */ - void *(*reserved[123])(void *); + void *(*reserved[122])(void *); }; /* |