tools/testing/selftests/bpf/prog_tests/test_struct_ops_refcounted.c

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

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/bpf/prog_tests/test_struct_ops_refcounted.c
Extension
.c
Size
472 bytes
Lines
15
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

#include <test_progs.h>

#include "struct_ops_refcounted.skel.h"
#include "struct_ops_refcounted_fail__ref_leak.skel.h"
#include "struct_ops_refcounted_fail__global_subprog.skel.h"
#include "struct_ops_refcounted_fail__tail_call.skel.h"

void test_struct_ops_refcounted(void)
{
	RUN_TESTS(struct_ops_refcounted);
	RUN_TESTS(struct_ops_refcounted_fail__ref_leak);
	RUN_TESTS(struct_ops_refcounted_fail__global_subprog);
	RUN_TESTS(struct_ops_refcounted_fail__tail_call);
}

Annotation

Implementation Notes