Lines Matching +full:vm +full:- +full:pointer
2 * proc01.c - Tests Linux /proc file reading.
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
98 {"read", "/proc/self/task/[0-9]*/mem", EIO},
103 {"read", "/proc/self/task/[0-9]*/attr/*", EINVAL},
104 {"read", "/proc/self/task/[0-9]*/attr/smack/*", EINVAL},
105 {"read", "/proc/self/task/[0-9]*/attr/selinux/*", EINVAL},
106 {"read", "/proc/self/task/[0-9]*/attr/apparmor/*", EINVAL},
108 {"read", "/proc/self/task/[0-9]*/ns/*", EINVAL},
116 {"read", "/proc/self/net/rpc/use-gss-proxy", EAGAIN},
118 {"read", "/proc/sys/vm/nr_hugepages", EOPNOTSUPP},
119 {"read", "/proc/sys/vm/nr_overcommit_hugepages", EOPNOTSUPP},
120 {"read", "/proc/sys/vm/nr_hugepages_mempolicy", EOPNOTSUPP},
139 "/proc/self/task/[0-9]*/attr/*",
140 "/proc/self/task/[0-9]*/attr/selinux/*",
203 printf(" -b x read byte count\n"); in help()
204 printf(" -m x max megabytes to read from single file\n"); in help()
205 printf(" -q read .../irq/... entries\n"); in help()
206 printf(" -r x proc pathname\n"); in help()
207 printf(" -v verbose mode\n"); in help()
211 * add the -m option whose parameter is the
229 * On a 2.2.13-SuSE kernel, "cat /proc/tty/driver/serial" would fail
237 * Now, there's a -b option to this test, so you can try your luck. --SF
245 DIR *dir = NULL; /* pointer to a directory */ in readproc()
246 struct dirent *dir_ent; /* pointer to directory entries */ in readproc()
306 if (strcmp(dir_ent->d_name, ".") && in readproc()
307 strcmp(dir_ent->d_name, "..") && in readproc()
308 strcmp(dir_ent->d_name, "kcore") && in readproc()
309 (fnmatch("[0-9]*", dir_ent->d_name, in readproc()
315 dir_ent->d_name); in readproc()
321 "%s/%s", obj, dir_ent->d_name); in readproc()
365 /* Skip write-only files. */ in readproc()
368 tst_resm(TINFO, "%s: is write-only.", obj); in readproc()
420 tst_resm(TINFO, "%s: reached maxmbytes (-m)", in readproc()
453 "Invalid arg for -b (max: %u): %s", in main()