mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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] c9865d1589
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>
This commit is contained in:
parent
41a5c7df44
commit
0c178e9deb
|
|
@ -312,6 +312,8 @@ struct usdt_sema { volatile unsigned short active; };
|
|||
#ifndef USDT_NOP
|
||||
#if defined(__ia64__) || defined(__s390__) || defined(__s390x__)
|
||||
#define USDT_NOP nop 0
|
||||
#elif defined(__x86_64__)
|
||||
#define USDT_NOP .byte 0x90, 0x0f, 0x1f, 0x44, 0x00, 0x0 /* nop, nop5 */
|
||||
#else
|
||||
#define USDT_NOP nop
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user