map_type_str
probe_map_type(enum bpf_map_type map_type, char const *map_type_str,
if (strlen(map_type_str) > maxlen) {
sprintf(feat_name, "have_%s_map_type", map_type_str);
sprintf(define_name, "%s_map_type", map_type_str);
sprintf(plain_desc, "%s%s", plain_comment, map_type_str);
const char *map_type_str;
map_type_str = libbpf_bpf_map_type_str(map_type);
if (!map_type_str)
probe_map_type(map_type, map_type_str, define_prefix, ifindex);
const char *map_type_str;
map_type_str = libbpf_bpf_map_type_str(info->type);
if (map_type_str)
jsonw_string_field(wtr, "type", map_type_str);
const char *map_type_str;
map_type_str = libbpf_bpf_map_type_str(i);
if (!map_type_str)
const char *map_type_str;
map_type_str = libbpf_bpf_map_type_str(info->type);
if (map_type_str)
printf("%s ", map_type_str);
if (!strcmp(map_type_str, type))
const char *map_type_str;
map_type_str = libbpf_bpf_map_type_str(info->type);
map_type_str);
const char *map_type_str;
map_type_str = libbpf_bpf_map_type_str(map_type);
ASSERT_OK_PTR(map_type_str, map_type_name);
snprintf(buf, sizeof(buf), "BPF_MAP_TYPE_%s", map_type_str);
const char *map_type_str = BPF_MAP_TYPE_SOCKMAP ? "SOCKMAP" : "SOCKHASH";
subtest_name, family_str, map_type_str);
map_name = map_type_str(map);
map_name = map_type_str(map);
map_name = map_type_str(map);