Searched defs:sysctl (Results 1 - 7 of 7) sorted by relevance

/external/ltp/testcases/kernel/syscalls/sysctl/
H A Dsysctl01.c25 * Testcase for testing the basic functionality of sysctl(2) system call.
27 * sysctl({CTL_KERN, KERN_* }, ...) and compares it with the known
52 #include <linux/sysctl.h>
61 static int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, function
130 TEST(sysctl(TC[i].name, TC[i].size, TC[i].oldval,
140 "sysctl(2) failed unexpectedly "
194 "This test needs a kernel that has sysctl syscall.");
H A Dsysctl03.c25 * Testcase to check that sysctl(2) sets errno to EPERM correctly.
28 * a. Call sysctl(2) as a root user, and attempt to write data
31 * b. Call sysctl(2) as a non-root user, and attempt to write data
36 * behavior of sysctl(2) isn't properly documented, as discussed in detail in
71 #include <linux/sysctl.h>
81 int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, function
127 TEST(sysctl(name, ARRAY_SIZE(name), 0, 0, osname, osnamelth));
130 tst_resm(TFAIL, "sysctl(2) succeeded unexpectedly");
157 TEST(sysctl(name, ARRAY_SIZE(name), 0, 0, osname, osnamelth));
209 "This test needs a kernel that has sysctl syscal
[all...]
H A Dsysctl04.c25 * Testcase to check that sysctl(2) sets errno to ENOTDIR
28 * 1. Call sysctl(2) with sc_nlen set to 0, and expect ENOTDIR to be set.
29 * 2. Call sysctl(2) with sc_nlen greater than CTL_MAXNAME, and expect
53 #include <linux/sysctl.h>
62 int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, function
110 TEST(sysctl(name, 0, osname, &osnamelth, 0, 0));
164 "This test needs a kernel that has sysctl syscall.");
H A Dsysctl05.c25 * Testcase to check that sysctl(2) sets errno to EFAULT
28 * 1. Call sysctl(2) with the address of sc_oldname outside the address
30 * 2. Call sysctl(2) with the address of sc_oldval outside the address
53 #include <linux/sysctl.h>
64 int sysctl(int *name, int nlen, void *oldval, size_t * oldlenp, function
120 TEST(sysctl(testcases[i].name, testcases[i].size,
125 tst_resm(TFAIL, "sysctl(2) returned unexpected "
136 tst_resm(TFAIL, "sysctl(2) returned unexpected "
140 tst_resm(TPASS, "sysctl(2) set errno correctly "
191 "This test needs a kernel that has sysctl syscal
[all...]
/external/valgrind/coregrind/m_syswrap/
H A Dsyswrap-xen.c565 PRE(sysctl) {
566 struct vki_xen_sysctl *sysctl = (struct vki_xen_sysctl *)ARG1; local
568 PRINT("__HYPERVISOR_sysctl ( %u )", sysctl->cmd);
578 if (!sysctl)
581 switch (sysctl->interface_version)
590 "__HYPERVISOR_sysctl", sysctl->interface_version);
596 (Addr)&sysctl->u._union._field, \
597 sizeof(sysctl->u._union._field))
601 switch (sysctl->cmd) {
610 if (sysctl
1667 struct vki_xen_sysctl *sysctl = (struct vki_xen_sysctl *)ARG1; local
[all...]
/external/valgrind/coregrind/
H A Dm_libcproc.c586 Int VG_(sysctl)(Int *name, UInt namelen, void *oldp, SizeT *oldlenp, void *newp, SizeT newlen) function
/external/autotest/client/bin/
H A Dutils.py495 def sysctl(key, value=None): function
496 """Generic implementation of sysctl, to read and write.
499 @param value: If not None, a value to write into the sysctl.
501 @return The single-line sysctl value as a string.
510 """(Very) partial implementation of sysctl, for kernel params"""
540 See https://www.kernel.org/doc/Documentation/sysctl/fs.txt
982 raw_hugepages = utils.system_output('/sbin/sysctl vm.nr_hugepages')
987 utils.system('/sbin/sysctl vm.nr_hugepages=%d' % num)

Completed in 241 milliseconds