Home
last modified time | relevance | path

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

12

/external/ltp/testcases/kernel/mem/ksm/
Dksm06.c102 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()
Dksm01.c119 SAFE_FILE_SCANF(NULL, PATH_KSM "merge_across_nodes", in setup()
Dksm03.c111 SAFE_FILE_SCANF(NULL, PATH_KSM "merge_across_nodes", in setup()
Dksm05.c142 SAFE_FILE_SCANF(NULL, PATH_KSM "run", "%d", &ksm_run_orig); in setup()
Dksm02.c144 SAFE_FILE_SCANF(NULL, PATH_KSM "merge_across_nodes", in setup()
/external/ltp/testcases/kernel/containers/userns/
Duserns01.c73 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()
Duserns03.c96 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()
Duserns06_capcheck.c55 SAFE_FILE_SCANF(NULL, "/proc/sys/kernel/cap_last_cap", "%d", &last_cap); 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()
Dtst_virt.c58 SAFE_FILE_SCANF(NULL, "/sys/hypervisor/type", "%3s", in is_xen()
/external/ltp/testcases/kernel/device-drivers/cpufreq/
Dcpufreq_boost.c94 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/
Dmem.c236 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/
Dltp_acpi.c64 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/
Dhugeshmat04.c132 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/
Dtst_safe_file_ops.h29 #define SAFE_FILE_SCANF(path, fmt, ...) \ macro
/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/include/old/
Dold_safe_file_ops.h37 #define SAFE_FILE_SCANF(cleanup_fn, path, fmt, ...) \ macro
/external/ltp/testcases/kernel/syscalls/wait4/
Dwait402.c45 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/
Dblock_dev.c90 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &pass); in test_run()
/external/ltp/testcases/kernel/security/cap_bound/
Dcap_bounds_r.c50 SAFE_FILE_SCANF(NULL, PROC_CAP_LAST, "%d", &cap_last_cap); in main()
/external/ltp/testcases/kernel/device-drivers/uaccess/
Duaccess.c53 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res); in set_ptr_to_sysfs()
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c66 SAFE_FILE_SCANF("/proc/self/stat", in get_page_fault_num()
/external/ltp/testcases/kernel/syscalls/fork/
Dfork13.c138 SAFE_FILE_SCANF(NULL, PID_MAX_PATH, "%lu", &pid_max); in setup()
/external/ltp/testcases/kernel/device-drivers/pci/tpci_user/
Dtpci.c71 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res); in run_pci_testcases()

12