Home
last modified time | relevance | path

Searched refs:link_type_str (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlibbpf_str.c87 const char *link_type_str; in test_libbpf_bpf_link_type_str() local
94 link_type_str = libbpf_bpf_link_type_str(link_type); in test_libbpf_bpf_link_type_str()
95 ASSERT_OK_PTR(link_type_str, link_type_name); in test_libbpf_bpf_link_type_str()
97 snprintf(buf, sizeof(buf), "BPF_LINK_TYPE_%s", link_type_str); in test_libbpf_bpf_link_type_str()
/openbmc/linux/tools/bpf/bpftool/
H A Dlink.c130 const char *link_type_str; in show_link_header_json() local
133 link_type_str = libbpf_bpf_link_type_str(info->type); in show_link_header_json()
134 if (link_type_str) in show_link_header_json()
135 jsonw_string_field(wtr, "type", link_type_str); in show_link_header_json()
505 const char *link_type_str; in show_link_header_plain() local
508 link_type_str = libbpf_bpf_link_type_str(info->type); in show_link_header_plain()
509 if (link_type_str) in show_link_header_plain()
510 printf("%s ", link_type_str); in show_link_header_plain()