Home
last modified time | relevance | path

Searched refs:bpf_core_field_size (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_size.c51 out->int_sz = bpf_core_field_size(in->int_field); in test_core_size()
54 out->struct_sz = bpf_core_field_size(in->struct_field); in test_core_size()
57 out->union_sz = bpf_core_field_size(in->union_field); in test_core_size()
60 out->arr_sz = bpf_core_field_size(in->arr_field); in test_core_size()
63 out->arr_elem_sz = bpf_core_field_size(struct core_reloc_size, arr_field[1]); in test_core_size()
66 out->ptr_sz = bpf_core_field_size(struct core_reloc_size, ptr_field); in test_core_size()
69 out->enum_sz = bpf_core_field_size(struct core_reloc_size, enum_field); in test_core_size()
72 out->float_sz = bpf_core_field_size(struct core_reloc_size, float_field); in test_core_size()
Dtest_core_autosize.c145 bpf_core_read_int(&tmp, bpf_core_field_size(in->ptr), &in->ptr); in handle_probed()
149 bpf_core_read_int(&tmp, bpf_core_field_size(in->val1), &in->val1); in handle_probed()
153 bpf_core_read_int(&tmp, bpf_core_field_size(in->val2), &in->val2); in handle_probed()
157 bpf_core_read_int(&tmp, bpf_core_field_size(in->val3), &in->val3); in handle_probed()
161 bpf_core_read_int(&tmp, bpf_core_field_size(in->val4), &in->val4); in handle_probed()
Dtest_log_fixup.c19 return bpf_core_field_size(t->fake_field); in bad_relo()
35 return bad_subprog() + bpf_core_field_size(t->pid); in bad_relo_subprog()
/linux-6.1.9/tools/lib/bpf/
Dbpf_core_read.h144 #define bpf_core_field_size(field...) \ macro