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

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

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/bpf/progs/btf_dump_test_case_ordering.c
Extension
.c
Size
917 bytes
Lines
64
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 s1 {};

struct s3;

struct s4;

struct s2 {
	struct s2 *s2;
	struct s3 *s3;
	struct s4 *s4;
};

struct s3 {
	struct s1 s1;
	struct s2 s2;
};

struct s4 {
	struct s1 s1;
	struct s3 s3;
};

struct list_head {
	struct list_head *next;
	struct list_head *prev;
};

struct hlist_node {
	struct hlist_node *next;
	struct hlist_node **pprev;
};

struct hlist_head {
	struct hlist_node *first;
};

struct callback_head {
	struct callback_head *next;
	void (*func)(struct callback_head *);
};

struct root_struct {
	struct s4 s4;
	struct list_head l;
	struct hlist_node n;
	struct hlist_head h;
	struct callback_head cb;
};

/*------ END-EXPECTED-OUTPUT ------ */

int f(struct root_struct *root)
{
	return 0;
}

Annotation

Implementation Notes