aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2022-11-19 10:45:54 +0800
committerPeter Zijlstra <[email protected]>2022-11-24 10:12:23 +0100
commit030a976efae83f7b6593afb11a8254d42f9290fe (patch)
treef3277a7dcea86cbb7257a441ea2d578f3a737fc1 /lib/mpi/mpi-mod.c
parentaf169b7759a9b9369b5106cd07a25c57ce60119e (diff)
perf: Consider OS filter fail
Some PMUs (notably the traditional hardware kind) have boundary issues with the OS filter. Specifically, it is possible for perf_event_attr::exclude_kernel=1 events to trigger in-kernel due to SKID or errata. This can upset the sigtrap logic some and trigger the WARN. However, if this invalid sample is the first we must not loose the SIGTRAP, OTOH if it is the second, it must not override the pending_addr with a (possibly) invalid one. Fixes: ca6c21327c6a ("perf: Fix missing SIGTRAPs") Reported-by: Pengfei Xu <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Marco Elver <[email protected]> Tested-by: Pengfei Xu <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions