Home
last modified time | relevance | path

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

/tools/lib/bpf/
Dlibbpf_probes.c228 .type_len = types_len, in libbpf__load_raw_btf()
235 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len; in libbpf__load_raw_btf()
241 memcpy(raw_btf + hdr.hdr_len, raw_types, hdr.type_len); in libbpf__load_raw_btf()
242 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf()
Dbtf.c215 h->type_len = bswap_32(h->type_len); in btf_bswap_hdr()
255 if ((long long)hdr->type_off + hdr->type_len > hdr->str_off) { in btf_parse_hdr()
257 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len); in btf_parse_hdr()
417 void *end_type = next_type + hdr->type_len; in btf_parse_type_sec()
1269 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data()
1280 memcpy(p, btf->types_data, hdr->type_len); in btf_get_raw_data()
1293 p += hdr->type_len; in btf_get_raw_data()
1446 types = malloc(btf->hdr->type_len); in btf_ensure_modifiable()
1451 memcpy(types, btf->types_data, btf->hdr->type_len); in btf_ensure_modifiable()
1463 btf->types_data_cap = btf->hdr->type_len; in btf_ensure_modifiable()
[all …]
/tools/include/uapi/linux/
Dbtf.h19 __u32 type_len; /* length of type section */ member
/tools/testing/selftests/bpf/progs/
Dsyscall.c41 .type_len = sizeof(__u32) * 8, in btf_load()
/tools/testing/selftests/bpf/
Dtest_verifier.c748 .type_len = types_len, in load_btf_spec()
767 memcpy(ptr, types, hdr.type_len); in load_btf_spec()
768 ptr += hdr.type_len; in load_btf_spec()
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c127 .type_len = sizeof(btf_raw_types), in load_btf()
/tools/testing/selftests/bpf/prog_tests/
Dbtf.c4282 ret_hdr->type_len = type_sec_size; in btf_raw_create()