perf: Use sample_flags for branch stack
authorKan Liang <kan.liang@linux.intel.com>
Thu, 1 Sep 2022 13:09:56 +0000 (06:09 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 6 Sep 2022 09:33:02 +0000 (11:33 +0200)
commita9a931e2666878343782c82d7d55cc173ddeb3e9
tree1a5c971a8b8270afec0a4c05b7d6ea0e9072599a
parent47a3aeb39e8dc099ae431cd8b46bdf218f5511b2
perf: Use sample_flags for branch stack

Use the new sample_flags to indicate whether the branch stack is filled
by the PMU driver.

Remove the br_stack from the perf_sample_data_init() to minimize the number
of cache lines touched.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220901130959.1285717-4-kan.liang@linux.intel.com
arch/powerpc/perf/core-book3s.c
arch/x86/events/amd/core.c
arch/x86/events/core.c
arch/x86/events/intel/core.c
arch/x86/events/intel/ds.c
include/linux/perf_event.h
kernel/events/core.c