Home
last modified time | relevance | path

Searched refs:type_off (Results 1 – 6 of 6) sorted by relevance

/linux/tools/include/uapi/linux/
H A Dbtf.h28 __u32 type_off; /* offset of type section */
18 __u32 type_off; /* offset of type section */ global() member
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcore_reloc_raw.c31 .type_off = 0, in test_bad_local_id()
H A Dbtf.c4498 hdr->type_off = (int)hdr->type_off + test->type_off_delta; in do_test_raw()
/linux/tools/lib/bpf/
H A Dbtf.c259 static int btf_add_type_idx_entry(struct btf *btf, __u32 type_off) in btf_add_type_idx_entry() argument
267 *p = type_off; in btf_add_type_idx_entry()
275 h->type_off = bswap_32(h->type_off); in btf_bswap_hdr()
345 if ((long long)btf->hdr.type_off + btf->hdr.type_len > btf->hdr.str_off) { in btf_parse_hdr()
347 btf->hdr.type_off, btf->hdr.type_len, btf->hdr.str_off, in btf_parse_hdr()
352 if (btf->hdr.type_off % 4) { in btf_parse_hdr()
365 if (btf->hdr.layout_off < (long long)btf->hdr.type_off + btf->hdr.type_len) { in btf_parse_hdr()
367 btf->hdr.type_off, btf->hdr.type_len, in btf_parse_hdr()
1340 btf->types_data = btf->raw_data + btf->hdr.hdr_len + btf->hdr.type_off; in btf_new()
2136 btf->hdr.layout_off = btf->hdr.type_off + new_len; in btf_hdr_update_type_len()
[all …]
H A Dlibbpf.c3223 new_str_off = hdr->type_off + hdr->type_len; in bpf_object__sanitize_btf()
3233 sz = hdr->hdr_len + hdr->type_off + hdr->type_len + hdr->str_len; in bpf_object__sanitize_btf()
/linux/kernel/bpf/
H A Dbtf.c1707 __btf_verifier_log(log, "type_off: %u\n", hdr->type_off); in btf_verifier_log_hdr()
5415 cur = btf->nohdr_data + hdr->type_off; in btf_check_all_metas()
5549 if (hdr->type_off & (sizeof(u32) - 1)) { in btf_parse_type_sec()
5635 offsetof(struct btf_header, type_off),