tools/testing/selftests/bpf/progs/test_tracepoint.c

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

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/bpf/progs/test_tracepoint.c
Extension
.c
Size
528 bytes
Lines
26
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

struct sched_switch_args {
	unsigned long long pad;
	char prev_comm[TASK_COMM_LEN];
	int prev_pid;
	int prev_prio;
	long long prev_state;
	char next_comm[TASK_COMM_LEN];
	int next_pid;
	int next_prio;
};

SEC("tracepoint/sched/sched_switch")
int oncpu(struct sched_switch_args *ctx)
{
	return 0;
}

char _license[] SEC("license") = "GPL";

Annotation

Implementation Notes