Home
last modified time | relevance | path

Searched refs:SAFE_FILE_LINES_SCANF (Results 1 – 12 of 12) sorted by relevance

/external/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c92 SAFE_FILE_LINES_SCANF(MEMINFO_PATH, DEFAULT_HPS, &hps); in test_def_pagesize()
132 SAFE_FILE_LINES_SCANF(MEMINFO_PATH, FREE_HP, &free_pages); in test_max_hugepages()
133 SAFE_FILE_LINES_SCANF(MEMINFO_PATH, DEFAULT_HPS, &hps); in test_max_hugepages()
204 SAFE_FILE_LINES_SCANF(MEMINFO_PATH, FREE_HP, &free_pages); in setup()
208 SAFE_FILE_LINES_SCANF(TOTAL_HP_PATH, "%ld", &og_total_pages); in setup()
219 SAFE_FILE_LINES_SCANF(TOTAL_HP_PATH, "%ld", &total_pages); in setup()
244 SAFE_FILE_LINES_SCANF(TOTAL_HP_PATH, "%ld", &total_pages); in cleanup()
/external/ltp/testcases/kernel/syscalls/mlock2/
Dmlock203.c31 SAFE_FILE_LINES_SCANF("/proc/self/status", "VmLck: %lu", &bsize); in verify_mlock2()
45 SAFE_FILE_LINES_SCANF("/proc/self/status", "VmLck: %lu", &asize1); in verify_mlock2()
60 SAFE_FILE_LINES_SCANF("/proc/self/status", "VmLck: %lu", &asize2); in verify_mlock2()
Dmlock201.c101 SAFE_FILE_LINES_SCANF("/proc/self/status", "VmLck: %ld", &bsize); in verify_mlock2()
105 SAFE_FILE_LINES_SCANF("/proc/self/status", "VmLck: %ld", &asize); in verify_mlock2()
/external/ltp/lib/newlib_tests/
Dtst_safe_fileops.c15 SAFE_FILE_LINES_SCANF("/proc/meminfo", "MemFree: %ld", &free); in do_test()
22 SAFE_FILE_LINES_SCANF("/proc/stat", "non-existent %ld", &dummy); in do_test()
/external/ltp/include/
Dtst_safe_file_ops.h37 #define SAFE_FILE_LINES_SCANF(path, fmt, ...) \ macro
43 SAFE_FILE_LINES_SCANF("/proc/meminfo", item " %ld", \
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c125 SAFE_FILE_LINES_SCANF("/proc/meminfo", "SwapCached: %ld", in test_advice_willneed()
136 SAFE_FILE_LINES_SCANF("/proc/meminfo", "SwapCached: %ld", in test_advice_willneed()
Dmadvise09.c82 SAFE_FILE_LINES_SCANF("/proc/self/status", "VmSwap: %d", &swapped); in memory_pressure_child()
317 SAFE_FILE_LINES_SCANF("/proc/meminfo", "SwapTotal: %ld", &swap_total); in setup()
/external/ltp/include/old/
Dold_safe_file_ops.h45 #define SAFE_FILE_LINES_SCANF(cleanup_fn, path, fmt, ...) \ macro
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c260 SAFE_FILE_LINES_SCANF(PATH_MEMINFO, "Hugepagesize: %d", &hpsz); in setup()
262 SAFE_FILE_LINES_SCANF(PATH_MEMINFO, "MemFree: %ld", &memfree); in setup()
/external/ltp/testcases/kernel/syscalls/readahead/
Dreadahead02.c109 SAFE_FILE_LINES_SCANF(PROC_IO_FNAME, "read_bytes: %lu", &ret); in get_bytes_read()
118 SAFE_FILE_LINES_SCANF(MEMINFO_FNAME, "Cached: %lu", &ret); in get_cached_size()
/external/ltp/testcases/kernel/sched/eas/
Dutil.c135 return SAFE_FILE_LINES_SCANF(path, "%u", cap); in read_capacity_sysfs()
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl07.c44 SAFE_FILE_LINES_SCANF(PROC_STATUS, "CapAmb:%s", CapAmb); in check_proc_capamb()