tools/testing/selftests/bpf/usdt_1.c

Source file repositories/reference/linux-study-clean/tools/testing/selftests/bpf/usdt_1.c

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/bpf/usdt_1.c
Extension
.c
Size
288 bytes
Lines
19
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

// 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

Annotation

Implementation Notes