| /linux/kernel/bpf/ |
| H A D | arraymap.c | 23 static void bpf_array_free_percpu(struct bpf_array *array) in bpf_array_free_percpu() 33 static int bpf_array_alloc_percpu(struct bpf_array *array) in bpf_array_alloc_percpu() 91 struct bpf_array *array; in array_map_alloc() 139 array = data + PAGE_ALIGN(sizeof(struct bpf_array)) in array_map_alloc() 140 - offsetof(struct bpf_array, value); in array_map_alloc() 161 static void *array_map_elem_ptr(struct bpf_array* array, u32 index) in array_map_elem_ptr() 169 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_lookup_elem() 180 struct bpf_array *array = container_of(map, struct bpf_array, ma in array_map_get_hash() [all...] |
| H A D | helpers.c | 1143 struct bpf_array *array = container_of(map, struct bpf_array, map); 2984 struct bpf_array *array = container_of(map, struct bpf_array, map);
|
| H A D | core.c | 2176 struct bpf_array *array = container_of(map, struct bpf_array, map); in ___bpf_prog_run()
|
| H A D | fixups.c | 2317 struct bpf_array, in bpf_do_misc_fixups()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | map_ptr_kern.c | 135 struct bpf_array { struct 149 struct bpf_array *array = (struct bpf_array *)&m_array; in check_array() argument 181 struct bpf_array *prog_array = (struct bpf_array *)&m_prog_array; in check_prog_array() 198 struct bpf_array *perf_event_array = (struct bpf_array *)&m_perf_event_array; in check_perf_event_array() 232 struct bpf_array *percpu_array = (struct bpf_array *)&m_percpu_array; in check_percpu_array() 272 struct bpf_array *cgroup_arra in check_cgroup_array() [all...] |
| /linux/tools/lib/bpf/ |
| H A D | skel_internal.h | 138 * ((struct bpf_array *)map)->value. in skel_free_map_data() 171 addr = ((struct bpf_array *)map)->value; in skel_finalize_map_data()
|
| /linux/arch/parisc/net/ |
| H A D | bpf_jit_comp64.c | 352 struct bpf_array bpfa; in emit_bpf_tail_call() 362 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 389 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| H A D | bpf_jit_comp32.c | 962 struct bpf_array bpfa; in emit_bpf_tail_call() 969 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 996 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| /linux/arch/mips/net/ |
| H A D | bpf_jit_comp64.c | 569 off = offsetof(struct bpf_array, map.max_entries); in build_prologue() 581 off = offsetof(struct bpf_array, ptrs); in build_prologue()
|
| H A D | bpf_jit_comp32.c | 1379 off = offsetof(struct bpf_array, map.max_entries); in build_prologue() 1395 off = offsetof(struct bpf_array, ptrs); in build_prologue()
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 570 struct bpf_array *array = container_of(map, struct bpf_array, map); in get_map_perf_counter() 649 struct bpf_array *array = container_of(map, struct bpf_array, map); in __bpf_perf_event_output()
|
| /linux/arch/x86/net/ |
| H A D | bpf_jit_comp.c | 823 * ... bpf_tail_call(void *ctx, struct bpf_array *array, u64 index) ... in emit_bpf_tail_call_indirect() 845 * rsi - pointer to bpf_array in emit_bpf_tail_call_direct() 846 * rdx - index in bpf_array in emit_bpf_tail_call_direct() 855 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call_direct() 873 offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call_direct() 981 struct bpf_array *array; in emit_mov_imm64() 995 array = container_of(poke->tail_call.map, struct bpf_array, map); in emit_mov_imm64()
|
| /linux/arch/riscv/net/ |
| H A D | bpf_jit_comp32.c | 794 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 820 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| H A D | bpf_jit_comp64.c | 336 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 356 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| /linux/arch/s390/net/ |
| H A D | bpf_jit_comp.c | 1906 * B2: pointer to bpf_array in bpf_jit_insn() 1907 * B3: index in bpf_array in bpf_jit_insn() 1915 offsetof(struct bpf_array, map.max_entries)); in bpf_jit_insn() 1951 REG_1, offsetof(struct bpf_array, ptrs)); in bpf_jit_insn()
|
| /linux/arch/loongarch/net/ |
| H A D | bpf_jit.c | 293 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 319 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| /linux/arch/arm64/net/ |
| H A D | bpf_jit_comp.c | 637 /* bpf_tail_call(void *prog_ctx, struct bpf_array *array, u64 index) */ in emit_bpf_tail_call() 653 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call() 678 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
|
| /linux/include/linux/ |
| H A D | bpf.h | 2553 struct bpf_array { 2412 struct bpf_array { global() struct 2416 auxbpf_array global() argument 2425 __anone9e50916170abpf_array global() argument
|
| /linux/net/core/ |
| H A D | filter.c | 5182 struct bpf_array *array = container_of(map, struct bpf_array, map); in __bpf_sk_cgroup_id()
|