Searched refs:map_info (Results 1 – 6 of 6) sorted by relevance
/tools/bpf/bpftool/ |
D | map_perf_ring.c | 127 struct bpf_map_info map_info = {}; in do_event_pipe() local 138 map_info_len = sizeof(map_info); in do_event_pipe() 139 map_fd = map_parse_fd_and_info(&argc, &argv, &map_info, &map_info_len); in do_event_pipe() 143 if (map_info.type != BPF_MAP_TYPE_PERF_EVENT_ARRAY) { in do_event_pipe()
|
D | map.c | 150 struct bpf_map_info *map_info, void *key, in do_dump_btf() argument 158 if (map_info->btf_key_type_id) { in do_dump_btf() 161 ret = btf_dumper_type(d, map_info->btf_key_type_id, key); in do_dump_btf() 166 if (!map_is_per_cpu(map_info->type)) { in do_dump_btf() 168 ret = btf_dumper_type(d, map_info->btf_value_type_id, value); in do_dump_btf() 175 step = round_up(map_info->value_size, 8); in do_dump_btf() 180 ret = btf_dumper_type(d, map_info->btf_value_type_id, in do_dump_btf() 710 struct bpf_map_info *map_info, struct btf *btf, in dump_map_elem() argument 718 print_entry_json(map_info, key, value, btf); in dump_map_elem() 727 do_dump_btf(&d, map_info, key, value); in dump_map_elem() [all …]
|
D | btf.c | 683 struct bpf_map_info map_info; in build_btf_tables() local 684 __u32 map_len = sizeof(map_info); in build_btf_tables() 692 err = build_btf_type_table(btf_map_table, BPF_OBJ_MAP, &map_info, in build_btf_tables()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_obj_id.c | 206 struct bpf_map_info map_info = {}; in test_bpf_obj_id() local 209 info_len = sizeof(map_info); in test_bpf_obj_id() 233 err = bpf_obj_get_info_by_fd(map_fd, &map_info, &info_len); in test_bpf_obj_id() 235 memcmp(&map_info, &map_infos[i], info_len) || in test_bpf_obj_id() 240 memcmp(&map_info, &map_infos[i], info_len), in test_bpf_obj_id()
|
/tools/lib/bpf/ |
D | xsk.c | 460 struct bpf_map_info map_info; in xsk_lookup_bpf_maps() local 488 err = bpf_obj_get_info_by_fd(fd, &map_info, &map_len); in xsk_lookup_bpf_maps() 494 if (!strcmp(map_info.name, "xsks_map")) { in xsk_lookup_bpf_maps()
|
/tools/testing/selftests/bpf/ |
D | test_btf.c | 3871 struct bpf_map_info map_info = {}; in test_btf_id() local 3948 info_len = sizeof(map_info); in test_btf_id() 3949 err = bpf_obj_get_info_by_fd(map_fd, &map_info, &info_len); in test_btf_id() 3950 if (CHECK(err || map_info.btf_id != info[0].id || in test_btf_id() 3951 map_info.btf_key_type_id != 1 || map_info.btf_value_type_id != 2, in test_btf_id() 3953 err, errno, info[0].id, map_info.btf_id, map_info.btf_key_type_id, in test_btf_id() 3954 map_info.btf_value_type_id)) { in test_btf_id() 3965 btf_fd[0] = bpf_btf_get_fd_by_id(map_info.btf_id); in test_btf_id() 3976 btf_fd[0] = bpf_btf_get_fd_by_id(map_info.btf_id); in test_btf_id()
|