Home
last modified time | relevance | path

Searched refs:bpf_core_field_offset (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_core_reloc_size.c52 out->int_off = bpf_core_field_offset(in->int_field); in test_core_size()
55 out->struct_off = bpf_core_field_offset(in->struct_field); in test_core_size()
58 out->union_off = bpf_core_field_offset(in->union_field); in test_core_size()
61 out->arr_off = bpf_core_field_offset(in->arr_field); in test_core_size()
64 out->arr_elem_off = bpf_core_field_offset(struct core_reloc_size, arr_field[1]); in test_core_size()
67 out->ptr_off = bpf_core_field_offset(struct core_reloc_size, ptr_field); in test_core_size()
70 out->enum_off = bpf_core_field_offset(struct core_reloc_size, enum_field); in test_core_size()
73 out->float_off = bpf_core_field_offset(struct core_reloc_size, float_field); in test_core_size()
/linux-6.1.9/tools/lib/bpf/
Dbpf_core_read.h156 #define bpf_core_field_offset(field...) \ macro