Lines Matching refs:bpf_map
75 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj);
517 struct bpf_map {
540 struct bpf_map *inner_map;
666 struct bpf_map *maps;
1029 static bool bpf_map__is_struct_ops(const struct bpf_map *map)
1035 static int bpf_map__init_kern_struct_ops(struct bpf_map *map,
1167 struct bpf_map *map;
1195 struct bpf_map *map;
1579 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj)
1581 struct bpf_map *map;
1608 static int bpf_map_mmap_resize(struct bpf_map *map, size_t old_sz, size_t new_sz)
1687 map_fill_btf_type_info(struct bpf_object *obj, struct bpf_map *map);
1694 static bool map_is_mmapable(struct bpf_object *obj, struct bpf_map *map)
1725 struct bpf_map *map;
2274 static int build_map_pin_path(struct bpf_map *map, const char *path)
2548 static bool map_is_ringbuf(const struct bpf_map *map)
2554 static void fill_map_from_def(struct bpf_map *map, const struct btf_map_def *def)
2623 struct bpf_map *map;
4443 struct bpf_map *map;
4740 static int map_fill_btf_type_info(struct bpf_object *obj, struct bpf_map *map)
4806 bool bpf_map__autocreate(const struct bpf_map *map)
4811 int bpf_map__set_autocreate(struct bpf_map *map, bool autocreate)
4820 int bpf_map__reuse_fd(struct bpf_map *map, int fd)
4882 __u32 bpf_map__max_entries(const struct bpf_map *map)
4887 struct bpf_map *bpf_map__inner_map(struct bpf_map *map)
4895 int bpf_map__set_max_entries(struct bpf_map *map, __u32 max_entries)
5402 static bool map_is_reuse_compat(const struct bpf_map *map, int map_fd)
5428 bpf_object__reuse_map(struct bpf_map *map)
5467 bpf_object__populate_internal_map(struct bpf_object *obj, struct bpf_map *map)
5503 static void bpf_map__destroy(struct bpf_map *map);
5505 static int bpf_object__create_map(struct bpf_object *obj, struct bpf_map *map, bool is_inner)
5609 static int init_map_in_map_slots(struct bpf_object *obj, struct bpf_map *map)
5611 const struct bpf_map *targ_map;
5645 static int init_prog_array_slots(struct bpf_object *obj, struct bpf_map *map)
5680 struct bpf_map *map;
5698 static int map_set_def_max_entries(struct bpf_map *map)
5719 struct bpf_map *map;
6312 int map_idx, const struct bpf_map *map)
6373 const struct bpf_map *map;
7044 struct bpf_map *map = NULL, *targ_map = NULL;
7440 struct bpf_map *map;
7599 const struct bpf_map *map;
7957 struct bpf_map *m;
8333 static void bpf_map_prepare_vdata(const struct bpf_map *map)
8540 int bpf_map__pin(struct bpf_map *map, const char *path)
8601 int bpf_map__unpin(struct bpf_map *map, const char *path)
8637 int bpf_map__set_pin_path(struct bpf_map *map, const char *path)
8653 const char *bpf_map__get_pin_path(const struct bpf_map *map);
8655 const char *bpf_map__pin_path(const struct bpf_map *map)
8660 bool bpf_map__is_pinned(const struct bpf_map *map)
8677 struct bpf_map *map;
8725 struct bpf_map *map;
8845 static void bpf_map__destroy(struct bpf_map *map)
9560 static struct bpf_map *find_struct_ops_map_by_offset(struct bpf_object *obj,
9564 struct bpf_map *map;
9589 struct bpf_map *map;
9918 int bpf_map__fd(const struct bpf_map *map)
9923 static bool map_uses_real_name(const struct bpf_map *map)
9938 const char *bpf_map__name(const struct bpf_map *map)
9949 enum bpf_map_type bpf_map__type(const struct bpf_map *map)
9954 int bpf_map__set_type(struct bpf_map *map, enum bpf_map_type type)
9962 __u32 bpf_map__map_flags(const struct bpf_map *map)
9967 int bpf_map__set_map_flags(struct bpf_map *map, __u32 flags)
9975 __u64 bpf_map__map_extra(const struct bpf_map *map)
9980 int bpf_map__set_map_extra(struct bpf_map *map, __u64 map_extra)
9988 __u32 bpf_map__numa_node(const struct bpf_map *map)
9993 int bpf_map__set_numa_node(struct bpf_map *map, __u32 numa_node)
10001 __u32 bpf_map__key_size(const struct bpf_map *map)
10006 int bpf_map__set_key_size(struct bpf_map *map, __u32 size)
10014 __u32 bpf_map__value_size(const struct bpf_map *map)
10019 static int map_btf_datasec_resize(struct bpf_map *map, __u32 size)
10090 int bpf_map__set_value_size(struct bpf_map *map, __u32 size)
10120 __u32 bpf_map__btf_key_type_id(const struct bpf_map *map)
10125 __u32 bpf_map__btf_value_type_id(const struct bpf_map *map)
10130 int bpf_map__set_initial_value(struct bpf_map *map,
10141 void *bpf_map__initial_value(struct bpf_map *map, size_t *psize)
10149 bool bpf_map__is_internal(const struct bpf_map *map)
10154 __u32 bpf_map__ifindex(const struct bpf_map *map)
10159 int bpf_map__set_ifindex(struct bpf_map *map, __u32 ifindex)
10167 int bpf_map__set_inner_map_fd(struct bpf_map *map, int fd)
10185 static struct bpf_map *
10186 __bpf_map__iter(const struct bpf_map *m, const struct bpf_object *obj, int i)
10189 struct bpf_map *s, *e;
10209 struct bpf_map *
10210 bpf_object__next_map(const struct bpf_object *obj, const struct bpf_map *prev)
10218 struct bpf_map *
10219 bpf_object__prev_map(const struct bpf_object *obj, const struct bpf_map *next)
10230 struct bpf_map *
10233 struct bpf_map *pos;
10263 static int validate_map_op(const struct bpf_map *map, size_t key_sz,
10304 int bpf_map__lookup_elem(const struct bpf_map *map,
10317 int bpf_map__update_elem(const struct bpf_map *map,
10330 int bpf_map__delete_elem(const struct bpf_map *map,
10342 int bpf_map__lookup_and_delete_elem(const struct bpf_map *map,
10355 int bpf_map__get_next_key(const struct bpf_map *map,
12678 struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map)
12727 int bpf_link__update_map(struct bpf_link *link, const struct bpf_map *map)
13473 struct bpf_map **map = maps[i].map;
13558 const struct bpf_map *map;
13635 struct bpf_map *map = *s->maps[i].map;