Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_size.c22 int ptr_sz; member
46 out->ptr_sz = bpf_core_field_size(in->ptr_field); in test_core_size()
Dcore_reloc_types.h775 int ptr_sz; member
/tools/lib/bpf/
Dbtf.c97 int ptr_sz; member
456 if (!btf->ptr_sz) in btf_ptr_sz()
457 ((struct btf *)btf)->ptr_sz = determine_ptr_size(btf); in btf_ptr_sz()
458 return btf->ptr_sz < 0 ? sizeof(void *) : btf->ptr_sz; in btf_ptr_sz()
471 if (!btf->ptr_sz) in btf__pointer_size()
472 ((struct btf *)btf)->ptr_sz = determine_ptr_size(btf); in btf__pointer_size()
474 if (btf->ptr_sz < 0) in btf__pointer_size()
478 return btf->ptr_sz; in btf__pointer_size()
484 int btf__set_pointer_size(struct btf *btf, size_t ptr_sz) in btf__set_pointer_size() argument
486 if (ptr_sz != 4 && ptr_sz != 8) in btf__set_pointer_size()
[all …]
Dbtf_dump.c61 int ptr_sz; member
137 d->ptr_sz = btf__pointer_size(btf) ? : sizeof(void *); in btf_dump__new()
826 {"long", d->ptr_sz * 8}, {"int", 32}, {"short", 16}, {"char", 8} in btf_dump_emit_bit_padding()
Dbtf.h49 LIBBPF_API int btf__set_pointer_size(struct btf *btf, size_t ptr_sz);
/tools/testing/selftests/bpf/prog_tests/
Dcore_reloc.c237 .ptr_sz = 8, /* always 8-byte pointer for BPF */ \