]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
libbpf: Add support to detect nop,nop5 instructions combo for usdt probe
authorJiri Olsa <jolsa@kernel.org>
Tue, 24 Feb 2026 10:39:12 +0000 (11:39 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 3 Mar 2026 16:39:22 +0000 (08:39 -0800)
commit41a5c7df4466887a937c91368fa015a2b08cb537
tree90b943ecf407548d1191a81d91c43d271129bdeb
parent05738da0efa1ea7b71244b1eb2e0797f79091f27
libbpf: Add support to detect nop,nop5 instructions combo for usdt probe

Adding support to detect nop,nop5 instructions combo for usdt probe
by checking on probe's following nop5 instruction.

When the nop,nop5 combo is detected together with uprobe syscall,
we can place the probe on top of nop5 and get it optimized.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20260224103915.1369690-3-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/usdt.c