Lines Matching defs:bpf_map
71 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj);
73 static int map_set_def_max_entries(struct bpf_map *map);
504 struct bpf_map {
527 struct bpf_map *inner_map;
639 struct bpf_map *maps;
984 static bool bpf_map__is_struct_ops(const struct bpf_map *map)
990 static int bpf_map__init_kern_struct_ops(struct bpf_map *map,
1122 struct bpf_map *map;
1150 struct bpf_map *map;
1494 static struct bpf_map *bpf_object__add_map(struct bpf_object *obj)
1496 struct bpf_map *map;
1523 static int bpf_map_mmap_resize(struct bpf_map *map, size_t old_sz, size_t new_sz)
1602 map_fill_btf_type_info(struct bpf_object *obj, struct bpf_map *map);
1609 static bool map_is_mmapable(struct bpf_object *obj, struct bpf_map *map)
1640 struct bpf_map *map;
2177 static int build_map_pin_path(struct bpf_map *map, const char *path)
2451 static bool map_is_ringbuf(const struct bpf_map *map)
2457 static void fill_map_from_def(struct bpf_map *map, const struct btf_map_def *def)
2526 struct bpf_map *map;
4059 struct bpf_map *map;
4335 static int map_fill_btf_type_info(struct bpf_object *obj, struct bpf_map *map)
4401 bool bpf_map__autocreate(const struct bpf_map *map)
4406 int bpf_map__set_autocreate(struct bpf_map *map, bool autocreate)
4415 int bpf_map__reuse_fd(struct bpf_map *map, int fd)
4477 __u32 bpf_map__max_entries(const struct bpf_map *map)
4482 struct bpf_map *bpf_map__inner_map(struct bpf_map *map)
4490 int bpf_map__set_max_entries(struct bpf_map *map, __u32 max_entries)
4997 static bool map_is_reuse_compat(const struct bpf_map *map, int map_fd)
5023 bpf_object__reuse_map(struct bpf_map *map)
5062 bpf_object__populate_internal_map(struct bpf_object *obj, struct bpf_map *map)
5098 static void bpf_map__destroy(struct bpf_map *map);
5100 static int bpf_object__create_map(struct bpf_object *obj, struct bpf_map *map, bool is_inner)
5206 static int init_map_in_map_slots(struct bpf_object *obj, struct bpf_map *map)
5208 const struct bpf_map *targ_map;
5242 static int init_prog_array_slots(struct bpf_object *obj, struct bpf_map *map)
5277 struct bpf_map *map;
5295 static int map_set_def_max_entries(struct bpf_map *map)
5316 struct bpf_map *map;
5907 int map_idx, const struct bpf_map *map)
5968 const struct bpf_map *map;
6606 struct bpf_map *map = NULL, *targ_map = NULL;
6997 struct bpf_map *map;
7156 const struct bpf_map *map;
7512 struct bpf_map *m;
7888 static void bpf_map_prepare_vdata(const struct bpf_map *map)
8095 int bpf_map__pin(struct bpf_map *map, const char *path)
8156 int bpf_map__unpin(struct bpf_map *map, const char *path)
8192 int bpf_map__set_pin_path(struct bpf_map *map, const char *path)
8208 const char *bpf_map__get_pin_path(const struct bpf_map *map);
8210 const char *bpf_map__pin_path(const struct bpf_map *map)
8215 bool bpf_map__is_pinned(const struct bpf_map *map)
8232 struct bpf_map *map;
8280 struct bpf_map *map;
8400 static void bpf_map__destroy(struct bpf_map *map)
9104 static struct bpf_map *find_struct_ops_map_by_offset(struct bpf_object *obj,
9108 struct bpf_map *map;
9133 struct bpf_map *map;
9462 int bpf_map__fd(const struct bpf_map *map)
9467 static bool map_uses_real_name(const struct bpf_map *map)
9482 const char *bpf_map__name(const struct bpf_map *map)
9493 enum bpf_map_type bpf_map__type(const struct bpf_map *map)
9498 int bpf_map__set_type(struct bpf_map *map, enum bpf_map_type type)
9506 __u32 bpf_map__map_flags(const struct bpf_map *map)
9511 int bpf_map__set_map_flags(struct bpf_map *map, __u32 flags)
9519 __u64 bpf_map__map_extra(const struct bpf_map *map)
9524 int bpf_map__set_map_extra(struct bpf_map *map, __u64 map_extra)
9532 __u32 bpf_map__numa_node(const struct bpf_map *map)
9537 int bpf_map__set_numa_node(struct bpf_map *map, __u32 numa_node)
9545 __u32 bpf_map__key_size(const struct bpf_map *map)
9550 int bpf_map__set_key_size(struct bpf_map *map, __u32 size)
9558 __u32 bpf_map__value_size(const struct bpf_map *map)
9563 static int map_btf_datasec_resize(struct bpf_map *map, __u32 size)
9634 int bpf_map__set_value_size(struct bpf_map *map, __u32 size)
9664 __u32 bpf_map__btf_key_type_id(const struct bpf_map *map)
9669 __u32 bpf_map__btf_value_type_id(const struct bpf_map *map)
9674 int bpf_map__set_initial_value(struct bpf_map *map,
9685 void *bpf_map__initial_value(struct bpf_map *map, size_t *psize)
9693 bool bpf_map__is_internal(const struct bpf_map *map)
9698 __u32 bpf_map__ifindex(const struct bpf_map *map)
9703 int bpf_map__set_ifindex(struct bpf_map *map, __u32 ifindex)
9711 int bpf_map__set_inner_map_fd(struct bpf_map *map, int fd)
9729 static struct bpf_map *
9730 __bpf_map__iter(const struct bpf_map *m, const struct bpf_object *obj, int i)
9733 struct bpf_map *s, *e;
9753 struct bpf_map *
9754 bpf_object__next_map(const struct bpf_object *obj, const struct bpf_map *prev)
9762 struct bpf_map *
9763 bpf_object__prev_map(const struct bpf_object *obj, const struct bpf_map *next)
9774 struct bpf_map *
9777 struct bpf_map *pos;
9807 static int validate_map_op(const struct bpf_map *map, size_t key_sz,
9848 int bpf_map__lookup_elem(const struct bpf_map *map,
9861 int bpf_map__update_elem(const struct bpf_map *map,
9874 int bpf_map__delete_elem(const struct bpf_map *map,
9886 int bpf_map__lookup_and_delete_elem(const struct bpf_map *map,
9899 int bpf_map__get_next_key(const struct bpf_map *map,
12164 struct bpf_link *bpf_map__attach_struct_ops(const struct bpf_map *map)
12213 int bpf_link__update_map(struct bpf_link *link, const struct bpf_map *map)
12959 struct bpf_map **map = maps[i].map;
13044 const struct bpf_map *map;
13121 struct bpf_map *map = *s->maps[i].map;