Lines Matching +full:baremetal +full:- +full:test
2 * proc01.c - Tests Linux /proc file reading.
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
46 #include "test.h"
77 /* Those are known failures for 2.6.18 baremetal kernel and Xen dom0
79 like if SELinux is disabled, the test may still fail on some other
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},
132 * Test macro to indicate that SELinux libraries and headers are
139 "/proc/self/task/[0-9]*/attr/*",
140 "/proc/self/task/[0-9]*/attr/selinux/*",
146 the test while being read. */
153 * Verify expected failures, and then let the test to continue.
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
239 * It's more fun to run this test it as root, as all the files will be accessible!
281 * test. 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()
318 /* Recursively call this routine to test the 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()
467 TEST(readproc(procpath)); in main()