/linux-master/net/core/ |
H A D | filter.c | 4289 void bpf_clear_redirect_map(struct bpf_map *map) 4364 struct bpf_map *map; 4461 struct bpf_map *map; 4573 BPF_CALL_3(bpf_xdp_redirect_map, struct bpf_map *, map, u64, key, 4601 BPF_CALL_5(bpf_skb_event_output, struct sk_buff *, skb, struct bpf_map *, map, 4891 BPF_CALL_3(bpf_skb_under_cgroup, struct sk_buff *, skb, struct bpf_map *, map, 5012 BPF_CALL_5(bpf_xdp_event_output, struct xdp_buff *, xdp, struct bpf_map *, map, 11188 struct bpf_map *, map, void *, key, u32, flags)
|
H A D | sock_map.c | 18 struct bpf_map map; 27 static int sock_map_prog_update(struct bpf_map *map, struct bpf_prog *prog, 29 static struct sk_psock_progs *sock_map_progs(struct bpf_map *map); 31 static struct bpf_map *sock_map_alloc(union bpf_attr *attr) 63 struct bpf_map *map; 83 struct bpf_map *map; 130 struct bpf_map *map, void *link_raw) 148 struct bpf_map *map = link->map; 213 static int sock_map_link(struct bpf_map *map, struct sock *sk) 332 static void sock_map_free(struct bpf_map *ma [all...] |
/linux-master/kernel/bpf/ |
H A D | verifier.c | 113 * function expects 1st argument to be a const pointer to 'struct bpf_map' and 120 * struct bpf_map *map = (struct bpf_map *) (unsigned long) r1; 196 #define BPF_MAP_PTR(X) ((struct bpf_map *)((X) & ~BPF_MAP_PTR_UNPRIV)) 221 const struct bpf_map *map, bool unpriv) 271 struct bpf_map *map_ptr; 467 const struct bpf_map *map) 555 const struct bpf_map *map) 1835 const struct bpf_map *map = reg->map_ptr; 5051 struct bpf_map *ma [all...] |
H A D | core.c | 2009 struct bpf_map *map = (struct bpf_map *) (unsigned long) BPF_R2; 2285 bool bpf_prog_map_compatible(struct bpf_map *map, 2328 struct bpf_map *map = aux->used_maps[i]; 2703 struct bpf_map **used_maps, u32 len) 2705 struct bpf_map *map; 2873 bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size,
|
H A D | syscall.c | 115 static void bpf_map_write_active_inc(struct bpf_map *map) 120 static void bpf_map_write_active_dec(struct bpf_map *map) 125 bool bpf_map_write_active(const struct bpf_map *map) 130 static u32 bpf_map_value_size(const struct bpf_map *map) 143 static void maybe_wait_bpf_programs(struct bpf_map *map) 158 static int bpf_map_update_value(struct bpf_map *map, struct file *map_file, 211 static int bpf_map_copy_value(struct bpf_map *map, void *key, void *value, 339 void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr) 350 static int bpf_map_alloc_id(struct bpf_map *map) 368 void bpf_map_free_id(struct bpf_map *ma [all...] |
H A D | helpers.c | 38 BPF_CALL_2(bpf_map_lookup_elem, struct bpf_map *, map, void *, key) 54 BPF_CALL_4(bpf_map_update_elem, struct bpf_map *, map, void *, key, 73 BPF_CALL_2(bpf_map_delete_elem, struct bpf_map *, map, void *, key) 89 BPF_CALL_3(bpf_map_push_elem, struct bpf_map *, map, void *, value, u64, flags) 104 BPF_CALL_2(bpf_map_pop_elem, struct bpf_map *, map, void *, value) 117 BPF_CALL_2(bpf_map_peek_elem, struct bpf_map *, map, void *, value) 130 BPF_CALL_3(bpf_map_lookup_percpu_elem, struct bpf_map *, map, void *, key, u32, cpu) 374 void copy_map_value_locked(struct bpf_map *map, void *dst, void *src, 635 BPF_CALL_5(bpf_event_output_data, void *, ctx, struct bpf_map *, map, 1088 * remembers 'struct bpf_map *' pointe [all...] |
H A D | bloom_filter.c | 16 struct bpf_map map; 36 static long bloom_map_peek_elem(struct bpf_map *map, void *value) 51 static long bloom_map_push_elem(struct bpf_map *map, void *value, u64 flags) 68 static long bloom_map_pop_elem(struct bpf_map *map, void *value) 73 static long bloom_map_delete_elem(struct bpf_map *map, void *value) 78 static int bloom_map_get_next_key(struct bpf_map *map, void *key, void *next_key) 95 static struct bpf_map *bloom_map_alloc(union bpf_attr *attr) 162 static void bloom_map_free(struct bpf_map *map) 170 static void *bloom_map_lookup_elem(struct bpf_map *map, void *key) 176 static long bloom_map_update_elem(struct bpf_map *ma [all...] |
H A D | arena.c | 44 struct bpf_map map; 63 static long arena_map_peek_elem(struct bpf_map *map, void *value) 68 static long arena_map_push_elem(struct bpf_map *map, void *value, u64 flags) 73 static long arena_map_pop_elem(struct bpf_map *map, void *value) 78 static long arena_map_delete_elem(struct bpf_map *map, void *value) 83 static int arena_map_get_next_key(struct bpf_map *map, void *key, void *next_key) 93 static struct bpf_map *arena_map_alloc(union bpf_attr *attr) 164 static void arena_map_free(struct bpf_map *map) 170 * mmap() holds vm_file which holds bpf_map refcnt. 190 static void *arena_map_lookup_elem(struct bpf_map *ma [all...] |
H A D | cpumap.c | 77 struct bpf_map map; 84 static struct bpf_map *cpu_map_alloc(union bpf_attr *attr) 370 struct bpf_map *map, int fd) 391 __cpu_map_entry_alloc(struct bpf_map *map, struct bpf_cpumap_val *value, 515 static long cpu_map_delete_elem(struct bpf_map *map, void *key) 528 static long cpu_map_update_elem(struct bpf_map *map, void *key, void *value, 566 static void cpu_map_free(struct bpf_map *map) 602 static void *__cpu_map_lookup_elem(struct bpf_map *map, u32 key) 615 static void *cpu_map_lookup_elem(struct bpf_map *map, void *key) 623 static int cpu_map_get_next_key(struct bpf_map *ma [all...] |
/linux-master/include/linux/ |
H A D | skmsg.h | 70 struct bpf_map *map;
|
H A D | filter.h | 705 struct bpf_map *map; 982 void bpf_clear_redirect_map(struct bpf_map *map); 1552 static __always_inline long __bpf_xdp_redirect_map(struct bpf_map *map, u64 index, 1554 void *lookup_elem(struct bpf_map *map, u32 key))
|
H A D | bpf.h | 39 struct bpf_map; 84 struct bpf_map *(*map_alloc)(union bpf_attr *attr); 85 void (*map_release)(struct bpf_map *map, struct file *map_file); 86 void (*map_free)(struct bpf_map *map); 87 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key); 88 void (*map_release_uref)(struct bpf_map *map); 89 void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key); 90 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr, 92 int (*map_lookup_and_delete_elem)(struct bpf_map *map, void *key, 94 int (*map_lookup_and_delete_batch)(struct bpf_map *ma 257 struct bpf_map { struct [all...] |
H A D | security.h | 2125 struct bpf_map; 2130 extern int security_bpf_map(struct bpf_map *map, fmode_t fmode); 2132 extern int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr, 2134 extern void security_bpf_map_free(struct bpf_map *map); 2150 static inline int security_bpf_map(struct bpf_map *map, fmode_t fmode) 2160 static inline int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr, 2166 static inline void security_bpf_map_free(struct bpf_map *map)
|
H A D | lsm_hook_defs.h | 423 LSM_HOOK(int, 0, bpf_map, struct bpf_map *map, fmode_t fmode) 425 LSM_HOOK(int, 0, bpf_map_create, struct bpf_map *map, union bpf_attr *attr, 427 LSM_HOOK(void, LSM_RET_VOID, bpf_map_free, struct bpf_map *map)
|
/linux-master/kernel/trace/ |
H A D | bpf_trace.c | 549 get_map_perf_counter(struct bpf_map *map, u64 flags, 571 BPF_CALL_2(bpf_perf_event_read, struct bpf_map *, map, u64, flags) 594 BPF_CALL_4(bpf_perf_event_read_value, struct bpf_map *, map, u64, flags, 622 __bpf_perf_event_output(struct pt_regs *regs, struct bpf_map *map, 661 BPF_CALL_5(bpf_perf_event_output, struct pt_regs *, regs, struct bpf_map *, map, 718 u64 bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size, 801 BPF_CALL_2(bpf_current_task_under_cgroup, struct bpf_map *, map, u32, idx) 1696 BPF_CALL_5(bpf_perf_event_output_tp, void *, tp_buff, struct bpf_map *, map, 1720 BPF_CALL_3(bpf_get_stackid_tp, void *, tp_buff, struct bpf_map *, map, 1919 struct bpf_map *, ma [all...] |
/linux-master/security/ |
H A D | security.c | 5418 int security_bpf_map(struct bpf_map *map, fmode_t fmode) 5420 return call_int_hook(bpf_map, map, fmode); 5448 int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr, 5527 void security_bpf_map_free(struct bpf_map *map)
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | verifier_arena.c | 100 struct bpf_map map; 116 SEC("iter.s/bpf_map") 120 struct bpf_map *map = ctx->map; 128 SEC("iter.s/bpf_map") 129 __failure __msg("expected pointer to STRUCT bpf_map") 138 SEC("iter.s/bpf_map") 142 struct bpf_map *map = ctx->map;
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | verifier.c | 208 struct bpf_map *map;
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 74 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj); 76 static int map_set_def_max_entries(struct bpf_map *map); 519 struct bpf_map { struct 543 struct bpf_map *inner_map; 655 struct bpf_map *maps; 703 struct bpf_map *arena_map; 1022 static bool bpf_map__is_struct_ops(const struct bpf_map *map) 1048 struct bpf_map *map; 1083 static int bpf_map__init_kern_struct_ops(struct bpf_map *map) 1253 struct bpf_map *ma [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | gen.c | 93 static bool get_map_ident(const struct bpf_map *map, char *buf, size_t buf_sz) 257 static bool is_mmapable_map(const struct bpf_map *map, char *buf, size_t sz) 279 struct bpf_map *map; 328 struct bpf_map *map; 486 static size_t bpf_map_mmap_sz(const struct bpf_map *map) 500 struct bpf_map *map; 647 struct bpf_map *map; 691 struct bpf_map *map; 853 struct bpf_map *map; 1055 const struct bpf_map *ma [all...] |
/linux-master/include/net/ |
H A D | xdp_sock.h | 42 struct bpf_map map;
|
/linux-master/tools/perf/ |
H A D | builtin-trace.c | 26 #include "util/bpf_map.h" 162 struct bpf_map *map; 3555 static int bpf_map__set_filter_pids(struct bpf_map *map __maybe_unused,
|
/linux-master/security/selinux/ |
H A D | hooks.c | 6885 struct bpf_map *map; 6906 static int selinux_bpf_map(struct bpf_map *map, fmode_t fmode) 6926 static int selinux_bpf_map_create(struct bpf_map *map, union bpf_attr *attr, 6941 static void selinux_bpf_map_free(struct bpf_map *map) 7353 LSM_HOOK_INIT(bpf_map, selinux_bpf_map),
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_progs.c | 539 struct bpf_map *map;
|
H A D | test_maps.c | 660 struct bpf_map *bpf_map_rx, *bpf_map_tx, *bpf_map_msg, *bpf_map_break; 1155 struct bpf_map *map;
|