mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 19:13:03 -04:00
selftests/bpf: Emit nop,nop10 instructions combo for x86_64 arch
Syncing latest usdt.h change [1].
Now that we have nop10 optimization support in kernel, let's emit
nop,nop10 for usdt probe. We leave it up to the library to use
desirable nop instruction.
[1] 9018f82577
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://patch.msgid.link/20260703114917.238144-9-jolsa@kernel.org
This commit is contained in:
@@ -313,7 +313,7 @@ struct usdt_sema { volatile unsigned short active; };
|
||||
#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 */
|
||||
#define USDT_NOP .byte 0x90, 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 /* nop, nop10 */
|
||||
#else
|
||||
#define USDT_NOP nop
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user