perf: Fixup SIGTRAP and sample_flags interaction
authorPeter Zijlstra <peterz@infradead.org>
Mon, 21 Nov 2022 14:57:44 +0000 (15:57 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 24 Nov 2022 09:12:23 +0000 (10:12 +0100)
commitaf169b7759a9b9369b5106cd07a25c57ce60119e
treed1b7a94c16b74b8f9c83264ee1aa54d2e90c37c7
parenteb7081409f94a9a8608593d0fb63a1aa3d6f95d8
perf: Fixup SIGTRAP and sample_flags interaction

The perf_event_attr::sigtrap functionality relies on data->addr being
set. However commit 7b0846301531 ("perf: Use sample_flags for addr")
changed this to only initialize data->addr when not 0.

Fixes: 7b0846301531 ("perf: Use sample_flags for addr")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/Y3426b4OimE%2FI5po%40hirez.programming.kicks-ass.net
kernel/events/core.c