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

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

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