summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/usdt_1.c
blob: 4f06e8bcf58b54f165067afee8817e92cbe690e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-2.0

#if defined(__x86_64__)

/*
 * Include usdt.h with defined USDT_NOP macro to use single
 * nop instruction.
 */
#define USDT_NOP .byte 0x90
#include "usdt.h"

__attribute__((aligned(16)))
void usdt_1(void)
{
	USDT(optimized_attach, usdt_1);
}

#endif