Home
last modified time | relevance | path

Searched refs:SAFE_FILE_SCANF (Results 1 – 25 of 82) sorted by relevance

1234

/third_party/ltp/lib/
Dtst_pid.c43 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &pid); in tst_get_unused_pid_()
85 SAFE_FILE_SCANF(cleanup_fn, path, "%s", max_pid_value); in read_session_pids_limit()
87 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &max_pids); in read_session_pids_limit()
131 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &max_pids); in tst_get_free_pids_()
Dtst_fips.c19 SAFE_FILE_SCANF(PATH_FIPS, "%d", &fips); in tst_fips_enabled()
/third_party/ltp/testcases/kernel/device-drivers/zram/
Dzram03.c107 SAFE_FILE_SCANF(filename, "%s", value); in print()
117 SAFE_FILE_SCANF(zram_stat_path, "%s %*s %*s %*s %s", nread_val, nwrite_val); in print_stat()
129 SAFE_FILE_SCANF(zram_mm_stat_path, "%s %s %s %*s %*s %s", in print_mm_stat()
183 SAFE_FILE_SCANF(HOT_ADD_PATH, "%d", &dev_num); in setup()
219 SAFE_FILE_SCANF(zramctl_log_path, "/dev/zram%d", &dev_num); in setup()
/third_party/ltp/testcases/kernel/mem/ksm/
Dksm06.c68 SAFE_FILE_SCANF(PATH_KSM "run", "%d", &run); in setup()
69 SAFE_FILE_SCANF(PATH_KSM "merge_across_nodes", in setup()
71 SAFE_FILE_SCANF(PATH_KSM "sleep_millisecs", in setup()
Dksm01.c82 SAFE_FILE_SCANF(PATH_KSM "merge_across_nodes", in setup()
/third_party/ltp/testcases/kernel/syscalls/clone/
Dclone09.c38 SAFE_FILE_SCANF(sysctl_path, "%d", &sysctl_net_new); in newnet()
62 SAFE_FILE_SCANF(sysctl_path, "%d", &sysctl_net); in do_test()
73 SAFE_FILE_SCANF(sysctl_path_def, "%d", &def_val); in do_test()
/third_party/ltp/testcases/kernel/containers/userns/
Duserns01.c72 SAFE_FILE_SCANF(NULL, "/proc/sys/kernel/cap_last_cap", "%d", &last_cap); in child_fn1()
95 SAFE_FILE_SCANF(NULL, OVERFLOWUIDPATH, "%ld", &overflowuid); in setup()
96 SAFE_FILE_SCANF(NULL, OVERFLOWGIDPATH, "%ld", &overflowgid); in setup()
Duserns03.c95 SAFE_FILE_SCANF(NULL, "/proc/self/uid_map", "%d %d %d", &idinsidens, in child_fn2()
110 SAFE_FILE_SCANF(NULL, cpid1uidpath, "%d %d %d", &idinsidens, in child_fn2()
124 SAFE_FILE_SCANF(NULL, "/proc/self/gid_map", "%d %d %d", in child_fn2()
134 SAFE_FILE_SCANF(NULL, cpid1gidpath, "%d %d %d", &idinsidens, in child_fn2()
/third_party/ltp/testcases/kernel/device-drivers/acpi/
Dltp_acpi.c65 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res); in tc_acpi_str()
135 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res); in test_run()
161 SAFE_FILE_SCANF(cleanup, dev_acpi_disabled, "%d", &acpi_disabled); in main()
/third_party/ltp/testcases/kernel/lib/
Dksm_helper.c18 SAFE_FILE_SCANF(PATH_KSM "full_scans", "%lu", &full_scans); in wait_ksmd_full_scan()
33 SAFE_FILE_SCANF(PATH_KSM "full_scans", "%lu", &full_scans); in wait_ksmd_full_scan()
/third_party/ltp/testcases/kernel/syscalls/splice/
Dsplice.h30 SAFE_FILE_SCANF("/proc/sys/fs/pipe-max-size", "%d", &pipe_max_unpriv); in get_max_limit()
35 SAFE_FILE_SCANF("/proc/sys/fs/pipe-max-pages", "%d", &pipe_max_unpriv); in get_max_limit()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap05.c208 SAFE_FILE_SCANF(PATH_SHMMAX, "%llu", &shmmax); in setup()
218 SAFE_FILE_SCANF(path, "%lu", &hpages); in setup()
227 SAFE_FILE_SCANF(pathover, "%ld", &nr_overcommit_hugepages); in setup()
266 SAFE_FILE_SCANF(path, "%ld", &act_val); in checksys()
/third_party/ltp/lib/newlib_tests/
Dtest_zero_hugepage.c18 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test()
25 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test()
Dtest20.c27 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test()
34 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test()
Dtest14.c16 SAFE_FILE_SCANF("foo", "%i", &i); in cleanup()
/third_party/ltp/testcases/kernel/device-drivers/cpufreq/
Dcpufreq_boost.c114 SAFE_FILE_SCANF(NULL, cdrv[i].file, "%d", &boost_value); in setup()
124 SAFE_FILE_SCANF(NULL, governor, "%s", governor_name); in setup()
173 SAFE_FILE_SCANF(cleanup, maxspeed, "%d", &max_freq_khz); in test_run()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify17.c228 SAFE_FILE_SCANF(MAX_USERNS, "%d", &orig_max_userns); in setup()
239 SAFE_FILE_SCANF(GLOBAL_MAX_GROUPS, "%d", &max_groups); in setup()
240 SAFE_FILE_SCANF(GLOBAL_MAX_MARKS, "%d", &max_marks); in setup()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat04.c91 SAFE_FILE_SCANF(PATH_SHMMAX, "%ld", &orig_shmmax); in setup()
93 SAFE_FILE_SCANF(PATH_SHMMAX, "%ld", &new_shmmax); in setup()
/third_party/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c288 SAFE_FILE_SCANF(path_hugepages_node1, in setup()
298 SAFE_FILE_SCANF(path_hugepages_node2, in setup()
310 SAFE_FILE_SCANF(PATH_NR_HUGEPAGES, "%ld", &orig_hugepages); in setup()
/third_party/ltp/testcases/kernel/mem/lib/
Dmem.c236 SAFE_FILE_SCANF(PATH_KSM "run", "%d", &ksm_run_orig); in testoom()
251 SAFE_FILE_SCANF(fullpath, "%ld", &actual_val); in check()
623 SAFE_FILE_SCANF(path1, "%ld", &online); in gather_node_cpus()
727 SAFE_FILE_SCANF(path, "%ld", &tune); in get_sys_tune()
736 SAFE_FILE_SCANF(PATH_SHMMAX, "%zu", &shmmax); in update_shm_size()
/third_party/ltp/testcases/cve/
Dcve-2015-3290.c440 SAFE_FILE_SCANF("/proc/sys/kernel/perf_event_mlock_kb", in setup()
442 SAFE_FILE_SCANF("/proc/sys/kernel/perf_event_max_sample_rate", in setup()
/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise09.c190 SAFE_FILE_SCANF(limit_in_bytes_path, "%u", &old_limit); in child()
193 SAFE_FILE_SCANF(memsw_limit_in_bytes_path, "%u", &old_memsw_limit); in child()
/third_party/ltp/testcases/kernel/syscalls/getppid/
Dgetppid01.c19 SAFE_FILE_SCANF("/proc/sys/kernel/pid_max", "%d\n", &pid_max); in verify_getppid()
/third_party/ltp/testcases/kernel/syscalls/getpid/
Dgetpid01.c20 SAFE_FILE_SCANF("/proc/sys/kernel/pid_max", "%d\n", &pid_max); in verify_getpid()
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl07.c27 SAFE_FILE_SCANF("/proc/sys/kernel/random/entropy_avail", "%d", &pcnt); in verify_ioctl()

1234