/kernel/linux/linux-5.10/kernel/bpf/ |
D | arraymap.c | 21 static void bpf_array_free_percpu(struct bpf_array *array) in bpf_array_free_percpu() 31 static int bpf_array_alloc_percpu(struct bpf_array *array) in bpf_array_alloc_percpu() 89 struct bpf_array *array; in array_map_alloc() 148 array = data + PAGE_ALIGN(sizeof(struct bpf_array)) in array_map_alloc() 149 - offsetof(struct bpf_array, value); in array_map_alloc() 177 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_lookup_elem() 189 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_addr() 203 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_meta() 219 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_gen_lookup() 229 *insn++ = BPF_ALU64_IMM(BPF_ADD, map_ptr, offsetof(struct bpf_array, value)); in array_map_gen_lookup() [all …]
|
D | map_in_map.c | 39 inner_map_meta_size = sizeof(struct bpf_array); in bpf_map_meta_alloc() 58 container_of(inner_map_meta, struct bpf_array, map)->index_mask = in bpf_map_meta_alloc() 59 container_of(inner_map, struct bpf_array, map)->index_mask; in bpf_map_meta_alloc()
|
D | core.c | 1565 struct bpf_array *array = container_of(map, struct bpf_array, map); in ___bpf_prog_run() 1776 bool bpf_prog_array_compatible(struct bpf_array *array, in bpf_prog_array_compatible() 1809 struct bpf_array *array; in bpf_check_tail_call() 1814 array = container_of(map, struct bpf_array, map); in bpf_check_tail_call()
|
D | syscall.c | 549 const struct bpf_array *array; in bpf_map_show_fdinfo() 553 array = container_of(map, struct bpf_array, map); in bpf_map_show_fdinfo()
|
D | verifier.c | 11596 struct bpf_array, in fixup_bpf_calls()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | map_ptr_kern.c | 136 struct bpf_array { struct 150 struct bpf_array *array = (struct bpf_array *)&m_array; in check_array() argument 182 struct bpf_array *prog_array = (struct bpf_array *)&m_prog_array; in check_prog_array() 199 struct bpf_array *perf_event_array = (struct bpf_array *)&m_perf_event_array; in check_perf_event_array() 233 struct bpf_array *percpu_array = (struct bpf_array *)&m_percpu_array; in check_percpu_array() 273 struct bpf_array *cgroup_array = (struct bpf_array *)&m_cgroup_array; in check_cgroup_array() 367 struct bpf_array *array_of_maps = (struct bpf_array *)&m_array_of_maps; in check_array_of_maps()
|
/kernel/linux/linux-5.10/kernel/trace/ |
D | bpf_trace.c | 807 struct bpf_array *array = container_of(map, struct bpf_array, map); in get_map_perf_counter() 880 struct bpf_array *array = container_of(map, struct bpf_array, map); in __bpf_perf_event_output() 1022 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_2()
|
/kernel/linux/linux-5.10/arch/sparc/net/ |
D | bpf_jit_comp_64.c | 852 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()
|
/kernel/linux/linux-5.10/arch/x86/net/ |
D | bpf_jit_comp.c | 452 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call_indirect() 471 offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call_indirect() 552 struct bpf_array *array; in bpf_tail_call_direct_fixup() 566 array = container_of(poke->tail_call.map, struct bpf_array, map); in bpf_tail_call_direct_fixup()
|
D | bpf_jit_comp32.c | 1321 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()
|
/kernel/linux/linux-5.10/arch/arm/net/ |
D | bpf_jit_32.c | 1188 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()
|
/kernel/linux/linux-5.10/arch/arm64/net/ |
D | bpf_jit_comp.c | 283 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()
|
/kernel/linux/linux-5.10/arch/powerpc/net/ |
D | bpf_jit_comp64.c | 243 EMIT(PPC_RAW_LWZ(b2p[TMP_REG_1], b2p_bpf_array, offsetof(struct bpf_array, map.max_entries))); in bpf_jit_emit_tail_call() 265 PPC_BPF_LL(b2p[TMP_REG_1], b2p[TMP_REG_1], offsetof(struct bpf_array, ptrs)); in bpf_jit_emit_tail_call()
|
/kernel/linux/linux-5.10/arch/riscv/net/ |
D | bpf_jit_comp64.c | 307 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()
|
D | bpf_jit_comp32.c | 789 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()
|
/kernel/linux/linux-5.10/arch/s390/net/ |
D | bpf_jit_comp.c | 1313 offsetof(struct bpf_array, map.max_entries)); in bpf_jit_insn() 1350 REG_1, offsetof(struct bpf_array, ptrs)); in bpf_jit_insn()
|
/kernel/linux/linux-5.10/include/linux/ |
D | bpf.h | 1034 struct bpf_array { struct 1085 bool bpf_prog_array_compatible(struct bpf_array *array, const struct bpf_prog *fp);
|
/kernel/linux/linux-5.10/arch/mips/net/ |
D | ebpf_jit.c | 614 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 636 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
/kernel/linux/linux-5.10/net/core/ |
D | filter.c | 4435 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_3()
|