Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dlibbpf_str.c41 const char *attach_type_name; in test_libbpf_bpf_attach_type_str() local
48 attach_type_name = btf__str_by_offset(btf, e->name_off); in test_libbpf_bpf_attach_type_str()
50 ASSERT_OK_PTR(attach_type_str, attach_type_name); in test_libbpf_bpf_attach_type_str()
55 ASSERT_STREQ(buf, attach_type_name, "exp_str_value"); in test_libbpf_bpf_attach_type_str()
/linux-6.12.1/tools/lib/bpf/
Dlibbpf.c78 static const char * const attach_type_name[] = { variable
9667 if (t < 0 || t >= ARRAY_SIZE(attach_type_name)) in libbpf_bpf_attach_type_str()
9670 return attach_type_name[t]; in libbpf_bpf_attach_type_str()