Lines Matching full:proc
2 * proc01.c - Tests Linux /proc file reading.
63 static char *procpath = "/proc";
64 static const char selfpath[] = "/proc/self";
82 {"open", "/proc/acpi/event", EBUSY},
83 {"open", "/proc/sal/cpe/data", EBUSY},
84 {"open", "/proc/sal/cmc/data", EBUSY},
85 {"open", "/proc/sal/init/data", EBUSY},
86 {"open", "/proc/sal/mca/data", EBUSY},
87 {"open", "/proc/fs/nfsd/pool_stats", ENODEV},
88 {"read", "/proc/fs/nfsd/clients/*/ctl", EINVAL},
89 {"read", "/proc/acpi/event", EAGAIN},
90 {"read", "/proc/kmsg", EAGAIN},
91 {"read", "/proc/sal/cpe/event", EAGAIN},
92 {"read", "/proc/sal/cmc/event", EAGAIN},
93 {"read", "/proc/sal/init/event", EAGAIN},
94 {"read", "/proc/sal/mca/event", EAGAIN},
95 {"read", "/proc/xen/privcmd", EIO},
96 {"read", "/proc/xen/privcmd", EINVAL},
97 {"read", "/proc/self/mem", EIO},
98 {"read", "/proc/self/task/[0-9]*/mem", EIO},
99 {"read", "/proc/self/attr/*", EINVAL},
100 {"read", "/proc/self/attr/selinux/*", EINVAL},
101 {"read", "/proc/self/attr/smack/*", EINVAL},
102 {"read", "/proc/self/attr/apparmor/*", EINVAL},
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},
107 {"read", "/proc/self/ns/*", EINVAL},
108 {"read", "/proc/self/task/[0-9]*/ns/*", EINVAL},
109 {"read", "/proc/ppc64/rtas/error_log", EINVAL},
110 {"read", "/proc/powerpc/rtas/error_log", EINVAL},
111 {"read", "/proc/fs/nfsd/unlock_filesystem", EINVAL},
112 {"read", "/proc/fs/nfsd/unlock_ip", EINVAL},
113 {"read", "/proc/fs/nfsd/filehandle", EINVAL},
114 {"read", "/proc/fs/nfsd/.getfs", EINVAL},
115 {"read", "/proc/fs/nfsd/.getfd", EINVAL},
116 {"read", "/proc/self/net/rpc/use-gss-proxy", EAGAIN},
117 {"read", "/proc/sys/net/ipv6/conf/*/stable_secret", EIO},
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},
121 {"read", "/proc/pressure/*", EOPNOTSUPP},
137 "/proc/self/attr/*",
138 "/proc/self/attr/selinux/*",
139 "/proc/self/task/[0-9]*/attr/*",
140 "/proc/self/task/[0-9]*/attr/selinux/*",
148 "/proc/xen/xenbus",
206 printf(" -r x proc pathname\n"); in help()
228 * streamed fopen by standard open), I hit a real /proc bug.
229 * On a 2.2.13-SuSE kernel, "cat /proc/tty/driver/serial" would fail
230 * with EFAULT, while "cat /proc/tty/driver/serial > somefile" wouldn't.
234 * read count of 512 bytes adds /proc/tty/drivers to the list
235 * of broken proc files, while 64 bytes reads removes
236 * /proc/tty/driver/serial from the list. Interesting, isn't it?
241 * reading proc files might be also a good kernel latency killer.
266 /* Prevent loops, but read /proc/self. */ in readproc()
278 * Skip over the /proc/irq directory, unless the user in readproc()
283 if (!opt_readirq && !strcmp("/proc/irq", obj)) { in readproc()
302 * "/proc/<pid>" (unless this is our in readproc()