perf: Use sample_flags for weight
authorKan Liang <kan.liang@linux.intel.com>
Thu, 1 Sep 2022 13:09:57 +0000 (06:09 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 6 Sep 2022 09:33:02 +0000 (11:33 +0200)
commit2abe681da0a192ab850a5271d838a7817b469fca
tree8d6391f254b100551c3166bf65ce424613f9fbbf
parenta9a931e2666878343782c82d7d55cc173ddeb3e9
perf: Use sample_flags for weight

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

Remove the weight 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-5-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