/third_party/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create03.c | 91 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/ |
D | fanotify21.c | 72 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/ |
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()
|
/third_party/ltp/include/ |
D | tst_safe_file_ops.h | 21 #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/ |
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()
|
/third_party/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise06.c | 194 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()
|
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()
|
/third_party/ltp/testcases/kernel/syscalls/getuid/ |
D | getuid03.c | 25 SAFE_FILE_LINES_SCANF("/proc/self/status", "Uid: %ld", &uid); in verify_getuid()
|
/third_party/ltp/testcases/kernel/syscalls/getrusage/ |
D | getrusage03.h | 23 SAFE_FILE_LINES_SCANF("/proc/self/status", "VmSwap: %lu", &vmswap_size); in consume_mb()
|
/third_party/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 271 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/ |
D | readahead02.c | 104 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/ |
D | old_safe_file_ops.h | 45 #define SAFE_FILE_LINES_SCANF(cleanup_fn, path, fmt, ...) \ macro
|
/third_party/ltp/lib/ |
D | tst_kvercmp.c | 156 SAFE_FILE_LINES_SCANF(NULL, OSRELEASE_PATH, "ID=%s", distname); in tst_kvcmp_distname()
|
/third_party/ltp/testcases/kernel/syscalls/add_key/ |
D | add_key05.c | 65 SAFE_FILE_LINES_SCANF("/proc/key-users", fmt, &val[0], &val[1], &val[2], &val[3]); in parse_proc_key_users()
|