| /linux/tools/bpf/bpftool/ |
| H A 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() 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() 179 typedef int (*work_func)(int fd, const struct bpf_map_info *info, void *data, 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() [all …]
|
| H A D | map.c | 62 static void *alloc_value(struct bpf_map_info *info) in alloc_value() 72 struct bpf_map_info *map_info, void *key, in do_dump_btf() 132 static void print_entry_json(struct bpf_map_info *info, unsigned char *key, in print_entry_json() 194 print_entry_error_msg(struct bpf_map_info *info, unsigned char *key, in print_entry_error_msg() 214 print_entry_error(struct bpf_map_info *map_info, void *key, int lookup_errno) in print_entry_error() 247 static void print_entry_plain(struct bpf_map_info *info, unsigned char *key, in print_entry_plain() 327 static void fill_per_cpu_value(struct bpf_map_info *info, void *value) in fill_per_cpu_value() 340 static int parse_elem(char **argv, struct bpf_map_info *info, void *key, in parse_elem() 450 static void show_map_header_json(struct bpf_map_info *info, json_writer_t *wtr) in show_map_header_json() 468 static int show_map_close_json(int fd, struct bpf_map_info *info) in show_map_close_json() [all …]
|
| H A D | map_perf_ring.c | 119 struct bpf_map_info map_info = {}; in do_event_pipe()
|
| H A D | btf.c | 934 struct bpf_map_info info = {}; in do_dump() 1281 btf_id = ((struct bpf_map_info *)info)->btf_id; in build_btf_type_table() 1312 struct bpf_map_info map_info; in build_btf_tables()
|
| H A D | common.c | 985 struct bpf_map_info info = {}; in map_fd_by_name() 1138 int map_parse_fd_and_info(int *argc, char ***argv, struct bpf_map_info *info, in map_parse_fd_and_info()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | bpf_obj_id.c | 21 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 D | test_struct_ops_module.c | 14 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 D | libbpf_get_fd_by_id_opts.c | 16 struct bpf_map_info info_m = {}; in test_libbpf_get_fd_by_id_opts()
|
| H A D | metadata.c | 19 struct bpf_map_info map_info = {}; in prog_holds_map()
|
| H A D | btf_map_in_map.c | 12 struct bpf_map_info info; in bpf_map_id()
|
| H A D | signed_loader.c | 689 struct bpf_map_info info; in metadata_ctx_max_entries_ignored() 775 struct bpf_map_info info; in metadata_ctx_initial_value_ignored() 1023 struct bpf_map_info info; in hash_requires_frozen() 1093 struct bpf_map_info info; in map_hash_matches_libbpf() 1125 struct bpf_map_info info; in map_hash_multi_element() 1167 struct bpf_map_info info; in map_hash_bad_size() 1188 struct bpf_map_info info; in map_hash_unsupported_type()
|
| H A D | map_kptr_race.c | 10 struct bpf_map_info info = {}; in get_map_id()
|
| H A D | pinning.c | 10 struct bpf_map_info map_info = {}; in get_map_id()
|
| H A D | unpriv_bpf_disabled.c | 133 struct bpf_map_info map_info = {}; in test_unpriv_bpf_disabled_positive()
|
| H A D | mmap.c | 26 struct bpf_map_info map_info; in test_mmap()
|
| H A D | bpf_iter.c | 721 struct bpf_map_info map_info = {}; in test_overflow()
|
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | map_percpu_stats.c | 22 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 D | map_in_map_batch_ops.c | 17 struct bpf_map_info map_info = {}; in get_map_id_from_fd()
|
| /linux/samples/bpf/ |
| H A D | test_map_in_map_user.c | 37 struct bpf_map_info info = {}; in check_map_id()
|
| /linux/tools/lib/bpf/ |
| H A D | ringbuf.c | 78 struct bpf_map_info info; in ring_buffer__add() 449 struct bpf_map_info info; in user_ringbuf_map()
|
| /linux/tools/perf/util/ |
| H A D | bpf_counter.c | 75 struct bpf_map_info map_info = { .id = 0, }; in bpf_map_get_id() 367 struct bpf_map_info map_info = {0}; in bperf_attr_map_compatible()
|
| H A D | bpf-event.c | 194 struct bpf_map_info map_info; in bpf_metadata_read_map_data()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | xdp_synproxy.c | 311 struct bpf_map_info map_info = {}; in syncookie_open_bpf_maps()
|
| /linux/include/linux/ |
| H A D | bpf.h | 2273 void bpf_map_struct_ops_info_fill(struct bpf_map_info *info, struct bpf_map *map); 2310 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() 3602 int bpf_map_offload_info_fill(struct bpf_map_info *info, struct bpf_map *map);
|
| /linux/kernel/bpf/ |
| H A D | bpf_struct_ops.c | 1564 void bpf_map_struct_ops_info_fill(struct bpf_map_info *info, struct bpf_map *map) in bpf_map_struct_ops_info_fill()
|