]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Emit nop,nop5 instructions combo for x86_64 arch
authorJiri Olsa <jolsa@kernel.org>
Tue, 24 Feb 2026 10:39:13 +0000 (11:39 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 3 Mar 2026 16:39:22 +0000 (08:39 -0800)
commit0c178e9debc8f0a305149f5ccace6796f6931a1d
tree395eabca4fa9103bf3371b82f7089d20ba0bc742
parent41a5c7df4466887a937c91368fa015a2b08cb537
selftests/bpf: Emit nop,nop5 instructions combo for x86_64 arch

Syncing latest usdt.h change [1].

Now that we have nop5 optimization support in kernel, let's emit
nop,nop5 for usdt probe. We leave it up to the library to use
desirable nop instruction.

[1] https://github.com/libbpf/usdt/commit/c9865d158984fb2b73e3cbbdcdfb4f583ad36a73
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20260224103915.1369690-4-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/usdt.h