perf: Use sample_flags for addr
authorNamhyung Kim <namhyung@kernel.org>
Wed, 21 Sep 2022 22:00:31 +0000 (15:00 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 27 Sep 2022 20:50:24 +0000 (22:50 +0200)
commit7b084630153152239d84990ac4540c2dd360186f
tree1a4f811f91b4843ca55bd2c5c5af57a4aa668430
parentdca6344d7a77dd0501a73745f4a9fb1ee2bc9d7c
perf: Use sample_flags for addr

Use the new sample_flags to indicate whether the addr field is filled by
the PMU driver.  As most PMU drivers pass 0, it can set the flag only if
it has a non-zero value.  And use 0 in perf_sample_output() if it's not
filled already.

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-1-namhyung@kernel.org
arch/x86/events/intel/ds.c
include/linux/perf_event.h
kernel/events/core.c