Home
last modified time | relevance | path

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

/Linux-v5.4/kernel/bpf/
Darraymap.c19 static void bpf_array_free_percpu(struct bpf_array *array) in bpf_array_free_percpu()
29 static int bpf_array_alloc_percpu(struct bpf_array *array) in bpf_array_alloc_percpu()
79 struct bpf_array *array; in array_map_alloc()
145 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_lookup_elem()
157 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_addr()
171 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_meta()
187 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_gen_lookup()
194 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value)); in array_map_gen_lookup()
217 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_lookup_elem()
228 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_percpu_array_copy()
[all …]
Dmap_in_map.c45 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()
Dcore.c1460 struct bpf_array *array = container_of(map, struct bpf_array, map); in ___bpf_prog_run()
1649 bool bpf_prog_array_compatible(struct bpf_array *array, in bpf_prog_array_compatible()
1676 struct bpf_array *array; in bpf_check_tail_call()
1681 array = container_of(map, struct bpf_array, map); in bpf_check_tail_call()
Dsyscall.c375 const struct bpf_array *array; in bpf_map_show_fdinfo()
380 array = container_of(map, struct bpf_array, map); in bpf_map_show_fdinfo()
Dverifier.c9045 struct bpf_array, in fixup_bpf_calls()
/Linux-v5.4/kernel/trace/
Dbpf_trace.c352 struct bpf_array *array = container_of(map, struct bpf_array, map); in get_map_perf_counter()
425 struct bpf_array *array = container_of(map, struct bpf_array, map); in __bpf_perf_event_output()
567 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_2()
/Linux-v5.4/arch/sparc/net/
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-v5.4/arch/x86/net/
Dbpf_jit_comp.c248 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call()
267 offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call()
Dbpf_jit_comp32.c1305 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call()
1339 EMIT3_off32(0x8B, 0x94, 0x90, offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call()
/Linux-v5.4/include/linux/
Dbpf.h426 struct bpf_array { struct
483 bool bpf_prog_array_compatible(struct bpf_array *array, const struct bpf_prog *fp);
/Linux-v5.4/arch/arm/net/
Dbpf_jit_32.c1150 BUILD_BUG_ON(offsetof(struct bpf_array, map.max_entries) > in emit_bpf_tail_call()
1152 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
1182 BUILD_BUG_ON(imm8m(offsetof(struct bpf_array, ptrs)) < 0); in emit_bpf_tail_call()
1183 off = imm8m(offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call()
/Linux-v5.4/arch/arm64/net/
Dbpf_jit_comp.c260 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
280 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
/Linux-v5.4/arch/powerpc/net/
Dbpf_jit_comp64.c242 PPC_LWZ(b2p[TMP_REG_1], b2p_bpf_array, offsetof(struct bpf_array, map.max_entries)); in bpf_jit_emit_tail_call()
264 PPC_BPF_LL(b2p[TMP_REG_1], b2p[TMP_REG_1], offsetof(struct bpf_array, ptrs)); in bpf_jit_emit_tail_call()
/Linux-v5.4/arch/s390/net/
Dbpf_jit_comp.c1056 offsetof(struct bpf_array, map.max_entries)); in bpf_jit_insn()
1090 REG_1, offsetof(struct bpf_array, ptrs)); in bpf_jit_insn()
/Linux-v5.4/arch/riscv/net/
Dbpf_jit_comp.c625 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
649 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
/Linux-v5.4/arch/mips/net/
Debpf_jit.c613 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
635 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
/Linux-v5.4/net/core/
Dfilter.c4056 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_3()