OSDN Git Service

perf: Use sample_flags for callchain
authorNamhyung Kim <namhyung@kernel.org>
Thu, 8 Sep 2022 21:41:02 +0000 (14:41 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 13 Sep 2022 13:03:22 +0000 (15:03 +0200)
commit3749d33e510c3dc695b3a5886b706310890d7ebd
tree38264855d5b66b021dc61ae373b61daebd665e17
parentfae9ebde9696385fa2e993e752cf68d9781f3ea0
perf: Use sample_flags for callchain

So that it can call perf_callchain() only if needed.  Historically it used
__PERF_SAMPLE_CALLCHAIN_EARLY but we can do that with sample_flags in the
struct perf_sample_data.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220908214104.3851807-1-namhyung@kernel.org
arch/x86/events/amd/ibs.c
arch/x86/events/intel/ds.c
kernel/events/core.c