/Linux-v4.19/kernel/bpf/ |
D | arraymap.c | 27 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 …]
|
D | core.c | 1125 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()
|
D | syscall.c | 343 const struct bpf_array *array; in bpf_map_show_fdinfo() 348 array = container_of(map, struct bpf_array, map); in bpf_map_show_fdinfo()
|
D | verifier.c | 5783 struct bpf_array, in fixup_bpf_calls()
|
/Linux-v4.19/kernel/trace/ |
D | bpf_trace.c | 297 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/ |
D | bpf_jit_comp_64.c | 846 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/ |
D | bpf.h | 303 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/ |
D | bpf_jit_comp.c | 279 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call() 298 offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call()
|
D | bpf_jit_comp32.c | 1528 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/ |
D | bpf_jit_comp64.c | 220 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/ |
D | bpf_jit_32.c | 1136 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/ |
D | bpf_jit_comp.c | 1017 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/ |
D | bpf_jit_comp.c | 272 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/ |
D | ebpf_jit.c | 592 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/ |
D | filter.c | 3734 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_3()
|