From b9633cf3aa193a0b3cee02243e94d33c8a15777b Mon Sep 17 00:00:00 2001 From: Jiri Olsa Date: Sun, 8 Feb 2026 10:25:18 +0100 Subject: [PATCH] lib: Emit nop,no10 instructions combo for x86_64 arch Now that we have no10 optimization support in kernel, let's emit nop,nop10 for usdt probe. We leave it up to the library to use desirable nop instruction. Signed-off-by: Jiri Olsa --- usdt.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usdt.h b/usdt.h index 549d1f7..75687f5 100644 --- a/usdt.h +++ b/usdt.h @@ -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, 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 /* nop, nop10 */ #else #define USDT_NOP nop #endif