Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/prog_tests/
A Dcore_reloc_raw.c23 struct btf_header hdr; in test_bad_local_id()
30 .hdr_len = sizeof(struct btf_header), in test_bad_local_id()
A Dbtf_endian.c21 const struct btf_header *hdr; in test_btf_endian()
A Dfd_array.c25 struct btf_header btf_hdr; in new_btf()
32 .hdr_len = sizeof(struct btf_header), in new_btf()
A Dbtf.c48 static struct btf_header hdr_tmpl = {
51 .hdr_len = sizeof(struct btf_header),
4280 static void *btf_raw_create(const struct btf_header *hdr, in btf_raw_create()
4291 struct btf_header *ret_hdr; in btf_raw_create()
4356 ret_hdr = (struct btf_header *)raw_btf; in btf_raw_create()
4403 struct btf_header *hdr; in do_test_raw()
8085 const struct btf_header *test_hdr, *expect_hdr; in do_test_dedup()
/tools/lib/bpf/
A Dbtf_relocate.c447 const struct btf_header *dist_base_hdr; in btf_relocate()
448 const struct btf_header *base_hdr; in btf_relocate()
464 r.str_map = calloc(btf_header(r.dist_base_btf)->str_len, sizeof(*r.str_map)); in btf_relocate()
465 dist_base_hdr = btf_header(r.dist_base_btf); in btf_relocate()
466 base_hdr = btf_header(r.base_btf); in btf_relocate()
A Dlibbpf_probes.c225 struct btf_header hdr = { in libbpf__load_raw_btf()
228 .hdr_len = sizeof(struct btf_header), in libbpf__load_raw_btf()
A Dlibbpf_internal.h238 const struct btf_header *btf_header(const struct btf *btf);
A Dbtf.c79 struct btf_header *hdr;
218 static void btf_bswap_hdr(struct btf_header *h) in btf_bswap_hdr()
230 struct btf_header *hdr = btf->hdr; in btf_parse_hdr()
233 if (btf->raw_size < sizeof(struct btf_header)) { in btf_parse_hdr()
240 if (bswap_32(hdr->hdr_len) != sizeof(struct btf_header)) { in btf_parse_hdr()
279 const struct btf_header *hdr = btf->hdr; in btf_parse_str_sec()
423 struct btf_header *hdr = btf->hdr; in btf_parse_type_sec()
1019 btf->raw_size = sizeof(struct btf_header) + (base_btf ? 0 : 1); in btf_new_empty()
1027 btf->hdr->hdr_len = sizeof(struct btf_header); in btf_new_empty()
1541 struct btf_header *hdr = btf->hdr; in btf_get_raw_data()
[all …]
/tools/testing/selftests/bpf/progs/
A Dsyscall.c71 struct btf_header btf_hdr; in btf_load()
78 .hdr_len = sizeof(struct btf_header), in btf_load()
/tools/include/uapi/linux/
A Dbtf.h11 struct btf_header { struct
/tools/testing/selftests/bpf/map_tests/
A Dsk_storage_map.c123 struct btf_header btf_hdr = { in load_btf()
126 .hdr_len = sizeof(struct btf_header), in load_btf()
131 __u8 raw_btf[sizeof(struct btf_header) + sizeof(btf_raw_types) + in load_btf()
/tools/testing/selftests/bpf/
A Dtest_verifier.c742 struct btf_header hdr = { in load_btf_spec()
745 .hdr_len = sizeof(struct btf_header), in load_btf_spec()

Completed in 33 milliseconds