Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbpf_obj_pinning.c128 const char *pin_path = NULL; in validate_pin() local
137 pin_path = abs_path; in validate_pin()
143 pin_path = map_name; in validate_pin()
150 pin_path = map_name; in validate_pin()
155 err = bpf_obj_pin_opts(map_fd, pin_path, &pin_opts); in validate_pin()
188 const char *pin_path = NULL; in validate_get() local
202 pin_path = abs_path; in validate_get()
208 pin_path = map_name; in validate_get()
215 pin_path = map_name; in validate_get()
219 map_fd2 = bpf_obj_get_opts(pin_path, &get_opts); in validate_get()
Dbtf.c5393 char pin_path[255]; in do_test_pprint() local
5429 ret = snprintf(pin_path, sizeof(pin_path), "%s/%s", in do_test_pprint()
5432 if (CHECK(ret >= sizeof(pin_path), "pin_path %s/%s is too long", in do_test_pprint()
5438 err = bpf_obj_pin(map_fd, pin_path); in do_test_pprint()
5439 if (CHECK(err, "bpf_obj_pin(%s): errno:%d.", pin_path, errno)) in do_test_pprint()
5456 pin_file = fopen(pin_path, "r"); in do_test_pprint()
5457 if (CHECK(!pin_file, "fopen(%s): errno:%d", pin_path, errno)) { in do_test_pprint()
5565 unlink(pin_path); in do_test_pprint()
/linux-6.6.21/tools/lib/bpf/
Dlibbpf.c529 char *pin_path; member
5027 pin_fd = bpf_obj_get(map->pin_path); in bpf_object__reuse_map()
5032 map->pin_path); in bpf_object__reuse_map()
5038 map->pin_path, cp); in bpf_object__reuse_map()
5044 map->pin_path); in bpf_object__reuse_map()
5055 pr_debug("reused pinned map at '%s'\n", map->pin_path); in bpf_object__reuse_map()
5349 if (map->pin_path) { in bpf_object__create_maps()
5392 if (map->pin_path && !map->pinned) { in bpf_object__create_maps()
5401 map->name, map->pin_path, err); in bpf_object__create_maps()
8101 if (map->pin_path) { in bpf_map__pin()
[all …]
Dlibbpf_internal.h166 char *pin_path; /* NULL, if not pinned */ member