perf: Use sample_flags for data_src
authorKan Liang <kan.liang@linux.intel.com>
Thu, 1 Sep 2022 13:09:58 +0000 (06:09 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 6 Sep 2022 09:33:03 +0000 (11:33 +0200)
commite16fd7f2cb1a65555cfe76f983eaefb1eab7471f
tree15d1e498f5e4450ce74992febd66913fd258052c
parent2abe681da0a192ab850a5271d838a7817b469fca
perf: Use sample_flags for data_src

Use the new sample_flags to indicate whether the data_src field is
filled by the PMU driver.

Remove the data_src field 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-6-kan.liang@linux.intel.com
arch/powerpc/perf/core-book3s.c
arch/x86/events/intel/ds.c
include/linux/perf_event.h
kernel/events/core.c