Home
last modified time | relevance | path

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

/linux/kernel/bpf/
H A Darraymap.c23 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 Dhelpers.c1143 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 Dcore.c2176 struct bpf_array *array = container_of(map, struct bpf_array, map); in ___bpf_prog_run()
H A Dfixups.c2317 struct bpf_array, in bpf_do_misc_fixups()
/linux/tools/testing/selftests/bpf/progs/
H A Dmap_ptr_kern.c135 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 Dskel_internal.h138 * ((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 Dbpf_jit_comp64.c352 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 Dbpf_jit_comp32.c962 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 Dbpf_jit_comp64.c569 off = offsetof(struct bpf_array, map.max_entries); in build_prologue()
581 off = offsetof(struct bpf_array, ptrs); in build_prologue()
H A Dbpf_jit_comp32.c1379 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 Dbpf_trace.c570 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 Dbpf_jit_comp.c823 * ... 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 Dbpf_jit_comp32.c794 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 Dbpf_jit_comp64.c336 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 Dbpf_jit_comp.c1906 * 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 Dbpf_jit.c293 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 Dbpf_jit_comp.c637 /* 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 Dbpf.h2553 struct bpf_array {
2412 struct bpf_array { global() struct
2416 auxbpf_array global() argument
2425 __anone9e50916170abpf_array global() argument
/linux/net/core/
H A Dfilter.c5182 struct bpf_array *array = container_of(map, struct bpf_array, map); in __bpf_sk_cgroup_id()