Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 508) sorted by relevance

12345678910>>...21

/tools/testing/selftests/wireguard/qemu/
A Dinit.c66 fd = open("/dev/random", O_WRONLY); in seed_rng()
114 fd = open("/proc/sys/kernel/printk", O_WRONLY); in enable_logging()
120 fd = open("/proc/sys/debug/exception-trace", O_WRONLY); in enable_logging()
179 fd = open("/proc/cmdline", O_RDONLY); in launch_tests()
195 fd = open(success_dev, O_WRONLY); in launch_tests()
219 int fd = open("/dev/console", O_RDWR); in ensure_console()
238 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in clear_leaks()
250 fd = open("/sys/kernel/debug/kmemleak", O_WRONLY); in check_leaks()
258 fd = open("/sys/kernel/debug/kmemleak", O_RDONLY); in check_leaks()
/tools/testing/selftests/drivers/sdsi/
A Dsdsi_test.py29 with open(file, mode='rb') as f:
49 f = open(file, "r")
121 f = open(folder + "provision_cap", "wb", 0)
128 f = open(folder + "provision_akc", "wb", 0)
141 f = open(folder + "registers", "rb")
159 f = open(node, 'wb', 0)
173 f = open(node, 'wb', 0)
174 g = open(node, 'wb', 0)
176 with open(driver_dir + 'unbind', 'w') as k:
211 with open(driver_dir + 'unbind', 'w') as k:
[all …]
/tools/testing/selftests/powerpc/papr_sysparm/
A Dpapr_sysparm.c15 const int devfd = open(DEVPATH, O_RDONLY); in open_close()
31 const int devfd = open(DEVPATH, O_RDONLY); in get_splpar()
50 const int devfd = open(DEVPATH, O_RDONLY); in get_bad_parameter()
73 const int devfd = open(DEVPATH, O_RDWR); in check_efault_common()
104 const int devfd = open(DEVPATH, O_RDWR); in set_hmc0()
126 const int devfd = open(DEVPATH, O_RDONLY); in set_with_ro_fd()
/tools/testing/kunit/
A Dkunit_tool_test.py102 with open(log_path) as file:
113 with open(log_path) as file:
163 with open(failed_log) as file:
170 with open(empty_log) as file:
212 with open(crash_log) as file:
322 with open(ktap_log) as file:
331 with open(ktap_log) as file:
337 with open(ktap_log) as file:
445 with open(other, 'w') as f:
458 with open(other, 'w') as f:
[all …]
/tools/testing/selftests/landlock/
A Dbase_test.c227 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
250 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
284 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST()
295 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST()
404 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
434 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
444 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
447 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
467 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
480 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST()
[all …]
/tools/testing/selftests/efivarfs/
A Dopen-unlink.c20 fd = open(path, O_RDONLY); in set_immutable()
51 fd = open(path, O_RDONLY); in get_immutable()
89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
115 fd = open(path, O_RDONLY); in main()
/tools/testing/selftests/proc/
A Dfd-002-posix-eq.c32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
36 fd1 = open(buf, O_RDONLY); in main()
40 fd2 = open(buf, O_RDONLY); in main()
A Dsetns-dcache.c95 nsfd = open(buf, O_RDONLY); in main()
102 (void)open("/proc/net/unix", O_RDONLY); in main()
116 fd = open("/proc/net/unix", O_RDONLY); in main()
A Dsetns-sysvipc.c94 nsfd = open(buf, O_RDONLY); in main()
101 (void)open("/proc/sysvipc/shm", O_RDONLY); in main()
115 fd = open("/proc/sysvipc/shm", O_RDONLY); in main()
/tools/testing/selftests/thermal/intel/workload_hint/
A Dworkload_hint_test.c33 fd = open(WORKLOAD_ENABLE_ATTRIBUTE, O_RDWR); in workload_hint_exit()
71 fd = open(WORKLOAD_NOTIFICATION_DELAY_ATTRIBUTE, O_RDWR); in main()
93 fd = open(WORKLOAD_ENABLE_ATTRIBUTE, O_RDWR); in main()
109 fd = open(WORKLOAD_TYPE_INDEX_ATTRIBUTE, O_RDONLY); in main()
/tools/testing/selftests/kho/
A Dinit.c35 fd = open(KHO_FINILIZE, O_RDWR); in kho_enable()
60 fd = open("/proc/cmdline", O_RDONLY); in kexec_load()
71 fd = open(KERNEL_IMAGE, O_RDONLY); in kexec_load()
/tools/testing/selftests/net/packetdrill/
A Dtcp_sendfile_sendfile-simple.pkt2 // Simplest possible test of open() and then sendfile().
4 // to be all zeroes) and then open() the file, then use sendfile()
24 +0 open("/tmp/testfile", O_RDONLY) = 5
/tools/cgroup/
A Diocost_coef_gen.py102 with open(outfile.name, 'r') as f:
110 with open(elevator_path, 'w') as f:
112 with open(nomerges_path, 'w') as f:
142 with open(elevator_path, 'r') as f:
144 with open(nomerges_path, 'r') as f:
149 with open(elevator_path, 'w') as f:
151 with open(nomerges_path, 'w') as f:
/tools/testing/selftests/powerpc/papr_vpd/
A Dpapr_vpd.c18 const int devfd = open(DEVPATH, O_RDONLY); in dev_papr_vpd_open_close()
31 const int devfd = open(DEVPATH, O_RDONLY); in dev_papr_vpd_get_handle_all()
70 const int devfd = open(DEVPATH, O_RDONLY); in dev_papr_vpd_get_handle_byte_at_a_time()
111 const int devfd = open(DEVPATH, O_RDONLY); in dev_papr_vpd_unterm_loc_code()
137 const int devfd = open(DEVPATH, O_RDONLY); in dev_papr_vpd_null_handle()
156 const int devfd = open(DEVPATH, O_RDONLY); in papr_vpd_close_handle_without_reading()
179 const int devfd = open(DEVPATH, O_RDONLY); in papr_vpd_reread()
262 const int devfd = open(DEVPATH, O_RDONLY); in papr_vpd_system_loc_code()
/tools/testing/selftests/thermal/intel/power_floor/
A Dpower_floor_test.c22 fd = open(POWER_FLOOR_ENABLE_ATTRIBUTE, O_RDWR); in power_floor_exit()
52 fd = open(POWER_FLOOR_ENABLE_ATTRIBUTE, O_RDWR); in main()
68 fd = open(POWER_FLOOR_STATUS_ATTRIBUTE, O_RDONLY); in main()
/tools/usb/usbip/libsrc/
A Dusbip_host_common.h25 int (*open)(struct usbip_host_driver *hdriver); member
57 if (!hdriver->ops.open) in usbip_driver_open()
59 return hdriver->ops.open(hdriver); in usbip_driver_open()
/tools/testing/selftests/filesystems/
A Dkernfs_test.c18 fd = open("/sys/kernel/warn_count", O_RDONLY | O_CLOEXEC); in TEST()
30 fd = open("/sys/kernel/warn_count", O_RDONLY | O_CLOEXEC); in TEST()
/tools/testing/selftests/user_events/
A Ddyn_test.c26 int fd = open(abi_file, O_RDWR); in event_delete()
44 int fd = open(enable_file, O_RDONLY); in wait_for_delete()
85 int fd = open(dyn_file, O_RDWR | O_APPEND); in parse_dyn()
109 int fd = open(abi_file, O_RDWR); in parse_abi()
149 int fd = open(abi_file, O_RDWR); in check_match()
/tools/testing/selftests/devices/probe/
A Dtest_discoverable_devices.py64 with open(os.path.join(sysfs_dev_dir, "uevent")) as f:
80 with open(os.path.join(sysfs_dev_dir, "uevent")) as f:
89 with open(os.path.join(sysfs_dev_dir, "firmware_node", "uid")) as f:
95 with open(os.path.join(sysfs_dev_dir, "uevent")) as f:
101 with open(os.path.join(sysfs_dev_dir, "uevent")) as f:
299 with open(platform_compatible_file) as f:
307 with open(vendor_dmi_file) as f:
309 with open(product_dmi_file) as f:
320 with open(yaml_file) as f:
/tools/testing/selftests/bpf/prog_tests/
A Dfs_kfuncs.c22 fd = open(testfile, O_CREAT | O_RDONLY, 0644); in test_get_xattr()
51 fd = open(testfile, O_RDONLY, 0644); in test_get_xattr()
120 fd = open(testfile, O_CREAT | O_RDONLY, 0644); in test_set_remove_xattr()
209 fd = open(testfile, O_CREAT | O_RDWR, 0644); in test_fsverity()
220 fd = open(testfile, O_RDONLY, 0644); in test_fsverity()
259 fd = open(testfile, O_RDONLY); in test_fsverity()
/tools/laptop/freefall/
A Dfreefall.c42 int fd = open(unload_heads_path, O_RDONLY); in valid_disk()
56 int fd = open(path, O_RDWR); in write_int()
125 fd = open("/dev/freefall", O_RDONLY); in main()
/tools/testing/selftests/bpf/
A Dcgroup_helpers.c72 fd = open(path, O_RDONLY); in __enable_controllers()
93 cfd = open(path, O_RDWR); in __enable_controllers()
136 fd = open(file_path, O_RDWR); in __write_cgroup_file()
260 fd = open(cgroup_procs_path, O_WRONLY); in join_cgroup_from_top()
388 fd = open(CGROUP_MOUNT_PATH, O_RDONLY); in get_root_cgroup()
436 fd = open(cgroup_path, O_RDONLY); in create_and_get_cgroup()
605 fd = open(cgroup_classid_path, O_WRONLY); in set_classid()
730 return open(cgroup_workdir, O_RDONLY); in open_classid()
A Dtest_cpp.cpp25 int open(const struct bpf_object_open_opts *opts = nullptr) in open() function in Skeleton
32 skel = T::open(opts); in open()
66 err = skel.open(&opts); in try_skeleton_template()
/tools/testing/selftests/sched_ext/
A Dutil.c19 fd = open(path, O_RDONLY); in read_text()
38 fd = open(path, O_WRONLY | O_APPEND); in write_text()
/tools/testing/selftests/timers/
A Dclocksource-switch.c47 fd = open("/sys/devices/system/clocksource/clocksource0/available_clocksource", O_RDONLY); in get_clocksources()
79 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_RDONLY); in get_cur_clocksource()
91 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_WRONLY); in change_clocksource()

Completed in 31 milliseconds

12345678910>>...21