| /linux/kernel/bpf/ |
| H A D | arraymap.c | 23 static void bpf_array_free_percpu(struct bpf_array *array) in bpf_array_free_percpu() 33 static int bpf_array_alloc_percpu(struct bpf_array *array) in bpf_array_alloc_percpu() 91 struct bpf_array *array; in array_map_alloc() 139 array = data + PAGE_ALIGN(sizeof(struct bpf_array)) in array_map_alloc() 140 - offsetof(struct bpf_array, value); in array_map_alloc() 161 static void *array_map_elem_ptr(struct bpf_array* array, u32 index) in array_map_elem_ptr() 169 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_lookup_elem() 180 struct bpf_array *array = container_of(map, struct bpf_array, ma in array_map_get_hash() [all...] |
| H A D | map_in_map.c | 31 inner_map_meta_size = sizeof(struct bpf_array); in bpf_map_meta_alloc() 66 struct bpf_array *inner_array_meta = in bpf_map_meta_alloc() 67 container_of(inner_map_meta, struct bpf_array, map); in bpf_map_meta_alloc() 68 struct bpf_array *inner_array = container_of(inner_map, struct bpf_array, map); in bpf_map_meta_alloc()
|
| H A D | helpers.c | 1105 struct bpf_array *array = container_of(map, struct bpf_array, map); in map_key_from_value() 2942 struct bpf_array *array = container_of(map, struct bpf_array, map);
|
| H A D | core.c | 2100 struct bpf_array *array = container_of(map, struct bpf_array, map); in ___bpf_prog_run()
|
| H A D | fixups.c | 1914 struct bpf_array, in bpf_do_misc_fixups()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | map_ptr_kern.c | 135 struct bpf_array { struct 149 struct bpf_array *array = (struct bpf_array *)&m_array; in check_array() argument 181 struct bpf_array *prog_array = (struct bpf_array *)&m_prog_array; in check_prog_array() 198 struct bpf_array *perf_event_array = (struct bpf_array *)&m_perf_event_array; in check_perf_event_array() 232 struct bpf_array *percpu_array = (struct bpf_array *)&m_percpu_array; in check_percpu_array() 272 struct bpf_array *cgroup_arra in check_cgroup_array() [all...] |
| /linux/arch/parisc/net/ |
| H A D | bpf_jit_comp64.c | 352 struct bpf_array bpfa; in emit_bpf_tail_call() 362 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 389 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| H A D | bpf_jit_comp32.c | 953 struct bpf_array bpfa; in emit_bpf_tail_call() 960 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 987 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| /linux/arch/mips/net/ |
| H A D | bpf_jit_comp64.c | 493 off = offsetof(struct bpf_array, map.max_entries); in emit_tail_call() 505 off = offsetof(struct bpf_array, ptrs); in emit_tail_call()
|
| H A D | bpf_jit_comp32.c | 1307 off = offsetof(struct bpf_array, map.max_entries); in emit_tail_call() 1323 off = offsetof(struct bpf_array, ptrs); in emit_tail_call()
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 744 * ... bpf_tail_call(void *ctx, struct bpf_array *array, u64 index) ... in emit_bpf_tail_call_indirect() 766 * rsi - pointer to bpf_array in emit_bpf_tail_call_indirect() 767 * rdx - index in bpf_array in emit_bpf_tail_call_indirect() 776 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call_indirect() 793 offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call_indirect() 903 struct bpf_array *array; in bpf_tail_call_direct_fixup() 917 array = container_of(poke->tail_call.map, struct bpf_array, map); in emit_mov_imm32()
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 570 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_2() 649 struct bpf_array *array = container_of(map, struct bpf_array, map);
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit_comp32.c | 789 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 815 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| H A D | bpf_jit_comp64.c | 371 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 390 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| /linux/arch/powerpc/net/ |
| H A D | bpf_jit_comp64.c | 645 * r4/BPF_REG_2 - pointer to bpf_array in bpf_jit_emit_tail_call() 646 * r5/BPF_REG_3 - index in bpf_array in bpf_jit_emit_tail_call() 659 EMIT(PPC_RAW_LWZ(bpf_to_ppc(TMP_REG_1), b2p_bpf_array, offsetof(struct bpf_array, map.max_entries))); in bpf_jit_emit_tail_call() 688 offsetof(struct bpf_array, ptrs))); in bpf_jit_emit_tail_call()
|
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.c | 303 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 327 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| /linux/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 635 /* bpf_tail_call(void *prog_ctx, struct bpf_array *array, u64 index) */ in emit_bpf_tail_call() 651 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 676 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| /linux/lib/ |
| H A D | test_bpf.c | 15610 static void __init destroy_tail_call_tests(struct bpf_array *progs) in test_tail_calls() 15620 static __init int prepare_tail_call_tests(struct bpf_array **pprogs) in test_tail_calls() 15623 struct bpf_array *progs; 15738 static __init int test_tail_calls(struct bpf_array *progs) in test_bpf_init() 15878 struct bpf_array *progs = NULL;
|
| /linux/include/linux/ |
| H A D | bpf.h | 2368 struct bpf_array { 2243 struct bpf_array { global() struct 2247 auxbpf_array global() argument 2256 __anone9e50916150abpf_array global() argument
|
| /linux/net/core/ |
| H A D | filter.c | 5060 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_2()
|