tools/tracing/rtla/example/timerlat_bpf_action.c

Source file repositories/reference/linux-study-clean/tools/tracing/rtla/example/timerlat_bpf_action.c

File Facts

System
Linux kernel
Corpus path
tools/tracing/rtla/example/timerlat_bpf_action.c
Extension
.c
Size
413 bytes
Lines
17
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 trace_event_raw_timerlat_sample {
	unsigned long long timer_latency;
} __attribute__((preserve_access_index));

SEC("tp/timerlat_action")
int action_handler(struct trace_event_raw_timerlat_sample *tp_args)
{
	bpf_printk("Latency: %lld\n", tp_args->timer_latency);
	return 0;
}

Annotation

Implementation Notes