Searched refs:ptr_sz (Results 1 – 7 of 7) sorted by relevance
/tools/testing/selftests/bpf/progs/ |
D | test_core_reloc_size.c | 22 int ptr_sz; member 48 out->ptr_sz = bpf_core_field_size(in->ptr_field); in test_core_size()
|
D | core_reloc_types.h | 792 int ptr_sz; member
|
/tools/lib/bpf/ |
D | btf.c | 123 int ptr_sz; member 462 if (btf->base_btf && btf->base_btf->ptr_sz > 0) in determine_ptr_size() 463 return btf->base_btf->ptr_sz; in determine_ptr_size() 488 if (!btf->ptr_sz) in btf_ptr_sz() 489 ((struct btf *)btf)->ptr_sz = determine_ptr_size(btf); in btf_ptr_sz() 490 return btf->ptr_sz < 0 ? sizeof(void *) : btf->ptr_sz; in btf_ptr_sz() 503 if (!btf->ptr_sz) in btf__pointer_size() 504 ((struct btf *)btf)->ptr_sz = determine_ptr_size(btf); in btf__pointer_size() 506 if (btf->ptr_sz < 0) in btf__pointer_size() 510 return btf->ptr_sz; in btf__pointer_size() [all …]
|
D | btf_dump.c | 83 int ptr_sz; member 164 d->ptr_sz = btf__pointer_size(btf) ? : sizeof(void *); in btf_dump__new() 855 {"long", d->ptr_sz * 8}, {"int", 32}, {"short", 16}, {"char", 8} in btf_dump_emit_bit_padding() 1736 nr_bytes = d->ptr_sz; in btf_dump_base_type_check_zero() 2025 if (ptr_is_aligned(data, d->ptr_sz) && d->ptr_sz == sizeof(void *)) { in btf_dump_ptr_data() 2030 memcpy(&pt, data, d->ptr_sz); in btf_dump_ptr_data() 2031 if (d->ptr_sz == 4) in btf_dump_ptr_data()
|
D | btf.h | 67 LIBBPF_API int btf__set_pointer_size(struct btf *btf, size_t ptr_sz);
|
/tools/testing/selftests/bpf/prog_tests/ |
D | btf_dump.c | 248 size_t ptr_sz, char *str, const char *expected_val) in btf_dump_data() argument 271 ret = btf_dump__dump_type_data(d, type_id, ptr, ptr_sz, &opts); in btf_dump_data() 272 if (type_sz <= ptr_sz) { in btf_dump_data()
|
D | core_reloc.c | 262 .ptr_sz = 8, /* always 8-byte pointer for BPF */ \
|