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

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

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/bpf/prog_tests/test_struct_ops_kptr_return.c
Extension
.c
Size
606 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

#include <test_progs.h>

#include "struct_ops_kptr_return.skel.h"
#include "struct_ops_kptr_return_fail__wrong_type.skel.h"
#include "struct_ops_kptr_return_fail__invalid_scalar.skel.h"
#include "struct_ops_kptr_return_fail__nonzero_offset.skel.h"
#include "struct_ops_kptr_return_fail__local_kptr.skel.h"

void test_struct_ops_kptr_return(void)
{
	RUN_TESTS(struct_ops_kptr_return);
	RUN_TESTS(struct_ops_kptr_return_fail__wrong_type);
	RUN_TESTS(struct_ops_kptr_return_fail__invalid_scalar);
	RUN_TESTS(struct_ops_kptr_return_fail__nonzero_offset);
	RUN_TESTS(struct_ops_kptr_return_fail__local_kptr);
}

Annotation

Implementation Notes