]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf report: Support switching data w/ and w/o callchains
authorNamhyung Kim <namhyung@kernel.org>
Tue, 11 Feb 2025 06:07:45 +0000 (22:07 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 19 Feb 2025 21:23:58 +0000 (13:23 -0800)
commitacda4c200185f55f10023bd9fcbf97915cc0fa0a
treeb02b5d1b81a9a74c0dbb4501d7c76ca3bbb27ff7
parent43c2b6139b188d8a756130147f7efd5ddf99f88d
perf report: Support switching data w/ and w/o callchains

The symbol_conf.use_callchain should be reset when switching to new data
file, otherwise report__setup_sample_type() will show an error message
that it enabled callchains but no callchain data.  The function also
will turn on the callchains if the data has PERF_SAMPLE_CALLCHAIN so I
think it's ok to reset symbol_conf.use_callchain here.

Link: https://lore.kernel.org/r/20250211060745.294289-2-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-report.c