Home
last modified time | relevance | path

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

/Linux-v5.15/kernel/bpf/preload/iterators/
Diterators.bpf.c30 struct btf_header { struct
37 struct btf_header hdr; argument
/Linux-v5.15/tools/testing/selftests/bpf/progs/
Dsyscall.c33 struct btf_header btf_hdr; in btf_load()
40 .hdr_len = sizeof(struct btf_header), in btf_load()
/Linux-v5.15/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.c77 struct btf_header *hdr;
205 static void btf_bswap_hdr(struct btf_header *h) in btf_bswap_hdr()
217 struct btf_header *hdr = btf->hdr; in btf_parse_hdr()
220 if (btf->raw_size < sizeof(struct btf_header)) { in btf_parse_hdr()
227 if (bswap_32(hdr->hdr_len) != sizeof(struct btf_header)) { in btf_parse_hdr()
260 const struct btf_header *hdr = btf->hdr; in btf_parse_str_sec()
387 struct btf_header *hdr = btf->hdr; in btf_parse_type_sec()
766 btf->raw_size = sizeof(struct btf_header) + (base_btf ? 0 : 1); in btf_new_empty()
774 btf->hdr->hdr_len = sizeof(struct btf_header); in btf_new_empty()
1249 struct btf_header *hdr = btf->hdr; in btf_get_raw_data()
/Linux-v5.15/include/uapi/linux/
Dbtf.h11 struct btf_header { struct
/Linux-v5.15/tools/include/uapi/linux/
Dbtf.h11 struct btf_header { struct
/Linux-v5.15/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()
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dbtf_endian.c21 const struct btf_header *hdr; in test_btf_endian()
Dbtf.c51 static struct btf_header hdr_tmpl = {
54 .hdr_len = sizeof(struct btf_header),
3683 static void *btf_raw_create(const struct btf_header *hdr, in btf_raw_create()
3694 struct btf_header *ret_hdr; in btf_raw_create()
3759 ret_hdr = (struct btf_header *)raw_btf; in btf_raw_create()
3786 struct btf_header *hdr; in do_test_raw()
6826 const struct btf_header *test_hdr, *expect_hdr; in do_test_dedup()
/Linux-v5.15/kernel/bpf/
Dbtf.c207 struct btf_header hdr;
1412 const struct btf_header *hdr; in btf_verifier_log_hdr()
3985 struct btf_header *hdr; in btf_check_all_metas()
4121 const struct btf_header *hdr = &env->btf->hdr; in btf_parse_type_sec()
4144 const struct btf_header *hdr; in btf_parse_str_sec()
4174 offsetof(struct btf_header, type_off),
4175 offsetof(struct btf_header, str_off),
4191 const struct btf_header *hdr; in btf_check_sec_info()
4242 const struct btf_header *hdr; in btf_parse_hdr()
4250 offsetof(struct btf_header, hdr_len) + sizeof(hdr->hdr_len)) { in btf_parse_hdr()
/Linux-v5.15/tools/testing/selftests/bpf/
Dtest_verifier.c619 struct btf_header hdr = { in load_btf()
622 .hdr_len = sizeof(struct btf_header), in load_btf()
/Linux-v5.15/Documentation/bpf/
Dbtf.rst40 struct btf_header {
55 little-endian target. The ``btf_header`` is designed to be extensible with
56 ``hdr_len`` equal to ``sizeof(struct btf_header)`` when a data blob is