Home
last modified time | relevance | path

Searched refs:bpf_obj_pin (Results 1 – 15 of 15) sorted by relevance

/linux/samples/bpf/
H A Dfds_example.c88 ret = bpf_obj_pin(fd, file); in bpf_do_map()
121 ret = bpf_obj_pin(fd, file); in bpf_do_prog()
H A Dcookie_uid_helper_example.c176 if (bpf_obj_pin(prog_fd, file)) in prog_attach_iptables()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_bpffs.c92 err = bpf_obj_pin(map, TDIR "/fs1/c"); in fn()
H A Dbpf_obj_pinning.c193 err = bpf_obj_pin(map_fd, abs_path); in validate_get()
H A Dunpriv_bpf_disabled.c256 ASSERT_OK(bpf_obj_pin(map_fds[i], map_paths[i]), "pin map_fd"); in test_unpriv_bpf_disabled()
H A Dbtf.c5501 err = bpf_obj_pin(map_fd, pin_path); in do_test_pprint()
/linux/tools/lib/bpf/
H A Dlibbpf.map22 bpf_obj_pin;
H A Dbpf.h312 LIBBPF_API int bpf_obj_pin(int fd, const char *pathname);
H A Dlibbpf.c8680 if (bpf_obj_pin(prog->fd, path)) { in bpf_program__pin()
8760 if (bpf_obj_pin(map->fd, map->pin_path)) { in bpf_map__pin()
10727 if (bpf_obj_pin(link->fd, link->pin_path)) { in bpf_link__pin()
/linux/tools/perf/util/
H A Dbpf_counter.c338 err = bpf_obj_pin(map_fd, path); in bperf_lock_attr_map()
/linux/tools/bpf/bpftool/
H A Dcommon.c368 err = bpf_obj_pin(fd, name); in do_pin_fd()
H A Dprog.c1482 return bpf_obj_pin(bpf_program__fd(prog), path);
1805 err = bpf_obj_pin(bpf_program__fd(prog), pinfile); in load_with_options()
/linux/tools/testing/selftests/hid/
H A Dhid_bpf.c297 err = bpf_obj_pin(link_fd, PIN_PATH); in TEST_F()
/linux/Documentation/hid/
H A Dhid-bpf.rst449 BPF filesystem through a call to :c:func:`bpf_obj_pin`, as with any bpf_link.
/linux/kernel/bpf/
H A Dsyscall.c3004 static int bpf_obj_pin(const union bpf_attr *attr) in bpf_obj_pin() function
5793 err = bpf_obj_pin(&attr); in __sys_bpf()