Home
last modified time | relevance | path

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

/tools/lib/bpf/
Dlibbpf_probes.c152 .hdr_len = sizeof(struct btf_header), in libbpf__load_raw_btf()
160 btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len; in libbpf__load_raw_btf()
166 memcpy(raw_btf + hdr.hdr_len, raw_types, hdr.type_len); in libbpf__load_raw_btf()
167 memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len); in libbpf__load_raw_btf()
Dbtf.c208 h->hdr_len = bswap_32(h->hdr_len); in btf_bswap_hdr()
227 if (bswap_32(hdr->hdr_len) != sizeof(struct btf_header)) { in btf_parse_hdr()
229 bswap_32(hdr->hdr_len)); in btf_parse_hdr()
238 if (btf->raw_size < hdr->hdr_len) { in btf_parse_hdr()
240 hdr->hdr_len, btf->raw_size); in btf_parse_hdr()
244 meta_left = btf->raw_size - hdr->hdr_len; in btf_parse_hdr()
793 btf->hdr->hdr_len = sizeof(struct btf_header); in btf_new_empty()
797 btf->types_data = btf->raw_data + btf->hdr->hdr_len; in btf_new_empty()
798 btf->strs_data = btf->raw_data + btf->hdr->hdr_len; in btf_new_empty()
847 btf->strs_data = btf->raw_data + btf->hdr->hdr_len + btf->hdr->str_off; in btf_new()
[all …]
Dlibbpf_internal.h337 __u32 hdr_len; member
Dlinker.c2829 hdr->hdr_len = sizeof(struct btf_ext_header); in finalize_btf_ext()
/tools/include/uapi/linux/
Dbtf.h15 __u32 hdr_len; member
Dkvm.h1742 __u32 hdr_len; member
1786 __u32 hdr_len; member
1804 __u32 hdr_len; member
/tools/testing/selftests/bpf/progs/
Dsyscall.c40 .hdr_len = sizeof(struct btf_header), in btf_load()
Dkfree_skb.c42 __u16 mac_len, hdr_len, queue_mapping; member
/tools/testing/selftests/net/
Dpsock_snd.c80 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr); in build_vnet_header()
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c130 .hdr_len = sizeof(struct btf_header), in load_btf()
/tools/testing/selftests/bpf/
Dtest_verifier.c629 .hdr_len = sizeof(struct btf_header), in load_btf()
/tools/testing/selftests/bpf/prog_tests/
Dbtf.c54 .hdr_len = sizeof(struct btf_header),
3831 hdr->hdr_len = (int)hdr->hdr_len + test->hdr_len_delta; in do_test_raw()