Home
last modified time | relevance | path

Searched refs:bpf_link_update (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector_reattach.c274 err = bpf_link_update(link, prog2, &update_opts); in test_link_update_no_old_prog()
276 perror("bpf_link_update"); in test_link_update_no_old_prog()
299 err = bpf_link_update(link, prog2, &update_opts); in test_link_update_replace_old_prog()
301 perror("bpf_link_update"); in test_link_update_replace_old_prog()
324 err = bpf_link_update(link, prog1, &update_opts); in test_link_update_same_prog()
326 perror("bpf_link_update"); in test_link_update_same_prog()
350 err = bpf_link_update(link, prog2, &update_opts); in test_link_update_invalid_opts()
352 perror("bpf_link_update expected EINVAL"); in test_link_update_invalid_opts()
361 err = bpf_link_update(link, prog2, &update_opts); in test_link_update_invalid_opts()
363 perror("bpf_link_update expecte in test_link_update_invalid_opts()
[all...]
H A Dcgroup_link.c194 err = bpf_link_update(bpf_link__fd(links[0]), in test_cgroup_link()
204 err = bpf_link_update(bpf_link__fd(links[0]), in test_cgroup_link()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector_reattach.c274 err = bpf_link_update(link, prog2, &update_opts); in test_link_update_no_old_prog()
276 perror("bpf_link_update"); in test_link_update_no_old_prog()
299 err = bpf_link_update(link, prog2, &update_opts); in test_link_update_replace_old_prog()
301 perror("bpf_link_update"); in test_link_update_replace_old_prog()
324 err = bpf_link_update(link, prog1, &update_opts); in test_link_update_same_prog()
326 perror("bpf_link_update"); in test_link_update_same_prog()
350 err = bpf_link_update(link, prog2, &update_opts); in test_link_update_invalid_opts()
352 perror("bpf_link_update expected EINVAL"); in test_link_update_invalid_opts()
361 err = bpf_link_update(link, prog2, &update_opts); in test_link_update_invalid_opts()
363 perror("bpf_link_update expecte in test_link_update_invalid_opts()
[all...]
H A Dcgroup_link.c188 err = bpf_link_update(bpf_link__fd(links[0]), in serial_test_cgroup_link()
198 err = bpf_link_update(bpf_link__fd(links[0]), in serial_test_cgroup_link()
H A Dbpf_tcp_ca.c519 err = bpf_link_update(bpf_link__fd(link), in test_link_replace()
526 err = bpf_link_update(bpf_link__fd(link), in test_link_replace()
H A Dlsm_cgroup.c156 err = bpf_link_update(bind_link_fd, bind_prog_fd2, &update_opts); in test_lsm_cgroup_functional()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dbpf.h194 LIBBPF_API int bpf_link_update(int link_fd, int new_prog_fd,
H A Dbpf.c628 int bpf_link_update(int link_fd, int new_prog_fd, in bpf_link_update() function
H A Dlibbpf.c9150 return bpf_link_update(bpf_link__fd(link), bpf_program__fd(prog), NULL); in bpf_link__update_program()
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbpf.h437 LIBBPF_API int bpf_link_update(int link_fd, int new_prog_fd,
H A Dbpf.c866 int bpf_link_update(int link_fd, int new_prog_fd, in bpf_link_update() function
H A Dlibbpf.c9932 ret = bpf_link_update(bpf_link__fd(link), bpf_program__fd(prog), NULL); in bpf_link__update_program()
12236 err = bpf_link_update(link->fd, map->fd, NULL); in bpf_link__update_map()

Completed in 37 milliseconds