Home
last modified time | relevance | path

Searched refs:bpf_map_info (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.15/tools/bpf/bpftool/
H A Dstruct_ops.c41 static const char *get_kern_struct_ops_name(const struct bpf_map_info *info) in get_kern_struct_ops_name()
79 if (map_info_alloc_len < sizeof(struct bpf_map_info)) in get_map_info_type_id()
80 map_info_alloc_len = sizeof(struct bpf_map_info); in get_map_info_type_id()
100 static struct bpf_map_info *map_info_alloc(__u32 *alloc_len) in map_info_alloc()
102 struct bpf_map_info *info; in map_info_alloc()
131 struct bpf_map_info *info, __u32 info_len) in get_next_struct_ops_map()
189 struct bpf_map_info *info; in do_search()
238 struct bpf_map_info *info; in do_one_id()
319 static int __do_show(int fd, const struct bpf_map_info *info, void *data, in __do_show()
356 static int __do_dump(int fd, const struct bpf_map_info *info, void *data, in __do_dump()
[all …]
H A Dmap.c72 struct bpf_map_info *map_info, void *key, in do_dump_btf()
631 struct bpf_map_info info = {}; in do_show_subset()
675 struct bpf_map_info info = {}; in do_show()
770 struct bpf_map_info info = {}; in maps_have_btf()
898 struct bpf_map_info info = {}; in do_dump()
990 struct bpf_map_info info = {}; in do_update()
1070 struct bpf_map_info info = {}; in do_lookup()
1121 struct bpf_map_info info = {}; in do_getnext()
1192 struct bpf_map_info info = {}; in do_delete()
1314 struct bpf_map_info info = {}; in do_create()
[all …]
H A Dmap_perf_ring.c119 struct bpf_map_info map_info = {}; in do_event_pipe()
H A Dmain.h172 int map_parse_fd_and_info(int *argc, char ***argv, struct bpf_map_info *info,
H A Dcommon.c976 struct bpf_map_info info = {}; in map_fd_by_name()
1105 int map_parse_fd_and_info(int *argc, char ***argv, struct bpf_map_info *info, in map_parse_fd_and_info()
H A Dbtf.c900 struct bpf_map_info info = {}; in do_dump()
1187 btf_id = ((struct bpf_map_info *)info)->btf_id; in build_btf_type_table()
1218 struct bpf_map_info map_info; in build_btf_tables()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_obj_id.c21 struct bpf_map_info map_infos[nr_iters + 1]; in serial_test_bpf_obj_id()
81 info_len = sizeof(struct bpf_map_info) * 2; in serial_test_bpf_obj_id()
91 !ASSERT_EQ(info_len, sizeof(struct bpf_map_info), "map_info_len") || in serial_test_bpf_obj_id()
209 struct bpf_map_info map_info = {}; in serial_test_bpf_obj_id()
237 ASSERT_EQ(info_len, sizeof(struct bpf_map_info), "info_len"); in serial_test_bpf_obj_id()
H A Dtest_struct_ops_module.c14 static void check_map_info(struct bpf_map_info *info) in check_map_info()
61 struct bpf_map_info info = {}; in test_struct_ops_load()
H A Dlibbpf_get_fd_by_id_opts.c16 struct bpf_map_info info_m = {}; in test_libbpf_get_fd_by_id_opts()
H A Dmetadata.c19 struct bpf_map_info map_info = {}; in prog_holds_map()
H A Dbtf_map_in_map.c12 struct bpf_map_info info; in bpf_map_id()
H A Dpinning.c10 struct bpf_map_info map_info = {}; in get_map_id()
H A Dunpriv_bpf_disabled.c152 struct bpf_map_info map_info = {}; in test_unpriv_bpf_disabled_negative()
H A Dmmap.c26 struct bpf_map_info map_info; in test_mmap()
/linux-6.15/tools/testing/selftests/bpf/map_tests/
H A Dmap_percpu_stats.c22 static void map_info(int map_fd, struct bpf_map_info *info) in map_info()
265 struct bpf_map_info *info) in check_expected_number_elements()
297 struct bpf_map_info info; in __test()
H A Dmap_in_map_batch_ops.c17 struct bpf_map_info map_info = {}; in get_map_id_from_fd()
/linux-6.15/tools/perf/util/
H A Dbpf_counter.h115 struct bpf_map_info map_info = { .id = 0, }; in bpf_map_get_id()
H A Dbpf_counter.c306 struct bpf_map_info map_info = {0}; in bperf_attr_map_compatible()
/linux-6.15/samples/bpf/
H A Dtest_map_in_map_user.c37 struct bpf_map_info info = {}; in check_map_id()
/linux-6.15/tools/lib/bpf/
H A Dringbuf.c79 struct bpf_map_info info; in ring_buffer__add()
450 struct bpf_map_info info; in user_ringbuf_map()
H A Dbpf.h547 LIBBPF_API int bpf_map_get_info_by_fd(int map_fd, struct bpf_map_info *info, __u32 *info_len);
/linux-6.15/kernel/bpf/
H A Doffload.c646 struct bpf_map_info *info;
674 int bpf_map_offload_info_fill(struct bpf_map_info *info, struct bpf_map *map) in bpf_map_offload_info_fill()
/linux-6.15/tools/testing/selftests/bpf/
H A Dxdp_synproxy.c311 struct bpf_map_info map_info = {}; in syncookie_open_bpf_maps()
/linux-6.15/Documentation/bpf/
H A Dbtf.rst631 BPF_OBJ_GET_INFO_BY_FD (get bpf_prog_info/bpf_map_info with btf_id)
745 example, ``bpf_map_info`` returns ``btf_id`` and key/value type ids.
752 With ``btf_id`` obtained in ``bpf_map_info`` and ``bpf_prog_info``, bpf
757 With the btf blob, ``bpf_map_info``, and ``bpf_prog_info``, an introspection
/linux-6.15/include/linux/
H A Dbpf.h1943 void bpf_map_struct_ops_info_fill(struct bpf_map_info *info, struct bpf_map *map);
1969 static inline void bpf_map_struct_ops_info_fill(struct bpf_map_info *info, struct bpf_map *map) in bpf_map_struct_ops_info_fill()
3099 int bpf_map_offload_info_fill(struct bpf_map_info *info, struct bpf_map *map);

12