/third_party/ltp/lib/ |
D | tst_pid.c | 43 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_()
|
D | tst_fips.c | 19 SAFE_FILE_SCANF(PATH_FIPS, "%d", &fips); in tst_fips_enabled()
|
/third_party/ltp/testcases/kernel/device-drivers/zram/ |
D | zram03.c | 107 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/ |
D | ksm06.c | 68 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()
|
D | ksm01.c | 82 SAFE_FILE_SCANF(PATH_KSM "merge_across_nodes", in setup()
|
/third_party/ltp/testcases/kernel/syscalls/clone/ |
D | clone09.c | 38 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/ |
D | userns01.c | 72 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()
|
D | userns03.c | 95 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/ |
D | ltp_acpi.c | 65 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/ |
D | ksm_helper.c | 18 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/ |
D | splice.h | 30 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/ |
D | hugemmap05.c | 208 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/ |
D | test_zero_hugepage.c | 18 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test() 25 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test()
|
D | test20.c | 27 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test() 34 SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val); in do_test()
|
D | test14.c | 16 SAFE_FILE_SCANF("foo", "%i", &i); in cleanup()
|
/third_party/ltp/testcases/kernel/device-drivers/cpufreq/ |
D | cpufreq_boost.c | 114 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/ |
D | fanotify17.c | 228 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/ |
D | hugeshmat04.c | 91 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/ |
D | move_pages12.c | 288 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/ |
D | mem.c | 236 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/ |
D | cve-2015-3290.c | 440 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/ |
D | madvise09.c | 190 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/ |
D | getppid01.c | 19 SAFE_FILE_SCANF("/proc/sys/kernel/pid_max", "%d\n", &pid_max); in verify_getppid()
|
/third_party/ltp/testcases/kernel/syscalls/getpid/ |
D | getpid01.c | 20 SAFE_FILE_SCANF("/proc/sys/kernel/pid_max", "%d\n", &pid_max); in verify_getpid()
|
/third_party/ltp/testcases/kernel/syscalls/ioctl/ |
D | ioctl07.c | 27 SAFE_FILE_SCANF("/proc/sys/kernel/random/entropy_avail", "%d", &pcnt); in verify_ioctl()
|