Home
last modified time | relevance | path

Searched refs:map_type_str (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dlibbpf_str.c132 const char *map_type_str; in test_libbpf_bpf_map_type_str() local
136 map_type_str = libbpf_bpf_map_type_str(map_type); in test_libbpf_bpf_map_type_str()
137 ASSERT_OK_PTR(map_type_str, map_type_name); in test_libbpf_bpf_map_type_str()
139 snprintf(buf, sizeof(buf), "BPF_MAP_TYPE_%s", map_type_str); in test_libbpf_bpf_map_type_str()
Dsockmap_ktls.c138 const char *map_type_str = BPF_MAP_TYPE_SOCKMAP ? "SOCKMAP" : "SOCKHASH"; in fmt_test_name() local
144 subtest_name, family_str, map_type_str); in fmt_test_name()
Dsockmap_listen.c1220 static const char *map_type_str(const struct bpf_map *map) in map_type_str() function
1288 map_name = map_type_str(map); in test_ops()
1326 map_name = map_type_str(map); in test_redir()
1420 map_name = map_type_str(map); in test_unix_redir()
1570 map_name = map_type_str(map); in test_vsock_redir()
1598 map_name = map_type_str(map); in test_reuseport()
1740 map_name = map_type_str(map); in test_udp_redir()
1915 map_name = map_type_str(map); in test_udp_unix_redir()
/linux-6.6.21/tools/bpf/bpftool/
Dmap.c47 const char *map_type_str; in map_type_from_str() local
51 map_type_str = libbpf_bpf_map_type_str(i); in map_type_from_str()
52 if (!map_type_str) in map_type_from_str()
56 if (!strcmp(map_type_str, type)) in map_type_from_str()
452 const char *map_type_str; in show_map_header_json() local
455 map_type_str = libbpf_bpf_map_type_str(info->type); in show_map_header_json()
456 if (map_type_str) in show_map_header_json()
457 jsonw_string_field(wtr, "type", map_type_str); in show_map_header_json()
543 const char *map_type_str; in show_map_header_plain() local
547 map_type_str = libbpf_bpf_map_type_str(info->type); in show_map_header_plain()
[all …]
Dfeature.c618 probe_map_type(enum bpf_map_type map_type, char const *map_type_str, in probe_map_type() argument
645 if (strlen(map_type_str) > maxlen) { in probe_map_type()
650 sprintf(feat_name, "have_%s_map_type", map_type_str); in probe_map_type()
651 sprintf(define_name, "%s_map_type", map_type_str); in probe_map_type()
653 sprintf(plain_desc, "%s%s", plain_comment, map_type_str); in probe_map_type()
963 const char *map_type_str; in section_map_types() local
972 map_type_str = libbpf_bpf_map_type_str(map_type); in section_map_types()
974 if (!map_type_str) in section_map_types()
977 probe_map_type(map_type, map_type_str, define_prefix, ifindex); in section_map_types()