Searched refs:SAFE_FILE_LINES_SCANF (Results 1 – 12 of 12) sorted by relevance
/external/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create03.c | 92 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/ |
D | mlock203.c | 31 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()
|
D | mlock201.c | 101 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/ |
D | tst_safe_fileops.c | 15 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/ |
D | tst_safe_file_ops.h | 37 #define SAFE_FILE_LINES_SCANF(path, fmt, ...) \ macro 43 SAFE_FILE_LINES_SCANF("/proc/meminfo", item " %ld", \
|
/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise06.c | 125 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()
|
D | madvise09.c | 82 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/ |
D | old_safe_file_ops.h | 45 #define SAFE_FILE_LINES_SCANF(cleanup_fn, path, fmt, ...) \ macro
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 260 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/ |
D | readahead02.c | 109 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/ |
D | util.c | 135 return SAFE_FILE_LINES_SCANF(path, "%u", cap); in read_capacity_sysfs()
|
/external/ltp/testcases/kernel/syscalls/prctl/ |
D | prctl07.c | 44 SAFE_FILE_LINES_SCANF(PROC_STATUS, "CapAmb:%s", CapAmb); in check_proc_capamb()
|