Home
last modified time | relevance | path

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

/Linux-v4.19/kernel/bpf/
Darraymap.c27 static void bpf_array_free_percpu(struct bpf_array *array) in bpf_array_free_percpu()
37 static int bpf_array_alloc_percpu(struct bpf_array *array) in bpf_array_alloc_percpu()
85 struct bpf_array *array; in array_map_alloc()
154 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_lookup_elem()
166 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_gen_lookup()
173 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value)); in array_map_gen_lookup()
196 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_lookup_elem()
207 struct bpf_array *array = container_of(map, struct bpf_array, map); in bpf_percpu_array_copy()
234 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_get_next_key()
254 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_update_elem()
[all …]
Dcore.c1125 struct bpf_array *array = container_of(map, struct bpf_array, map); in ___bpf_prog_run()
1411 bool bpf_prog_array_compatible(struct bpf_array *array, in bpf_prog_array_compatible()
1438 struct bpf_array *array; in bpf_check_tail_call()
1443 array = container_of(map, struct bpf_array, map); in bpf_check_tail_call()
Dsyscall.c343 const struct bpf_array *array; in bpf_map_show_fdinfo()
348 array = container_of(map, struct bpf_array, map); in bpf_map_show_fdinfo()
Dverifier.c5783 struct bpf_array, in fixup_bpf_calls()
/Linux-v4.19/kernel/trace/
Dbpf_trace.c297 struct bpf_array *array = container_of(map, struct bpf_array, map); in get_map_perf_counter()
372 struct bpf_array *array = container_of(map, struct bpf_array, map); in __bpf_perf_event_output()
473 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_2()
/Linux-v4.19/arch/sparc/net/
Dbpf_jit_comp_64.c846 const u8 bpf_array = bpf2sparc[BPF_REG_2]; in emit_tail_call() local
853 off = offsetof(struct bpf_array, map.max_entries); in emit_tail_call()
854 emit(LD32 | IMMED | RS1(bpf_array) | S13(off) | RD(tmp), ctx); in emit_tail_call()
872 emit_alu(ADD, bpf_array, tmp, ctx); in emit_tail_call()
873 off = offsetof(struct bpf_array, ptrs); in emit_tail_call()
/Linux-v4.19/include/linux/
Dbpf.h303 struct bpf_array { struct
330 bool bpf_prog_array_compatible(struct bpf_array *array, const struct bpf_prog *fp); argument
/Linux-v4.19/arch/x86/net/
Dbpf_jit_comp.c279 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call()
298 offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call()
Dbpf_jit_comp32.c1528 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call()
1562 EMIT3_off32(0x8B, 0x94, 0x90, offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call()
/Linux-v4.19/arch/powerpc/net/
Dbpf_jit_comp64.c220 PPC_LWZ(b2p[TMP_REG_1], b2p_bpf_array, offsetof(struct bpf_array, map.max_entries)); in bpf_jit_emit_tail_call()
242 PPC_LD(b2p[TMP_REG_1], b2p[TMP_REG_1], offsetof(struct bpf_array, ptrs)); in bpf_jit_emit_tail_call()
/Linux-v4.19/arch/arm/net/
Dbpf_jit_32.c1136 BUILD_BUG_ON(offsetof(struct bpf_array, map.max_entries) > in emit_bpf_tail_call()
1138 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
1168 BUILD_BUG_ON(imm8m(offsetof(struct bpf_array, ptrs)) < 0); in emit_bpf_tail_call()
1169 off = imm8m(offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call()
/Linux-v4.19/arch/s390/net/
Dbpf_jit_comp.c1017 offsetof(struct bpf_array, map.max_entries)); in bpf_jit_insn()
1049 REG_1, offsetof(struct bpf_array, ptrs)); in bpf_jit_insn()
/Linux-v4.19/arch/arm64/net/
Dbpf_jit_comp.c272 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
292 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
/Linux-v4.19/arch/mips/net/
Debpf_jit.c592 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
614 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
/Linux-v4.19/net/core/
Dfilter.c3734 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_3()