Home
last modified time | relevance | path

Searched refs:btf_header (Results 1 – 7 of 7) sorted by relevance

/tools/include/uapi/linux/
Dbtf.h11 struct btf_header { struct
/tools/testing/selftests/bpf/prog_tests/
Dbtf_endian.c23 const struct btf_header *hdr; in test_btf_endian()
Dbtf.c51 static struct btf_header hdr_tmpl = {
54 .hdr_len = sizeof(struct btf_header),
3560 static void *btf_raw_create(const struct btf_header *hdr, in btf_raw_create()
3571 struct btf_header *ret_hdr; in btf_raw_create()
3636 ret_hdr = (struct btf_header *)raw_btf; in btf_raw_create()
3663 struct btf_header *hdr; in do_test_raw()
6679 const struct btf_header *test_hdr, *expect_hdr; in do_test_dedup()
/tools/lib/bpf/
Dlibbpf_probes.c149 struct btf_header hdr = { in libbpf__load_raw_btf()
152 .hdr_len = sizeof(struct btf_header), in libbpf__load_raw_btf()
Dbtf.c76 struct btf_header *hdr;
179 static void btf_bswap_hdr(struct btf_header *h) in btf_bswap_hdr()
191 struct btf_header *hdr = btf->hdr; in btf_parse_hdr()
194 if (btf->raw_size < sizeof(struct btf_header)) { in btf_parse_hdr()
201 if (bswap_32(hdr->hdr_len) != sizeof(struct btf_header)) { in btf_parse_hdr()
240 const struct btf_header *hdr = btf->hdr; in btf_parse_str_sec()
361 struct btf_header *hdr = btf->hdr; in btf_parse_type_sec()
743 btf->raw_size = sizeof(struct btf_header) + 1; in btf__new_empty()
751 btf->hdr->hdr_len = sizeof(struct btf_header); in btf__new_empty()
1159 struct btf_header *hdr = btf->hdr; in btf_get_raw_data()
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c127 struct btf_header btf_hdr = { in load_btf()
130 .hdr_len = sizeof(struct btf_header), in load_btf()
135 __u8 raw_btf[sizeof(struct btf_header) + sizeof(btf_raw_types) + in load_btf()
/tools/testing/selftests/bpf/
Dtest_verifier.c543 struct btf_header hdr = { in load_btf()
546 .hdr_len = sizeof(struct btf_header), in load_btf()