Home
last modified time | relevance | path

Searched refs:freplace_prog (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dchanges_pkt_data.c19 struct bpf_program *freplace_prog = NULL; in test_aux() local
44 freplace_prog = bpf_object__find_program_by_name(freplace->obj, replacement); in test_aux()
45 if (!ASSERT_OK_PTR(freplace_prog, "freplace_prog")) in test_aux()
47 bpf_program__set_autoload(freplace_prog, true); in test_aux()
48 bpf_program__set_autoattach(freplace_prog, true); in test_aux()
49 bpf_program__set_attach_target(freplace_prog, in test_aux()
H A Dglobal_func_dead_code.c33 err = bpf_program__set_attach_target(skel->progs.freplace_prog, tgt_fd, "global_good"); in test_global_func_dead_code()
47 bpf_program__set_log_buf(skel->progs.freplace_prog, log_buf, sizeof(log_buf)); in test_global_func_dead_code()
48 err = bpf_program__set_attach_target(skel->progs.freplace_prog, tgt_fd, "global_dead"); in test_global_func_dead_code()
H A Dtailcalls.c1507 struct bpf_program *freplace_prog; in test_tailcall_freplace() local
1528 freplace_prog = freplace_skel->progs.entry_freplace; in test_tailcall_freplace()
1529 err = bpf_program__set_attach_target(freplace_prog, tc_prog_fd, in test_tailcall_freplace()
1539 prog_fd = bpf_program__fd(freplace_prog); in test_tailcall_freplace()
1544 freplace_link = bpf_program__attach_freplace(freplace_prog, tc_prog_fd, in test_tailcall_freplace()
/linux/tools/testing/selftests/bpf/progs/
H A Dfreplace_dead_global_func.c6 int freplace_prog(void) in freplace_prog() function