/linux-master/tools/testing/selftests/drivers/net/lib/py/ |
H A D | env.py | 18 with open((src_dir / "net.config").as_posix(), 'r') as fp: 140 with open("/proc/self/ns/net") as nsfd0, \ 141 open("/var/run/netns/" + self._netns.name) as nsfd1:
|
/linux-master/tools/testing/selftests/drivers/net/hw/ |
H A D | pp_alloc_fail.py | 15 with open("/sys/kernel/debug/fail_function/" + key, "w") as fp: 24 with open("/sys/kernel/debug/fail_function/inject", "w") as fp: 40 with open("/sys/kernel/debug/fail_function/inject", "w") as fp:
|
/linux-master/tools/testing/selftests/dmabuf-heaps/ |
H A D | dmabuf-heap.c | 49 fd = open(name, O_RDWR); 97 fd = open(buf, O_RDWR); 99 ksft_exit_fail_msg("open %s failed: %s\n", buf, strerror(errno)); 173 ksft_test_result_skip("Could not open vgem %d\n", importer_fd);
|
/linux-master/tools/testing/selftests/core/ |
H A D | close_range_test.c | 43 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); 116 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); 205 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); 244 fd = open("/dev/null", O_RDONLY); 312 fd = open("/dev/null", O_RDONLY); 387 fd1 = open("/dev/null", O_RDWR); 410 * our open fds should still be open but made 470 fd4 = open("/dev/null", O_RDWR); 514 fd1 = open("/de [all...] |
/linux-master/tools/testing/selftests/capabilities/ |
H A D | test_execve.c | 41 fd = open(filename, O_WRONLY); 45 ksft_exit_fail_msg("open of %s failed - %s\n", 149 ksft_exit_fail_msg("open copy source - %s\n", strerror(errno)); 151 int to = open(toname, O_CREAT | O_WRONLY | O_EXCL, 0700); 216 int ourpath_fd = open(our_path, O_RDONLY | O_DIRECTORY); 218 ksft_exit_fail_msg("open '%s' - %s\n",
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | veristat.c | 379 fd = open(path, O_RDONLY | O_CLOEXEC); 608 fprintf(stderr, "Failed to open filters in '%s': %d\n", path, err); 1084 /* if libbpf can't open BPF object file, it could be because 1090 fprintf(stderr, "Failed to open '%s': %d\n", filename, -errno); 1115 fprintf(stderr, "Failed to open '%s': %d\n", filename, err); 1487 fprintf(stderr, "Failed to open '%s': %d\n", filename, err);
|
H A D | testing_helpers.c | 184 fprintf(stderr, "Failed to open '%s': %d\n", path, err); 346 printf("Failed to open /proc/sys/kernel/perf_event_max_sample_rate: err %d\n" 408 fd = open("bpf_testmod.ko", O_RDONLY); 481 sysctl_fd = open(jit_sysctl, O_RDONLY);
|
H A D | trace_helpers.c | 209 /* open kallsyms and read symbol addresses on the fly. Without caching all symbols, 354 fd = open(path, O_RDONLY | O_CLOEXEC);
|
H A D | test_sockmap.c | 2018 cg_fd = open(optarg, O_DIRECTORY, O_RDONLY); 2021 "ERROR: (%i) open cg path failed: %s\n",
|
H A D | test_cpp.cpp | 21 int open(const struct bpf_object_open_opts *opts = nullptr) function in class:Skeleton 28 skel = T::open(opts); 62 err = skel.open(&opts); 64 fprintf(stderr, "Skeleton open failed: %d\n", err);
|
H A D | network_helpers.c | 462 token->orig_netns_fd = open("/proc/self/ns/net", O_RDONLY); 464 log_err("Failed to open(/proc/self/ns/net)"); 469 nsfd = open(nspath, O_RDONLY | O_CLOEXEC); 471 log_err("Failed to open(%s)", nspath);
|
H A D | cgroup_helpers.c | 71 fd = open(path, O_RDONLY); 92 cfd = open(path, O_RDWR); 135 fd = open(file_path, O_RDWR); 259 fd = open(cgroup_procs_path, O_WRONLY); 367 fd = open(CGROUP_MOUNT_PATH, O_RDONLY); 415 fd = open(cgroup_path, O_RDONLY); 584 fd = open(cgroup_classid_path, O_WRONLY); 700 * open it here. 709 return open(cgroup_workdir, O_RDONLY);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | tc_redirect.c | 1077 fd = open("/dev/net/tun", O_RDWR); 1078 if (!ASSERT_GE(fd, 0, "open /dev/net/tun"))
|
H A D | sk_assign.c | 239 self_net = open(NS_SELF, O_RDONLY); 241 perror("Unable to open "NS_SELF); 252 perror("Unable to open " SERVER_MAP_PATH);
|
H A D | mptcp.c | 124 fd = open("/proc/sys/net/ipv4/tcp_congestion_control", O_RDONLY); 125 if (!ASSERT_GE(fd, 0, "failed to open tcp_congestion_control"))
|
H A D | module_attach.c | 17 fd = open(BPF_TESTMOD_TEST_FILE, O_RDONLY); 47 if (CHECK(!skel, "skel_open", "failed to open skeleton\n"))
|
H A D | flow_dissector.c | 458 fd = open("/dev/net/tun", O_RDWR); 600 net_fd = open("/proc/self/ns/net", O_RDONLY); 601 if (CHECK(net_fd < 0, "open(/proc/self/ns/net)", "err %d\n", errno)) 622 if (CHECK(!skel, "skel", "failed to open/load skeleton\n"))
|
/linux-master/tools/testing/selftests/arm64/abi/ |
H A D | tpidr2.c | 281 ret = open("/proc/sys/abi/sme_default_vector_length", O_RDONLY, 0);
|
/linux-master/tools/power/acpi/tools/pfrut/ |
H A D | pfrut.c | 216 fd_update = open("/dev/acpi_pfr_update0", O_RDWR); 222 fd_update_log = open("/dev/acpi_pfr_telemetry0", O_RDWR); 326 fd_capsule = open(capsule_name, O_RDONLY); 328 perror("Can not open capsule file...");
|
/linux-master/tools/net/ynl/ |
H A D | ynl-gen-rst.py | 391 with open(filename, "r", encoding="utf-8") as spec_file: 402 with open(filename, "w", encoding="utf-8") as rst_file:
|
H A D | ynl-gen-c.py | 1227 with open(self._out_file, 'w+') as out_file:
|
/linux-master/tools/net/ynl/lib/ |
H A D | nlspec.py | 426 with open(spec_path, "r") as stream: 450 with open(schema_path, "r") as stream:
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 1510 obj->efile.fd = open(obj->path, O_RDONLY | O_CLOEXEC); 1516 pr_warn("elf: failed to open %s: %s\n", obj->path, cp); 1524 pr_warn("elf: failed to open %s as ELF file: %s\n", obj->path, elf_errmsg(-1)); 2240 pr_warn("failed to open system Kconfig\n"); 2268 pr_warn("failed to open in-memory Kconfig: %d\n", err); 4762 pr_warn("failed to open %s: %d. No procfs support?\n", file, 4901 bpffs_fd = open(bpffs_path, O_DIRECTORY, O_RDWR); 4904 __pr(level, "object '%s': failed (%d) to open BPF FS mount at '%s'%s\n", 8048 pr_warn("failed to open /proc/kallsyms: %d\n", err); 10588 pr_warn("failed to open lin [all...] |
/linux-master/tools/include/nolibc/ |
H A D | sys.h | 746 * int open(const char *path, int flags[, mode_t mode]); 762 int open(const char *path, int flags, ...) function
|
/linux-master/tools/bpf/bpftool/ |
H A D | prog.c | 748 fd = open(filepath, O_WRONLY | O_CREAT | O_TRUNC, 0600); 750 p_err("can't open file %s: %s", filepath, 1139 p_err("failed to open %s: %s", fname, strerror(errno)); 1242 p_err("failed to open %s: %s", fname, strerror(errno)); 1692 p_err("failed to open object file"); 1920 p_err("failed to open object file"); 2388 p_err("failed to open and/or load BPF object");
|