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

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

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/bpf/progs/test_autoload.c
Extension
.c
Size
755 bytes
Lines
41
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 fake_kernel_struct {
	int whatever;
} __attribute__((preserve_access_index));

SEC("fentry/unexisting-kprobe-will-fail-if-loaded")
int prog3(const void *ctx)
{
	struct fake_kernel_struct *fake = (void *)ctx;
	fake->whatever = 123;
	prog3_called = true;
	return 0;
}

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

Annotation

Implementation Notes