diff options
author | Ian Rogers <[email protected]> | 2024-09-09 13:37:40 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2024-09-10 17:32:47 -0300 |
commit | 02b2705017d2e5ad32c23067d4b44477ec20b637 (patch) | |
tree | 0506f993f7e749440a5885e8a1d774b1458016da /tools/perf/builtin-inject.c | |
parent | 64eed019f3fce1248cd29443c8a8635d317cb70f (diff) |
perf callchain: Allow symbols to be optional when resolving a callchain
In uses like 'perf inject' it is not necessary to gather the symbol for
each call chain location, the map for the sample IP is wanted so that
build IDs and the like can be injected. Make gathering the symbol in the
callchain_cursor optional.
For a 'perf inject -B' command this lowers the peak RSS from 54.1MB to
29.6MB by avoiding loading symbols.
Signed-off-by: Ian Rogers <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Anne Macedo <[email protected]>
Cc: Casey Chen <[email protected]>
Cc: Colin Ian King <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Sun Haiyong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-inject.c')
-rw-r--r-- | tools/perf/builtin-inject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c index 9eb72ff48d88..d6989195a061 100644 --- a/tools/perf/builtin-inject.c +++ b/tools/perf/builtin-inject.c @@ -942,7 +942,7 @@ int perf_event__inject_buildid(const struct perf_tool *tool, union perf_event *e } sample__for_each_callchain_node(thread, evsel, sample, PERF_MAX_STACK_DEPTH, - mark_dso_hit_callback, &args); + /*symbols=*/false, mark_dso_hit_callback, &args); thread__put(thread); repipe: |