Searched refs:bpf_map (Results 1 – 9 of 9) sorted by relevance
/linux-4.4.14/include/linux/ |
D | bpf.h | 14 struct bpf_map; 19 struct bpf_map *(*map_alloc)(union bpf_attr *attr); 20 void (*map_free)(struct bpf_map *); 21 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key); 24 void *(*map_lookup_elem)(struct bpf_map *map, void *key); 25 int (*map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags); 26 int (*map_delete_elem)(struct bpf_map *map, void *key); 29 void *(*map_fd_get_ptr) (struct bpf_map *map, int fd); 33 struct bpf_map { struct 132 struct bpf_map **used_maps; [all …]
|
/linux-4.4.14/kernel/bpf/ |
D | arraymap.c | 21 static struct bpf_map *array_map_alloc(union bpf_attr *attr) in array_map_alloc() 65 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem() 77 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key() 96 static int array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem() 119 static int array_map_delete_elem(struct bpf_map *map, void *key) in array_map_delete_elem() 125 static void array_map_free(struct bpf_map *map) in array_map_free() 160 static struct bpf_map *fd_array_map_alloc(union bpf_attr *attr) in fd_array_map_alloc() 168 static void fd_array_map_free(struct bpf_map *map) in fd_array_map_free() 181 static void *fd_array_map_lookup_elem(struct bpf_map *map, void *key) in fd_array_map_lookup_elem() 187 static int fd_array_map_update_elem(struct bpf_map *map, void *key, in fd_array_map_update_elem() [all …]
|
D | syscall.c | 25 static struct bpf_map *find_and_alloc_map(union bpf_attr *attr) in find_and_alloc_map() 28 struct bpf_map *map; in find_and_alloc_map() 49 static int bpf_map_charge_memlock(struct bpf_map *map) in bpf_map_charge_memlock() 67 static void bpf_map_uncharge_memlock(struct bpf_map *map) in bpf_map_uncharge_memlock() 78 struct bpf_map *map = container_of(work, struct bpf_map, work); in bpf_map_free_deferred() 85 static void bpf_map_put_uref(struct bpf_map *map) in bpf_map_put_uref() 96 void bpf_map_put(struct bpf_map *map) in bpf_map_put() 104 void bpf_map_put_with_uref(struct bpf_map *map) in bpf_map_put_with_uref() 120 int bpf_map_new_fd(struct bpf_map *map) in bpf_map_new_fd() 138 struct bpf_map *map; in map_create() [all …]
|
D | helpers.c | 35 struct bpf_map *map = (struct bpf_map *) (unsigned long) r1; in bpf_map_lookup_elem() 59 struct bpf_map *map = (struct bpf_map *) (unsigned long) r1; in bpf_map_update_elem() 80 struct bpf_map *map = (struct bpf_map *) (unsigned long) r1; in bpf_map_delete_elem()
|
D | hashtab.c | 18 struct bpf_map map; 35 static struct bpf_map *htab_map_alloc(union bpf_attr *attr) in htab_map_alloc() 141 static void *htab_map_lookup_elem(struct bpf_map *map, void *key) in htab_map_lookup_elem() 166 static int htab_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in htab_map_get_next_key() 224 static int htab_map_update_elem(struct bpf_map *map, void *key, void *value, in htab_map_update_elem() 299 static int htab_map_delete_elem(struct bpf_map *map, void *key) in htab_map_delete_elem() 349 static void htab_map_free(struct bpf_map *map) in htab_map_free()
|
D | verifier.c | 150 struct bpf_map *map_ptr; 200 struct bpf_map *used_maps[MAX_USED_MAPS]; /* array of map's used by eBPF program */ 630 struct bpf_map *map = env->cur_state.regs[regno].map_ptr; in check_map_access() 801 enum bpf_arg_type arg_type, struct bpf_map **mapp) in check_func_arg() 890 static int check_map_func_compatibility(struct bpf_map *map, int func_id) in check_map_func_compatibility() 937 struct bpf_map *map = NULL; in check_call() 1284 static struct bpf_map *ld_imm64_to_map_ptr(struct bpf_insn *insn) in ld_imm64_to_map_ptr() 1288 return (struct bpf_map *) (unsigned long) imm64; in ld_imm64_to_map_ptr() 1994 struct bpf_map *map; in replace_map_fd_with_map_ptr()
|
D | core.c | 446 struct bpf_map *map = (struct bpf_map *) (unsigned long) BPF_R2; in __bpf_prog_run() 680 struct bpf_map *map = aux->used_maps[i]; in bpf_check_tail_call()
|
/linux-4.4.14/kernel/trace/ |
D | bpf_trace.c | 191 struct bpf_map *map = (struct bpf_map *) (unsigned long) r1; in bpf_perf_event_read() 226 struct bpf_map *map = (struct bpf_map *) (long) r2; in bpf_perf_event_output()
|
/linux-4.4.14/Documentation/networking/ |
D | filter.txt | 1199 fd 0 is not pointing to valid bpf_map
|