xref: /linux/tools/testing/selftests/bpf/usdt_1.c (revision f5ad4101009e7f5f5984ffea6923d4fcd470932a)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #if defined(__x86_64__)
4 
5 /*
6  * Include usdt.h with defined USDT_NOP macro to use single
7  * nop instruction.
8  */
9 #define USDT_NOP .byte 0x90
10 #include "usdt.h"
11 
12 __attribute__((aligned(16)))
13 void usdt_1(void)
14 {
15 	USDT(optimized_attach, usdt_1);
16 }
17 
18 #endif
19