Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/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()
81 if (map_info_alloc_len < sizeof(struct bpf_map_info)) in get_map_info_type_id()
82 map_info_alloc_len = sizeof(struct bpf_map_info); in get_map_info_type_id()
102 static struct bpf_map_info *map_info_alloc(__u32 *alloc_len) in map_info_alloc()
104 struct bpf_map_info *info; in map_info_alloc()
133 struct bpf_map_info *info, __u32 info_len) in get_next_struct_ops_map()
181 typedef int (*work_func)(int fd, const struct bpf_map_info *info, void *data,
191 struct bpf_map_info *info; in do_search()
240 struct bpf_map_info *info; in do_one_id()
315 static int __do_show(int fd, const struct bpf_map_info *info, void *data, in __do_show()
[all …]
H A Dmap.c88 static void *alloc_value(struct bpf_map_info *info) in alloc_value()
98 struct bpf_map_info *map_info, void *key, in do_dump_btf()
158 static void print_entry_json(struct bpf_map_info *info, unsigned char *key, in print_entry_json()
217 print_entry_error_msg(struct bpf_map_info *info, unsigned char *key, in print_entry_error_msg()
237 print_entry_error(struct bpf_map_info *map_info, void *key, int lookup_errno) in print_entry_error()
270 static void print_entry_plain(struct bpf_map_info *info, unsigned char *key, in print_entry_plain()
345 static void fill_per_cpu_value(struct bpf_map_info *info, void *value) in fill_per_cpu_value()
358 static int parse_elem(char **argv, struct bpf_map_info *info, in parse_elem()
468 static void show_map_header_json(struct bpf_map_info *info, json_writer_t *wtr) in show_map_header_json()
483 static int show_map_close_json(int fd, struct bpf_map_info *info) in show_map_close_json()
[all …]
H A Dbtf.c443 struct bpf_map_info info = {}; in do_dump()
686 btf_id = ((struct bpf_map_info *)info)->btf_id; in build_btf_type_table()
721 struct bpf_map_info map_info; in build_btf_tables()
H A Dmap_perf_ring.c127 struct bpf_map_info map_info = {}; in do_event_pipe()
H A Dcommon.c814 struct bpf_map_info info = {}; in map_fd_by_name()
H A Dprog.c157 static void *find_metadata(int prog_fd, struct bpf_map_info *map_info) in find_metadata()
245 struct bpf_map_info map_info; in show_prog_metadata()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_obj_id.c21 struct bpf_map_info map_infos[nr_iters + 1]; in test_bpf_obj_id()
80 info_len = sizeof(struct bpf_map_info) * 2; in test_bpf_obj_id()
90 info_len != sizeof(struct bpf_map_info) || in test_bpf_obj_id()
96 info_len, sizeof(struct bpf_map_info), in test_bpf_obj_id()
253 struct bpf_map_info map_info = {}; in test_bpf_obj_id()
281 CHECK(err || info_len != sizeof(struct bpf_map_info) || in test_bpf_obj_id()
286 err, errno, info_len, sizeof(struct bpf_map_info), in test_bpf_obj_id()
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 Dmmap.c26 struct bpf_map_info map_info; in test_mmap()
H A Dbpf_iter.c430 struct bpf_map_info map_info = {}; in test_overflow()
H A Dbtf.c3851 struct bpf_map_info map_info = {}; in test_btf_id()
/OK3568_Linux_fs/kernel/samples/bpf/
H A Dtest_map_in_map_user.c36 struct bpf_map_info info = {}; in check_map_id()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Doffload.c493 struct bpf_map_info *info;
521 int bpf_map_offload_info_fill(struct bpf_map_info *info, struct bpf_map *map) in bpf_map_offload_info_fill()
H A Dsyscall.c3699 struct bpf_map_info __user *uinfo = u64_to_user_ptr(attr->info.info); in bpf_map_get_info_by_fd()
3700 struct bpf_map_info info; in bpf_map_get_info_by_fd()
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dringbuf.c58 struct bpf_map_info info; in ring_buffer__add()
H A Dxsk.c509 __u32 map_len = sizeof(struct bpf_map_info); in xsk_lookup_bpf_maps()
512 struct bpf_map_info map_info; in xsk_lookup_bpf_maps()
H A Dlibbpf.c3616 static int bpf_get_map_info_from_fdinfo(int fd, struct bpf_map_info *info) in bpf_get_map_info_from_fdinfo()
3654 struct bpf_map_info info = {}; in bpf_map__reuse_fd()
4075 struct bpf_map_info map_info = {}; in map_is_reuse_compat()
10116 struct bpf_map_info map; in __perf_buffer__new()
/OK3568_Linux_fs/kernel/Documentation/bpf/
H A Dbtf.rst486 BPF_OBJ_GET_INFO_BY_FD (get bpf_prog_info/bpf_map_info with btf_id)
603 example, ``bpf_map_info`` returns ``btf_id`` and key/value type ids.
610 With ``btf_id`` obtained in ``bpf_map_info`` and ``bpf_prog_info``, bpf
615 With the btf blob, ``bpf_map_info``, and ``bpf_prog_info``, an introspection
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dbpf.h2654 struct bpf_map_info { struct
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dbpf.h2654 struct bpf_map_info { struct
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dbpf.h4401 struct bpf_map_info { struct
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dbpf.h4401 struct bpf_map_info { struct
/OK3568_Linux_fs/kernel/include/linux/
H A Dbpf.h1737 int bpf_map_offload_info_fill(struct bpf_map_info *info, struct bpf_map *map);