Home
last modified time | relevance | path

Searched refs:bpf_array (Results 1 – 23 of 23) sorted by relevance

/linux/kernel/bpf/
A Darraymap.c161 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_lookup_elem()
173 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_addr()
187 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_meta()
203 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_gen_lookup()
236 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_lookup_elem()
247 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_percpu_array_copy()
274 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_get_next_key()
300 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_update_elem()
338 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_percpu_array_update()
386 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_free_timers()
[all …]
A Dmap_in_map.c40 inner_map_meta_size = sizeof(struct bpf_array); in bpf_map_meta_alloc()
64 container_of(inner_map_meta, struct bpf_array, map)->index_mask = in bpf_map_meta_alloc()
65 container_of(inner_map, struct bpf_array, map)->index_mask; in bpf_map_meta_alloc()
A Dcore.c1571 struct bpf_array *array = container_of(map, struct bpf_array, map); in ___bpf_prog_run()
1831 bool bpf_prog_array_compatible(struct bpf_array *array, in bpf_prog_array_compatible()
1864 struct bpf_array *array; in bpf_check_tail_call()
1869 array = container_of(map, struct bpf_array, map); in bpf_check_tail_call()
A Dhelpers.c1075 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_timer_cb()
A Dsyscall.c559 const struct bpf_array *array; in bpf_map_show_fdinfo()
563 array = container_of(map, struct bpf_array, map); in bpf_map_show_fdinfo()
A Dverifier.c13092 struct bpf_array, in do_misc_fixups()
/linux/tools/testing/selftests/bpf/progs/
A Dmap_ptr_kern.c130 struct bpf_array { struct
144 struct bpf_array *array = (struct bpf_array *)&m_array; in check_array() argument
176 struct bpf_array *prog_array = (struct bpf_array *)&m_prog_array; in check_prog_array()
193 struct bpf_array *perf_event_array = (struct bpf_array *)&m_perf_event_array; in check_perf_event_array()
227 struct bpf_array *percpu_array = (struct bpf_array *)&m_percpu_array; in check_percpu_array()
267 struct bpf_array *cgroup_array = (struct bpf_array *)&m_cgroup_array; in check_cgroup_array()
361 struct bpf_array *array_of_maps = (struct bpf_array *)&m_array_of_maps; in check_array_of_maps()
/linux/kernel/trace/
A Dbpf_trace.c545 struct bpf_array *array = container_of(map, struct bpf_array, map); in get_map_perf_counter()
618 struct bpf_array *array = container_of(map, struct bpf_array, map); in __bpf_perf_event_output()
789 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_2()
/linux/arch/sparc/net/
A Dbpf_jit_comp_64.c852 const u8 bpf_array = bpf2sparc[BPF_REG_2]; in emit_tail_call() local
859 off = offsetof(struct bpf_array, map.max_entries); in emit_tail_call()
860 emit(LD32 | IMMED | RS1(bpf_array) | S13(off) | RD(tmp), ctx); in emit_tail_call()
878 emit_alu(ADD, bpf_array, tmp, ctx); in emit_tail_call()
879 off = offsetof(struct bpf_array, ptrs); in emit_tail_call()
/linux/arch/x86/net/
A Dbpf_jit_comp.c443 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call_indirect()
462 offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call_indirect()
543 struct bpf_array *array; in bpf_tail_call_direct_fixup()
557 array = container_of(poke->tail_call.map, struct bpf_array, map); in bpf_tail_call_direct_fixup()
A Dbpf_jit_comp32.c1321 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call()
1355 EMIT3_off32(0x8B, 0x94, 0x90, offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call()
/linux/arch/arm/net/
A Dbpf_jit_32.c1188 BUILD_BUG_ON(offsetof(struct bpf_array, map.max_entries) > in emit_bpf_tail_call()
1190 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
1220 BUILD_BUG_ON(imm8m(offsetof(struct bpf_array, ptrs)) < 0); in emit_bpf_tail_call()
1221 off = imm8m(offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call()
/linux/arch/mips/net/
A Dbpf_jit_comp64.c490 off = offsetof(struct bpf_array, map.max_entries); in emit_tail_call()
502 off = offsetof(struct bpf_array, ptrs); in emit_tail_call()
A Dbpf_jit_comp32.c1307 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/powerpc/net/
A Dbpf_jit_comp64.c225 EMIT(PPC_RAW_LWZ(b2p[TMP_REG_1], b2p_bpf_array, offsetof(struct bpf_array, map.max_entries))); in bpf_jit_emit_tail_call()
247 PPC_BPF_LL(b2p[TMP_REG_1], b2p[TMP_REG_1], offsetof(struct bpf_array, ptrs)); in bpf_jit_emit_tail_call()
A Dbpf_jit_comp32.c218 EMIT(PPC_RAW_LWZ(_R0, b2p_bpf_array, offsetof(struct bpf_array, map.max_entries))); in bpf_jit_emit_tail_call()
235 EMIT(PPC_RAW_LWZ(_R3, _R3, offsetof(struct bpf_array, ptrs))); in bpf_jit_emit_tail_call()
/linux/arch/arm64/net/
A Dbpf_jit_comp.c283 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
303 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
/linux/arch/s390/net/
A Dbpf_jit_comp.c1364 offsetof(struct bpf_array, map.max_entries)); in bpf_jit_insn()
1401 REG_1, offsetof(struct bpf_array, ptrs)); in bpf_jit_insn()
/linux/arch/riscv/net/
A Dbpf_jit_comp64.c323 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
343 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
A Dbpf_jit_comp32.c789 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
817 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
/linux/include/linux/
A Dbpf.h1072 struct bpf_array { struct
1123 bool bpf_prog_array_compatible(struct bpf_array *array, const struct bpf_prog *fp);
/linux/lib/
A Dtest_bpf.c14736 static void __init destroy_tail_call_tests(struct bpf_array *progs) in destroy_tail_call_tests()
14746 static __init int prepare_tail_call_tests(struct bpf_array **pprogs) in prepare_tail_call_tests()
14749 struct bpf_array *progs; in prepare_tail_call_tests()
14864 static __init int test_tail_calls(struct bpf_array *progs) in test_tail_calls()
15004 struct bpf_array *progs = NULL; in test_bpf_init()
/linux/net/core/
A Dfilter.c4432 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_3()

Completed in 165 milliseconds