Home
last modified time | relevance | path

Searched defs:bpf_map (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.15/tools/perf/include/bpf/
Dbpf.h11 struct bpf_map { struct
21 #define bpf_map(name, _type, type_key, type_val, _max_entries) \ argument
/Linux-v5.15/kernel/bpf/preload/iterators/
Diterators.bpf.c15 struct bpf_map { struct
23 struct bpf_map *map; argument
/Linux-v5.15/tools/testing/selftests/bpf/progs/
Dmap_ptr_kern.c30 struct bpf_map { struct
31 enum bpf_map_type map_type; argument
38 static inline int check_bpf_map_fields(struct bpf_map *map, __u32 key_size, in check_bpf_map_fields() argument
/Linux-v5.15/include/linux/
Dbpf.h156 struct bpf_map { struct
160 const struct bpf_map_ops *ops ____cacheline_aligned; argument
161 struct bpf_map *inner_map_meta; argument
165 enum bpf_map_type map_type; argument
166 u32 key_size;
167 u32 value_size;
168 u32 max_entries;
169 u32 map_flags;
170 int spin_lock_off; /* >=0 valid offset, <0 error */
171 int timer_off; /* >=0 valid offset, <0 error */
[all …]
/Linux-v5.15/kernel/bpf/
Dhelpers.c30 BPF_CALL_2(bpf_map_lookup_elem, struct bpf_map *, map, void *, key) in BPF_CALL_2()
45 BPF_CALL_4(bpf_map_update_elem, struct bpf_map *, map, void *, key, in BPF_CALL_4()
63 BPF_CALL_2(bpf_map_delete_elem, struct bpf_map *, map, void *, key) in BPF_CALL_2()
78 BPF_CALL_3(bpf_map_push_elem, struct bpf_map *, map, void *, value, u64, flags) in BPF_CALL_3()
93 BPF_CALL_2(bpf_map_pop_elem, struct bpf_map *, map, void *, value) in BPF_CALL_2()
106 BPF_CALL_2(bpf_map_peek_elem, struct bpf_map *, map, void *, value) in BPF_CALL_2()
407 BPF_CALL_2(bpf_get_local_storage, struct bpf_map *, map, u64, flags) in BPF_CALL_2()
617 BPF_CALL_5(bpf_event_output_data, void *, ctx, struct bpf_map *, map, in BPF_CALL_5()
1095 BPF_CALL_3(bpf_timer_init, struct bpf_timer_kern *, timer, struct bpf_map *, map, in BPF_CALL_3()
Dbpf_inode_storage.c170 BPF_CALL_4(bpf_inode_storage_get, struct bpf_map *, map, struct inode *, inode, in BPF_CALL_4()
205 struct bpf_map *, map, struct inode *, inode) in BPF_CALL_2()
Dbpf_task_storage.c227 BPF_CALL_4(bpf_task_storage_get, struct bpf_map *, map, struct task_struct *, in BPF_CALL_4()
258 BPF_CALL_2(bpf_task_storage_delete, struct bpf_map *, map, struct task_struct *, in BPF_CALL_2()
Dringbuf.c351 BPF_CALL_3(bpf_ringbuf_reserve, struct bpf_map *, map, u64, size, u64, flags) in BPF_CALL_3()
424 BPF_CALL_4(bpf_ringbuf_output, struct bpf_map *, map, void *, data, u64, size, in BPF_CALL_4()
452 BPF_CALL_2(bpf_ringbuf_query, struct bpf_map *, map, u64, flags) in BPF_CALL_2()
Dmap_iter.c42 DEFINE_BPF_ITER_FUNC(bpf_map, struct bpf_iter_meta *meta, struct bpf_map *map) in DEFINE_BPF_ITER_FUNC() argument
Dstackmap.c337 BPF_CALL_3(bpf_get_stackid, struct pt_regs *, regs, struct bpf_map *, map, in BPF_CALL_3()
383 struct bpf_map *, map, u64, flags) in BPF_CALL_3()
Dbpf_iter.c702 BPF_CALL_4(bpf_for_each_map_elem, struct bpf_map *, map, void *, callback_fn, in BPF_CALL_4()
/Linux-v5.15/net/core/
Dbpf_sk_storage.c256 BPF_CALL_4(bpf_sk_storage_get, struct bpf_map *, map, struct sock *, sk, in BPF_CALL_4()
289 BPF_CALL_2(bpf_sk_storage_delete, struct bpf_map *, map, struct sock *, sk) in BPF_CALL_2()
416 BPF_CALL_4(bpf_sk_storage_get_tracing, struct bpf_map *, map, struct sock *, sk, in BPF_CALL_4()
425 BPF_CALL_2(bpf_sk_storage_delete_tracing, struct bpf_map *, map, in BPF_CALL_2()
Dsock_map.c610 struct bpf_map *, map, void *, key, u64, flags) in BPF_CALL_4()
633 struct bpf_map *, map, u32, key, u64, flags) in BPF_CALL_4()
659 struct bpf_map *, map, u32, key, u64, flags) in BPF_CALL_4()
1195 struct bpf_map *, map, void *, key, u64, flags) in BPF_CALL_4()
1217 struct bpf_map *, map, void *, key, u64, flags) in BPF_CALL_4()
1243 struct bpf_map *, map, void *, key, u64, flags) in BPF_CALL_4()
Dfilter.c4128 BPF_CALL_3(bpf_xdp_redirect_map, struct bpf_map *, map, u32, ifindex, in BPF_CALL_3()
4156 BPF_CALL_5(bpf_skb_event_output, struct sk_buff *, skb, struct bpf_map *, map, in BPF_CALL_5()
4429 BPF_CALL_3(bpf_skb_under_cgroup, struct sk_buff *, skb, struct bpf_map *, map, in BPF_CALL_3()
4548 BPF_CALL_5(bpf_xdp_event_output, struct xdp_buff *, xdp, struct bpf_map *, map, in BPF_CALL_5()
10161 struct bpf_map *, map, void *, key, u32, flags) in BPF_CALL_4()
/Linux-v5.15/kernel/trace/
Dbpf_trace.c518 BPF_CALL_2(bpf_perf_event_read, struct bpf_map *, map, u64, flags) in BPF_CALL_2()
541 BPF_CALL_4(bpf_perf_event_read_value, struct bpf_map *, map, u64, flags, in BPF_CALL_4()
608 BPF_CALL_5(bpf_perf_event_output, struct pt_regs *, regs, struct bpf_map *, map, in BPF_CALL_5()
741 BPF_CALL_2(bpf_current_task_under_cgroup, struct bpf_map *, map, u32, idx) in BPF_CALL_2()
1192 BPF_CALL_5(bpf_perf_event_output_tp, void *, tp_buff, struct bpf_map *, map, in BPF_CALL_5()
1216 BPF_CALL_3(bpf_get_stackid_tp, void *, tp_buff, struct bpf_map *, map, in BPF_CALL_3()
1416 struct bpf_map *, map, u64, flags, void *, data, u64, size) in BPF_CALL_5()
1446 struct bpf_map *, map, u64, flags) in BPF_CALL_3()
/Linux-v5.15/tools/lib/bpf/
Dlibbpf.c356 struct bpf_map { struct
363 struct bpf_map_def def; argument
370 bpf_map_clear_priv_t clear_priv; argument
371 enum libbpf_map_type libbpf_type; argument
374 struct bpf_map *inner_map; argument
375 void **init_slots;
376 int init_slots_sz;
377 char *pin_path;
378 bool pinned;
379 bool reused;