/external/ltp/testcases/kernel/mem/ksm/ |
D | ksm06.c | 102 SAFE_FILE_SCANF(NULL, PATH_KSM "run", "%d", &run); in setup() 103 SAFE_FILE_SCANF(NULL, PATH_KSM "merge_across_nodes", in setup() 105 SAFE_FILE_SCANF(NULL, PATH_KSM "sleep_millisecs", in setup()
|
D | ksm01.c | 119 SAFE_FILE_SCANF(NULL, PATH_KSM "merge_across_nodes", in setup()
|
D | ksm03.c | 111 SAFE_FILE_SCANF(NULL, PATH_KSM "merge_across_nodes", in setup()
|
D | ksm05.c | 142 SAFE_FILE_SCANF(NULL, PATH_KSM "run", "%d", &ksm_run_orig); in setup()
|
D | ksm02.c | 144 SAFE_FILE_SCANF(NULL, PATH_KSM "merge_across_nodes", in setup()
|
/external/ltp/testcases/kernel/containers/userns/ |
D | userns01.c | 73 SAFE_FILE_SCANF(NULL, "/proc/sys/kernel/cap_last_cap", "%d", &last_cap); in child_fn1() 96 SAFE_FILE_SCANF(NULL, OVERFLOWUIDPATH, "%ld", &overflowuid); in setup() 97 SAFE_FILE_SCANF(NULL, OVERFLOWGIDPATH, "%ld", &overflowgid); in setup()
|
D | userns03.c | 96 SAFE_FILE_SCANF(NULL, "/proc/self/uid_map", "%d %d %d", &idinsidens, in child_fn2() 111 SAFE_FILE_SCANF(NULL, cpid1uidpath, "%d %d %d", &idinsidens, in child_fn2() 125 SAFE_FILE_SCANF(NULL, "/proc/self/gid_map", "%d %d %d", in child_fn2() 135 SAFE_FILE_SCANF(NULL, cpid1gidpath, "%d %d %d", &idinsidens, in child_fn2()
|
D | userns06_capcheck.c | 55 SAFE_FILE_SCANF(NULL, "/proc/sys/kernel/cap_last_cap", "%d", &last_cap); in main()
|
/external/ltp/lib/ |
D | tst_pid.c | 34 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_()
|
D | tst_cpu.c | 64 SAFE_FILE_SCANF(NULL, KERNEL_MAX, "%ld", &ncpus_max); in tst_ncpus_max()
|
D | tst_virt.c | 58 SAFE_FILE_SCANF(NULL, "/sys/hypervisor/type", "%3s", in is_xen()
|
/external/ltp/testcases/kernel/device-drivers/cpufreq/ |
D | cpufreq_boost.c | 94 SAFE_FILE_SCANF(NULL, cdrv[i].file, "%d", &boost_value); in setup() 97 SAFE_FILE_SCANF(NULL, governor, "%s", governor_name); in setup() 146 SAFE_FILE_SCANF(cleanup, maxspeed, "%d", &max_freq_khz); in test_run()
|
/external/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 236 SAFE_FILE_SCANF(cleanup, PATH_KSM "run", "%d", &ksm_run_orig); in testoom() 250 SAFE_FILE_SCANF(NULL, PATH_KSM "max_page_sharing", in save_max_page_sharing() 267 SAFE_FILE_SCANF(cleanup, fullpath, "%ld", &actual_val); in check() 285 SAFE_FILE_SCANF(cleanup, PATH_KSM "pages_shared", in wait_ksmd_done() 288 SAFE_FILE_SCANF(cleanup, PATH_KSM "pages_sharing", in wait_ksmd_done() 291 SAFE_FILE_SCANF(cleanup, PATH_KSM "pages_volatile", in wait_ksmd_done() 294 SAFE_FILE_SCANF(cleanup, PATH_KSM "pages_unshared", in wait_ksmd_done() 715 SAFE_FILE_SCANF(cleanup, path1, "%ld", &online); in gather_node_cpus() 954 SAFE_FILE_SCANF(NULL, path, "%ld", &tune); in get_sys_tune() 963 SAFE_FILE_SCANF(cleanup, PATH_SHMMAX, "%ld", &shmmax); in update_shm_size()
|
/external/ltp/testcases/kernel/device-drivers/acpi/ |
D | ltp_acpi.c | 64 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res); in tc_acpi_str() 134 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res); in test_run()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat04.c | 132 SAFE_FILE_SCANF(NULL, PATH_SHMMAX, "%ld", &orig_shmmax); in setup() 134 SAFE_FILE_SCANF(NULL, PATH_SHMMAX, "%ld", &new_shmmax); in setup()
|
/external/ltp/include/ |
D | tst_safe_file_ops.h | 29 #define SAFE_FILE_SCANF(path, fmt, ...) \ macro
|
/external/ltp/testcases/kernel/syscalls/futex/ |
D | futex_utils.h | 45 SAFE_FILE_SCANF(NULL, name, "%*i %*s %c", &thread_state); in wait_for_threads()
|
/external/ltp/include/old/ |
D | old_safe_file_ops.h | 37 #define SAFE_FILE_SCANF(cleanup_fn, path, fmt, ...) \ macro
|
/external/ltp/testcases/kernel/syscalls/wait4/ |
D | wait402.c | 45 SAFE_FILE_SCANF(NULL, "/proc/sys/kernel/pid_max", "%ld", &pid_max); in get_pid_max()
|
/external/ltp/testcases/kernel/device-drivers/block/block_dev_user/ |
D | block_dev.c | 90 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &pass); in test_run()
|
/external/ltp/testcases/kernel/security/cap_bound/ |
D | cap_bounds_r.c | 50 SAFE_FILE_SCANF(NULL, PROC_CAP_LAST, "%d", &cap_last_cap); in main()
|
/external/ltp/testcases/kernel/device-drivers/uaccess/ |
D | uaccess.c | 53 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res); in set_ptr_to_sysfs()
|
/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise06.c | 66 SAFE_FILE_SCANF("/proc/self/stat", in get_page_fault_num()
|
/external/ltp/testcases/kernel/syscalls/fork/ |
D | fork13.c | 138 SAFE_FILE_SCANF(NULL, PID_MAX_PATH, "%lu", &pid_max); in setup()
|
/external/ltp/testcases/kernel/device-drivers/pci/tpci_user/ |
D | tpci.c | 71 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res); in run_pci_testcases()
|