Home
last modified time | relevance | path

Searched refs:prog_type_name (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dlibbpf_probes.c27 const char *prog_type_name = btf__str_by_offset(btf, e->name_off); in test_libbpf_probe_prog_types() local
34 if (!test__start_subtest(prog_type_name)) in test_libbpf_probe_prog_types()
38 ASSERT_EQ(res, 1, prog_type_name); in test_libbpf_probe_prog_types()
86 .prog_type_name = "BPF_PROG_TYPE_" # prog, \ in test_libbpf_probe_helpers()
93 const char *prog_type_name; in test_libbpf_probe_helpers() member
116 snprintf(buf, sizeof(buf), "%s+%s", d->prog_type_name, d->helper_name); in test_libbpf_probe_helpers()
Dlibbpf_str.c173 const char *prog_type_name; in test_libbpf_bpf_prog_type_str() local
177 prog_type_name = btf__str_by_offset(btf, e->name_off); in test_libbpf_bpf_prog_type_str()
179 ASSERT_OK_PTR(prog_type_str, prog_type_name); in test_libbpf_bpf_prog_type_str()
184 ASSERT_STREQ(buf, prog_type_name, "exp_str_value"); in test_libbpf_bpf_prog_type_str()
/linux-6.1.9/tools/lib/bpf/
Dlibbpf.c169 static const char * const prog_type_name[] = { variable
8789 if (t < 0 || t >= ARRAY_SIZE(prog_type_name)) in libbpf_bpf_prog_type_str()
8792 return prog_type_name[t]; in libbpf_bpf_prog_type_str()