Home
last modified time | relevance | path

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

123

/external/ltp/testcases/kernel/mem/ksm/
Dksm06.c77 SAFE_FILE_SCANF(PATH_KSM "run", "%d", &run); in setup()
78 SAFE_FILE_SCANF(PATH_KSM "merge_across_nodes", in setup()
80 SAFE_FILE_SCANF(PATH_KSM "sleep_millisecs", in setup()
Dksm01.c82 SAFE_FILE_SCANF(PATH_KSM "merge_across_nodes", in setup()
Dksm03.c76 SAFE_FILE_SCANF(PATH_KSM "merge_across_nodes", in setup()
/external/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()
/external/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()
Duserns06_capcheck.c55 SAFE_FILE_SCANF(NULL, "/proc/sys/kernel/cap_last_cap", "%d", &last_cap); in main()
/external/ltp/testcases/kernel/sched/eas/
Dsugov_latency.c49 SAFE_FILE_SCANF(scaling_freq_file, "%d", &scaling_min_freq); in burn_fn()
58 SAFE_FILE_SCANF(scaling_freq_file, "%d", in burn_fn()
150 SAFE_FILE_SCANF(scaling_freq_file, "%d", &scaling_max_freq); in parse_results()
165 SAFE_FILE_SCANF(scaling_freq_file, "%d", &scaling_min_freq); in parse_results()
/external/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()
/external/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()
/external/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()
/external/ltp/lib/
Dtst_pid.c34 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &pid); in tst_get_unused_pid_()
58 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &max_pids); in tst_get_free_pids_()
Dtst_cpu.c64 SAFE_FILE_SCANF(NULL, KERNEL_MAX, "%ld", &ncpus_max); in tst_ncpus_max()
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap05.c214 SAFE_FILE_SCANF(PATH_SHMMAX, "%llu", &shmmax); in setup()
222 SAFE_FILE_SCANF(path, "%ld", &nr_hugepages); in setup()
234 SAFE_FILE_SCANF(pathover, "%ld", &nr_overcommit_hugepages); in setup()
273 SAFE_FILE_SCANF(path, "%ld", &act_val); in checksys()
/external/ltp/testcases/kernel/device-drivers/cpufreq/
Dcpufreq_boost.c111 SAFE_FILE_SCANF(NULL, cdrv[i].file, "%d", &boost_value); in setup()
121 SAFE_FILE_SCANF(NULL, governor, "%s", governor_name); in setup()
170 SAFE_FILE_SCANF(cleanup, maxspeed, "%d", &max_freq_khz); in test_run()
/external/ltp/testcases/kernel/device-drivers/zram/
Dzram03.c184 SAFE_FILE_SCANF(cleanup, filename, "%s", value); in print()
192 SAFE_FILE_SCANF(cleanup, PATH_ZRAM_STAT, "%s %*s %*s %*s %s", in print_stat()
205 SAFE_FILE_SCANF(cleanup, PATH_ZRAM_MM_STAT, "%s %s %s %*s %*s %s", in print_mm_stat()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat04.c90 SAFE_FILE_SCANF(PATH_SHMMAX, "%ld", &orig_shmmax); in setup()
92 SAFE_FILE_SCANF(PATH_SHMMAX, "%ld", &new_shmmax); in setup()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c277 SAFE_FILE_SCANF(path_hugepages_node1, in setup()
287 SAFE_FILE_SCANF(path_hugepages_node2, in setup()
299 SAFE_FILE_SCANF(PATH_NR_HUGEPAGES, "%ld", &orig_hugepages); in setup()
/external/ltp/lib/newlib_tests/
Dtest14.c16 SAFE_FILE_SCANF("foo", "%i", &i); in cleanup()
/external/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()
/external/ltp/testcases/kernel/syscalls/ioctl/
Dioctl07.c31 SAFE_FILE_SCANF("/proc/sys/kernel/random/entropy_avail", "%d", &pcnt); in verify_ioctl()
/external/ltp/testcases/kernel/sched/autogroup/
Dautogroup01.c67 SAFE_FILE_SCANF(PATH_AUTOGROUP, "%d", &orig_autogroup); in setup()
/external/ltp/testcases/kernel/syscalls/futex/
Dfutex_utils.h45 SAFE_FILE_SCANF(NULL, name, "%*i %*s %c", &thread_state); in wait_for_threads()
/external/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()
/external/ltp/testcases/kernel/syscalls/wait4/
Dwait402.c45 SAFE_FILE_SCANF(NULL, "/proc/sys/kernel/pid_max", "%ld", &pid_max); in get_pid_max()

123