aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2024-07-04 19:03:35 +0200
committerPeter Zijlstra <[email protected]>2024-07-09 13:26:34 +0200
commit058244c683111d44a5de16ac74f19a1754dd7a0c (patch)
treeee99bc0d607fbc46c481256f634ab5c4da6054f5 /tools/testing/selftests/bpf/progs/test_autoload.c
parent3a5465418f5fd970e86a86c7f4075be262682840 (diff)
perf: Move irq_work_queue() where the event is prepared.
Only if perf_event::pending_sigtrap is zero, the irq_work accounted by increminging perf_event::nr_pending. The member perf_event::pending_addr might be overwritten by a subsequent event if the signal was not yet delivered and is expected. The irq_work will not be enqeueued again because it has a check to be only enqueued once. Move irq_work_queue() to where the counter is incremented and perf_event::pending_sigtrap is set to make it more obvious that the irq_work is scheduled once. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Marco Elver <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions