Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
H 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()
H 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()
H A Dbtf.c78 struct btf_header *hdr;
214 static void btf_bswap_hdr(struct btf_header *h) in btf_bswap_hdr()
226 struct btf_header *hdr = btf->hdr; in btf_parse_hdr()
229 if (btf->raw_size < sizeof(struct btf_header)) { in btf_parse_hdr()
236 if (bswap_32(hdr->hdr_len) != sizeof(struct btf_header)) { in btf_parse_hdr()
275 const struct btf_header *hdr = btf->hdr; in btf_parse_str_sec()
419 struct btf_header *hdr = btf->hdr; in btf_parse_type_sec()
1004 btf->raw_size = sizeof(struct btf_header) + (base_btf ? 0 : 1); in btf_new_empty()
1012 btf->hdr->hdr_len = sizeof(struct btf_header); in btf_new_empty()
1483 struct btf_header *hdr = btf->hdr; in btf_get_raw_data()
[all …]
/linux/kernel/bpf/preload/iterators/
H A Diterators.bpf.c30 struct btf_header { struct
37 struct btf_header hdr; argument
/linux/tools/testing/selftests/bpf/prog_tests/
H 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()
H A Dfd_array.c25 struct btf_header btf_hdr; in new_btf()
32 .hdr_len = sizeof(struct btf_header), in new_btf()
H A Dbtf_endian.c21 const struct btf_header *hdr; in test_btf_endian()
H A Dbtf.c48 static struct btf_header hdr_tmpl = {
51 .hdr_len = sizeof(struct btf_header),
4265 static void *btf_raw_create(const struct btf_header *hdr, in btf_raw_create()
4276 struct btf_header *ret_hdr; in btf_raw_create()
4341 ret_hdr = (struct btf_header *)raw_btf; in btf_raw_create()
4388 struct btf_header *hdr; in do_test_raw()
8070 const struct btf_header *test_hdr, *expect_hdr; in do_test_dedup()
/linux/tools/testing/selftests/bpf/progs/
H A Dsyscall.c71 struct btf_header btf_hdr; in btf_load()
78 .hdr_len = sizeof(struct btf_header), in btf_load()
/linux/tools/testing/selftests/bpf/map_tests/
H 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()
/linux/include/uapi/linux/
H A Dbtf.h11 struct btf_header { struct
/linux/tools/include/uapi/linux/
H A Dbtf.h11 struct btf_header { struct
/linux/include/linux/
H A Dbtf.h144 const struct btf_header *btf_header(const struct btf *btf);
/linux/kernel/bpf/
H A Dbtf.c259 struct btf_header hdr;
1564 const struct btf_header *hdr; in btf_verifier_log_hdr()
1769 const struct btf_header *btf_header(const struct btf *btf) in btf_header() function
5214 struct btf_header *hdr; in btf_check_all_metas()
5348 const struct btf_header *hdr = &env->btf->hdr; in btf_parse_type_sec()
5371 const struct btf_header *hdr; in btf_parse_str_sec()
5401 offsetof(struct btf_header, type_off),
5402 offsetof(struct btf_header, str_off),
5418 const struct btf_header *hdr; in btf_check_sec_info()
5469 const struct btf_header *hdr; in btf_parse_hdr()
[all …]
/linux/Documentation/bpf/
H A 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