It needs to synthesize task info for the comm name. The mmap
information is only needed for callchain symbolization which is not used
by the summary mode. Also total or cgroup summary mode don't require
the task info. Let's skip the processing if possible.
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
if (err < 0)
goto out;
+ if (trace->summary_only && trace->summary_mode != SUMMARY__BY_THREAD)
+ goto out;
+
err = __machine__synthesize_threads(trace->host, &trace->tool, &trace->opts.target,
evlist->core.threads, trace__tool_process,
- /*needs_mmap=*/callchain_param.enabled,
+ /*needs_mmap=*/callchain_param.enabled &&
+ !trace->summary_only,
/*mmap_data=*/false,
/*nr_threads_synthesize=*/1);
out: