]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Fix timer_start_deadlock failure due to hrtimer change
authorShung-Hsi Yu <shung-hsi.yu@suse.com>
Wed, 15 Apr 2026 12:03:28 +0000 (20:03 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 15 Apr 2026 15:25:04 +0000 (08:25 -0700)
commit813f336269e629da5d9c86a8098d6bee3d84680e
treea381671edb1ab0da6c079c4ca9d41a2437ea5adb
parent1f5ffc672165ff851063a5fd044b727ab2517ae3
selftests/bpf: Fix timer_start_deadlock failure due to hrtimer change

Since commit f2e388a019e4 ("hrtimer: Reduce trace noise in hrtimer_start()"),
hrtimer_cancel tracepoint is no longer called when a hrtimer is re-armed. So
instead of a hrtimer_cancel followed by hrtimer_start tracepoint events, there
is now only a since hrtimer_start tracepoint event with the new was_armed field
set to 1, to indicated that the hrtimer was previously armed.

Update timer_start_deadlock accordingly so it traces hrtimer_start tracepoint
instead, with was_armed used as guard.

Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
Tested-by: Mykyta Yatsenko <yatsenko@meta.com>
Acked-by: Mykyta Yatsenko <yatsenko@meta.com>
Link: https://lore.kernel.org/r/20260415120329.129192-1-shung-hsi.yu@suse.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/timer_start_deadlock.c