Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/syscalls/memfd_create/
Dmemfd_create03.c91 SAFE_FILE_LINES_SCANF(MEMINFO_PATH, DEFAULT_HPS, &hps); in test_def_pagesize()
131 SAFE_FILE_LINES_SCANF(MEMINFO_PATH, FREE_HP, &free_pages); in test_max_hugepages()
132 SAFE_FILE_LINES_SCANF(MEMINFO_PATH, DEFAULT_HPS, &hps); in test_max_hugepages()
203 SAFE_FILE_LINES_SCANF(MEMINFO_PATH, FREE_HP, &free_pages); in setup()
207 SAFE_FILE_LINES_SCANF(TOTAL_HP_PATH, "%ld", &og_total_pages); in setup()
218 SAFE_FILE_LINES_SCANF(TOTAL_HP_PATH, "%ld", &total_pages); in setup()
243 SAFE_FILE_LINES_SCANF(TOTAL_HP_PATH, "%ld", &total_pages); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify21.c72 SAFE_FILE_LINES_SCANF(fdinfo_path, "pos: %d", &pidfd_fdinfo->pos); in read_pidfd_fdinfo()
73 SAFE_FILE_LINES_SCANF(fdinfo_path, "flags: %d", &pidfd_fdinfo->flags); in read_pidfd_fdinfo()
74 SAFE_FILE_LINES_SCANF(fdinfo_path, "mnt_id: %d", &pidfd_fdinfo->mnt_id); in read_pidfd_fdinfo()
75 SAFE_FILE_LINES_SCANF(fdinfo_path, "Pid: %d", &pidfd_fdinfo->pid); in read_pidfd_fdinfo()
76 SAFE_FILE_LINES_SCANF(fdinfo_path, "NSpid: %d", &pidfd_fdinfo->ns_pid); in read_pidfd_fdinfo()
/third_party/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()
/third_party/ltp/include/
Dtst_safe_file_ops.h21 #define SAFE_FILE_LINES_SCANF(path, fmt, ...) \ macro
27 SAFE_FILE_LINES_SCANF("/proc/meminfo", item " %ld", \
35 SAFE_FILE_LINES_SCANF(tst_path_, item " %ld", \
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c194 SAFE_FILE_LINES_SCANF("/proc/meminfo", "SwapCached: %ld", in test_advice_willneed()
206 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()
/third_party/ltp/testcases/kernel/syscalls/getuid/
Dgetuid03.c25 SAFE_FILE_LINES_SCANF("/proc/self/status", "Uid: %ld", &uid); in verify_getuid()
/third_party/ltp/testcases/kernel/syscalls/getrusage/
Dgetrusage03.h23 SAFE_FILE_LINES_SCANF("/proc/self/status", "VmSwap: %lu", &vmswap_size); in consume_mb()
/third_party/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c271 SAFE_FILE_LINES_SCANF(PATH_MEMINFO, "Hugepagesize: %d", &hpsz); in setup()
273 SAFE_FILE_LINES_SCANF(PATH_MEMINFO, "MemFree: %ld", &memfree); in setup()
/third_party/ltp/testcases/kernel/syscalls/readahead/
Dreadahead02.c104 SAFE_FILE_LINES_SCANF(PROC_IO_FNAME, "read_bytes: %lu", &ret); in get_bytes_read()
113 SAFE_FILE_LINES_SCANF(MEMINFO_FNAME, "Cached: %lu", &ret); in get_cached_size()
/third_party/ltp/include/old/
Dold_safe_file_ops.h45 #define SAFE_FILE_LINES_SCANF(cleanup_fn, path, fmt, ...) \ macro
/third_party/ltp/lib/
Dtst_kvercmp.c156 SAFE_FILE_LINES_SCANF(NULL, OSRELEASE_PATH, "ID=%s", distname); in tst_kvcmp_distname()
/third_party/ltp/testcases/kernel/syscalls/add_key/
Dadd_key05.c65 SAFE_FILE_LINES_SCANF("/proc/key-users", fmt, &val[0], &val[1], &val[2], &val[3]); in parse_proc_key_users()