Searched refs:ptr_sz (Results 1 – 6 of 6) sorted by relevance
/tools/testing/selftests/bpf/progs/ |
D | test_core_reloc_size.c | 22 int ptr_sz; member 46 out->ptr_sz = bpf_core_field_size(in->ptr_field); in test_core_size()
|
D | core_reloc_types.h | 775 int ptr_sz; member
|
/tools/lib/bpf/ |
D | btf.c | 97 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 …]
|
D | btf_dump.c | 61 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()
|
D | btf.h | 49 LIBBPF_API int btf__set_pointer_size(struct btf *btf, size_t ptr_sz);
|
/tools/testing/selftests/bpf/prog_tests/ |
D | core_reloc.c | 237 .ptr_sz = 8, /* always 8-byte pointer for BPF */ \
|