Skip to content

Commit ad1a008

Browse files
captain5050namhyung
authored andcommitted
perf trace: Don't synthesize mmaps unless callchains are enabled
Synthesizing mmaps in perf trace is unnecessary unless call chains are being generated. Signed-off-by: Ian Rogers <irogers@google.com> Acked-by: Howard Chu <howardchu95@gmail.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent b4a63b0 commit ad1a008

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/perf/builtin-trace.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,9 @@ static int trace__symbols_init(struct trace *trace, int argc, const char **argv,
20052005

20062006
err = __machine__synthesize_threads(trace->host, &trace->tool, &trace->opts.target,
20072007
evlist->core.threads, trace__tool_process,
2008-
true, false, 1);
2008+
/*needs_mmap=*/callchain_param.enabled,
2009+
/*mmap_data=*/false,
2010+
/*nr_threads_synthesize=*/1);
20092011
out:
20102012
if (err) {
20112013
perf_env__exit(&trace->host_env);

0 commit comments

Comments
 (0)