Lines Matching refs:prog
19 struct bpf_program *prog; in test_tailcall_1() local
34 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_1()
35 if (CHECK_FAIL(!prog)) in test_tailcall_1()
38 main_fd = bpf_program__fd(prog); in test_tailcall_1()
53 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1()
54 if (CHECK_FAIL(!prog)) in test_tailcall_1()
57 prog_fd = bpf_program__fd(prog); in test_tailcall_1()
83 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1()
84 if (CHECK_FAIL(!prog)) in test_tailcall_1()
87 prog_fd = bpf_program__fd(prog); in test_tailcall_1()
104 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_1()
105 if (CHECK_FAIL(!prog)) in test_tailcall_1()
108 prog_fd = bpf_program__fd(prog); in test_tailcall_1()
155 struct bpf_program *prog; in test_tailcall_2() local
170 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_2()
171 if (CHECK_FAIL(!prog)) in test_tailcall_2()
174 main_fd = bpf_program__fd(prog); in test_tailcall_2()
189 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_2()
190 if (CHECK_FAIL(!prog)) in test_tailcall_2()
193 prog_fd = bpf_program__fd(prog); in test_tailcall_2()
234 struct bpf_program *prog; in test_tailcall_count() local
247 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_count()
248 if (CHECK_FAIL(!prog)) in test_tailcall_count()
251 main_fd = bpf_program__fd(prog); in test_tailcall_count()
263 prog = bpf_object__find_program_by_name(obj, "classifier_0"); in test_tailcall_count()
264 if (CHECK_FAIL(!prog)) in test_tailcall_count()
267 prog_fd = bpf_program__fd(prog); in test_tailcall_count()
282 prog = bpf_object__find_program_by_name(fentry_obj, "fentry"); in test_tailcall_count()
283 if (!ASSERT_OK_PTR(prog, "find fentry prog")) in test_tailcall_count()
286 err = bpf_program__set_attach_target(prog, prog_fd, in test_tailcall_count()
295 fentry_link = bpf_program__attach_trace(prog); in test_tailcall_count()
306 prog = bpf_object__find_program_by_name(fexit_obj, "fexit"); in test_tailcall_count()
307 if (!ASSERT_OK_PTR(prog, "find fexit prog")) in test_tailcall_count()
310 err = bpf_program__set_attach_target(prog, prog_fd, in test_tailcall_count()
319 fexit_link = bpf_program__attach_trace(prog); in test_tailcall_count()
415 struct bpf_program *prog; in test_tailcall_4() local
431 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_4()
432 if (CHECK_FAIL(!prog)) in test_tailcall_4()
435 main_fd = bpf_program__fd(prog); in test_tailcall_4()
458 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_4()
459 if (CHECK_FAIL(!prog)) in test_tailcall_4()
462 prog_fd = bpf_program__fd(prog); in test_tailcall_4()
505 struct bpf_program *prog; in test_tailcall_5() local
521 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_5()
522 if (CHECK_FAIL(!prog)) in test_tailcall_5()
525 main_fd = bpf_program__fd(prog); in test_tailcall_5()
548 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_5()
549 if (CHECK_FAIL(!prog)) in test_tailcall_5()
552 prog_fd = bpf_program__fd(prog); in test_tailcall_5()
595 struct bpf_program *prog; in test_tailcall_bpf2bpf_1() local
609 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_bpf2bpf_1()
610 if (CHECK_FAIL(!prog)) in test_tailcall_bpf2bpf_1()
613 main_fd = bpf_program__fd(prog); in test_tailcall_bpf2bpf_1()
629 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_bpf2bpf_1()
630 if (CHECK_FAIL(!prog)) in test_tailcall_bpf2bpf_1()
633 prog_fd = bpf_program__fd(prog); in test_tailcall_bpf2bpf_1()
679 struct bpf_program *prog; in test_tailcall_bpf2bpf_2() local
693 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_bpf2bpf_2()
694 if (CHECK_FAIL(!prog)) in test_tailcall_bpf2bpf_2()
697 main_fd = bpf_program__fd(prog); in test_tailcall_bpf2bpf_2()
709 prog = bpf_object__find_program_by_name(obj, "classifier_0"); in test_tailcall_bpf2bpf_2()
710 if (CHECK_FAIL(!prog)) in test_tailcall_bpf2bpf_2()
713 prog_fd = bpf_program__fd(prog); in test_tailcall_bpf2bpf_2()
759 struct bpf_program *prog; in test_tailcall_bpf2bpf_3() local
773 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_bpf2bpf_3()
774 if (CHECK_FAIL(!prog)) in test_tailcall_bpf2bpf_3()
777 main_fd = bpf_program__fd(prog); in test_tailcall_bpf2bpf_3()
792 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_bpf2bpf_3()
793 if (CHECK_FAIL(!prog)) in test_tailcall_bpf2bpf_3()
796 prog_fd = bpf_program__fd(prog); in test_tailcall_bpf2bpf_3()
854 struct bpf_program *prog; in test_tailcall_bpf2bpf_4() local
868 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_bpf2bpf_4()
869 if (CHECK_FAIL(!prog)) in test_tailcall_bpf2bpf_4()
872 main_fd = bpf_program__fd(prog); in test_tailcall_bpf2bpf_4()
887 prog = bpf_object__find_program_by_name(obj, prog_name); in test_tailcall_bpf2bpf_4()
888 if (CHECK_FAIL(!prog)) in test_tailcall_bpf2bpf_4()
891 prog_fd = bpf_program__fd(prog); in test_tailcall_bpf2bpf_4()
1018 struct bpf_program *prog; in test_tailcall_bpf2bpf_fentry_entry() local
1041 prog = bpf_object__find_program_by_name(tgt_obj, "classifier_0"); in test_tailcall_bpf2bpf_fentry_entry()
1042 if (!ASSERT_OK_PTR(prog, "find classifier_0 prog")) in test_tailcall_bpf2bpf_fentry_entry()
1045 prog_fd = bpf_program__fd(prog); in test_tailcall_bpf2bpf_fentry_entry()
1059 prog = bpf_object__find_program_by_name(fentry_obj, "fentry"); in test_tailcall_bpf2bpf_fentry_entry()
1060 if (!ASSERT_OK_PTR(prog, "find fentry prog")) in test_tailcall_bpf2bpf_fentry_entry()
1063 err = bpf_program__set_attach_target(prog, prog_fd, "classifier_0"); in test_tailcall_bpf2bpf_fentry_entry()
1071 fentry_link = bpf_program__attach_trace(prog); in test_tailcall_bpf2bpf_fentry_entry()
1200 struct bpf_program *prog, *fentry_prog; in test_tailcall_hierarchy_count() local
1216 prog = bpf_object__find_program_by_name(obj, "entry"); in test_tailcall_hierarchy_count()
1217 if (!ASSERT_OK_PTR(prog, "find entry prog")) in test_tailcall_hierarchy_count()
1220 prog_fd = bpf_program__fd(prog); in test_tailcall_hierarchy_count()
1232 if (!ASSERT_OK_PTR(prog, "find fentry prog")) in test_tailcall_hierarchy_count()
1296 prog = bpf_object__find_program_by_name(fentry_obj, "fentry"); in test_tailcall_hierarchy_count()
1297 if (!ASSERT_OK_PTR(prog, "find fentry prog")) in test_tailcall_hierarchy_count()
1300 err = bpf_program__set_attach_target(prog, prog_fd, in test_tailcall_hierarchy_count()
1309 fentry_link = bpf_program__attach_trace(prog); in test_tailcall_hierarchy_count()
1320 prog = bpf_object__find_program_by_name(fexit_obj, "fexit"); in test_tailcall_hierarchy_count()
1321 if (!ASSERT_OK_PTR(prog, "find fexit prog")) in test_tailcall_hierarchy_count()
1324 err = bpf_program__set_attach_target(prog, prog_fd, in test_tailcall_hierarchy_count()
1333 fexit_link = bpf_program__attach_trace(prog); in test_tailcall_hierarchy_count()