/Linux-v6.1/tools/bpf/bpftool/ |
D | struct_ops.c | 41 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 …]
|
D | map.c | 63 static void *alloc_value(struct bpf_map_info *info) in alloc_value() 73 struct bpf_map_info *map_info, void *key, in do_dump_btf() 133 static void print_entry_json(struct bpf_map_info *info, unsigned char *key, in print_entry_json() 192 print_entry_error_msg(struct bpf_map_info *info, unsigned char *key, in print_entry_error_msg() 212 print_entry_error(struct bpf_map_info *map_info, void *key, int lookup_errno) in print_entry_error() 245 static void print_entry_plain(struct bpf_map_info *info, unsigned char *key, in print_entry_plain() 320 static void fill_per_cpu_value(struct bpf_map_info *info, void *value) in fill_per_cpu_value() 333 static int parse_elem(char **argv, struct bpf_map_info *info, in parse_elem() 443 static void show_map_header_json(struct bpf_map_info *info, json_writer_t *wtr) in show_map_header_json() 461 static int show_map_close_json(int fd, struct bpf_map_info *info) in show_map_close_json() [all …]
|
D | map_perf_ring.c | 119 struct bpf_map_info map_info = {}; in do_event_pipe()
|
D | btf.c | 570 struct bpf_map_info info = {}; in do_dump() 808 btf_id = ((struct bpf_map_info *)info)->btf_id; in build_btf_type_table() 840 struct bpf_map_info map_info; in build_btf_tables()
|
D | common.c | 895 struct bpf_map_info info = {}; in map_fd_by_name()
|
D | prog.c | 217 static void *find_metadata(int prog_fd, struct bpf_map_info *map_info) in find_metadata() 305 struct bpf_map_info map_info; in show_prog_metadata()
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_obj_id.c | 21 struct bpf_map_info map_infos[nr_iters + 1]; in serial_test_bpf_obj_id() 80 info_len = sizeof(struct bpf_map_info) * 2; in serial_test_bpf_obj_id() 90 info_len != sizeof(struct bpf_map_info) || in serial_test_bpf_obj_id() 96 info_len, sizeof(struct bpf_map_info), in serial_test_bpf_obj_id() 253 struct bpf_map_info map_info = {}; in serial_test_bpf_obj_id() 281 CHECK(err || info_len != sizeof(struct bpf_map_info) || in serial_test_bpf_obj_id() 286 err, errno, info_len, sizeof(struct bpf_map_info), in serial_test_bpf_obj_id()
|
D | btf_map_in_map.c | 12 struct bpf_map_info info; in bpf_map_id()
|
D | pinning.c | 10 struct bpf_map_info map_info = {}; in get_map_id()
|
D | unpriv_bpf_disabled.c | 151 struct bpf_map_info map_info = {}; in test_unpriv_bpf_disabled_negative()
|
D | mmap.c | 26 struct bpf_map_info map_info; in test_mmap()
|
D | bpf_iter.c | 642 struct bpf_map_info map_info = {}; in test_overflow()
|
/Linux-v6.1/tools/perf/util/ |
D | bpf_counter.h | 110 struct bpf_map_info map_info = { .id = 0, }; in bpf_map_get_id()
|
D | bpf_counter.c | 303 struct bpf_map_info map_info = {0}; in bperf_attr_map_compatible()
|
/Linux-v6.1/samples/bpf/ |
D | test_map_in_map_user.c | 37 struct bpf_map_info info = {}; in check_map_id()
|
D | xdp_redirect_cpu_user.c | 310 struct bpf_map_info info = {}; in main()
|
/Linux-v6.1/tools/lib/bpf/ |
D | ringbuf.c | 76 struct bpf_map_info info; in ring_buffer__add() 353 struct bpf_map_info info; in user_ringbuf_map()
|
/Linux-v6.1/tools/testing/selftests/bpf/map_tests/ |
D | map_in_map_batch_ops.c | 17 struct bpf_map_info map_info = {}; in get_map_id_from_fd()
|
/Linux-v6.1/kernel/bpf/ |
D | offload.c | 493 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()
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | xdp_synproxy.c | 307 struct bpf_map_info map_info = {}; in syncookie_open_bpf_maps()
|
D | xsk.c | 611 __u32 map_len = sizeof(struct bpf_map_info); in xsk_lookup_bpf_maps() 614 struct bpf_map_info map_info; in xsk_lookup_bpf_maps()
|
D | test_maps.c | 1158 struct bpf_map_info info = {}; in test_map_in_map()
|
/Linux-v6.1/Documentation/bpf/ |
D | btf.rst | 585 BPF_OBJ_GET_INFO_BY_FD (get bpf_prog_info/bpf_map_info with btf_id) 699 example, ``bpf_map_info`` returns ``btf_id`` and key/value type ids. 706 With ``btf_id`` obtained in ``bpf_map_info`` and ``bpf_prog_info``, bpf 711 With the btf blob, ``bpf_map_info``, and ``bpf_prog_info``, an introspection
|
/Linux-v6.1/tools/include/uapi/linux/ |
D | bpf.h | 6207 struct bpf_map_info { struct
|
/Linux-v6.1/include/uapi/linux/ |
D | bpf.h | 6207 struct bpf_map_info { struct
|