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, map); in array_map_get_hash()
190 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_addr()
204 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_meta()
[all …]
H A Dhelpers.c1105 struct bpf_array *array = container_of(map, struct bpf_array, map); in map_key_from_value()
2942 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_2()
H A Dcore.c2169 struct bpf_array *array = container_of(map, struct bpf_array, map); in ___bpf_prog_run()
H A Dfixups.c1977 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.h168 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.c953 struct bpf_array bpfa; in emit_bpf_tail_call()
960 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
987 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
/linux/arch/mips/net/
H A Dbpf_jit_comp64.c493 off = offsetof(struct bpf_array, map.max_entries); in emit_tail_call()
505 off = offsetof(struct bpf_array, ptrs); in emit_tail_call()
H A Dbpf_jit_comp32.c1307 off = offsetof(struct bpf_array, map.max_entries); in emit_tail_call()
1323 off = offsetof(struct bpf_array, ptrs); in emit_tail_call()
/linux/arch/x86/net/
H A Dbpf_jit_comp.c776 offsetof(struct bpf_array, map.max_entries)); in emit_bpf_tail_call_indirect()
793 offsetof(struct bpf_array, ptrs)); in emit_bpf_tail_call_indirect()
903 struct bpf_array *array; in bpf_tail_call_direct_fixup()
917 array = container_of(poke->tail_call.map, struct bpf_array, map); in bpf_tail_call_direct_fixup()
/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/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.c337 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
357 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
/linux/arch/s390/net/
H A Dbpf_jit_comp.c1921 offsetof(struct bpf_array, map.max_entries)); in bpf_jit_insn()
1957 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.c651 off = offsetof(struct bpf_array, map.max_entries); in emit_bpf_tail_call()
676 off = offsetof(struct bpf_array, ptrs); in emit_bpf_tail_call()
/linux/include/linux/
H A Dbpf.h2373 struct bpf_array { struct
/linux/net/core/
H A Dfilter.c5155 struct bpf_array *array = container_of(map, struct bpf_array, map); in BPF_CALL_3()