]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Introduce cond_break_label
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Thu, 6 Mar 2025 03:54:29 +0000 (19:54 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 15 Mar 2025 18:48:56 +0000 (11:48 -0700)
commit4b7ede0be374474dc754e810a82f188279082dca
tree6b49f587ca2800856fc5f129298fff03827c9b10
parentdc438a9bc7610f23cca29a21bb5588b3c09d37f0
selftests/bpf: Introduce cond_break_label

Add a new cond_break_label macro that jumps to the specified label when
the cond_break termination check fires, and allows us to better handle
the uncontrolled termination of the loop.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20250306035431.2186189-2-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_experimental.h