]> git.baikalelectronics.ru Git - kernel.git/commit
perf: Use sample_flags for raw_data
authorNamhyung Kim <namhyung@kernel.org>
Wed, 21 Sep 2022 22:00:32 +0000 (15:00 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 27 Sep 2022 20:50:24 +0000 (22:50 +0200)
commit31e70b3d5cad4b490e31f98d0c8692df9d6f8ea8
tree1963e0b6ad3557b1d8dc830f77feb5b7cfc8936e
parent4872ec39af572b490efe328c421c49fdf41333e3
perf: Use sample_flags for raw_data

Use the new sample_flags to indicate whether the raw data field is
filled by the PMU driver.  Although it could check with the NULL,
follow the same rule with other fields.

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

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220921220032.2858517-2-namhyung@kernel.org
arch/s390/kernel/perf_cpum_cf.c
arch/s390/kernel/perf_pai_crypto.c
arch/x86/events/amd/ibs.c
include/linux/perf_event.h
kernel/events/core.c