Home
last modified time | relevance | path

Searched full:sysctl (Results 1 – 25 of 252) sorted by relevance

1234567891011

/third_party/ltp/testcases/network/stress/multicast/grp-operation/
Dmcast-lib.sh13 SYSFS_IGMP_MAX_MEMBERSHIPS=$(sysctl -b net.ipv4.igmp_max_memberships)
14 SYSFS_IGMP_MAX_MSF=$(sysctl -b net.ipv4.igmp_max_msf)
15 SYSFS_FORCE_IGMP_VERSION=$(sysctl -b net.ipv4.conf.$(tst_iface).force_igmp_version)
16 SYSFS_ALL_FORCE_IGMP_VERSION=$(sysctl -b net.ipv4.conf.all.force_igmp_version)
21 ROD sysctl -q -w net.ipv4.igmp_max_memberships=$igmp_max_memberships
22 ROD sysctl -q -w net.ipv4.igmp_max_msf=10
23 ROD sysctl -q -w net.ipv4.conf.$(tst_iface).force_igmp_version=0
24 ROD sysctl -q -w net.ipv4.conf.all.force_igmp_version=0
31 SYSCTL_ALL_FORCE_MLD_VERSION=$(sysctl -b net.ipv6.conf.all.force_mld_version)
32 SYSCTL_FORCE_MLD_VERSION=$(sysctl -b net.ipv6.conf.$(tst_iface).force_mld_version)
[all …]
/third_party/ltp/testcases/network/busy_poll/
Dbusy_poll01.sh10 sysctl -q -w net.core.busy_read=$busy_read_old
12 sysctl -q -w net.core.busy_poll=$busy_poll_old
14 tst_rhost_run -c "sysctl -q -w net.core.busy_read=$rbusy_read_old"
16 tst_rhost_run -c "sysctl -q -w net.core.busy_poll=$rbusy_poll_old"
30 busy_read_old="$(sysctl -n net.core.busy_read)"
31 busy_poll_old="$(sysctl -n net.core.busy_poll)"
33 rbusy_read_old=$(tst_rhost_run -c 'sysctl -ne net.core.busy_read')
34 rbusy_poll_old=$(tst_rhost_run -c 'sysctl -ne net.core.busy_poll')
Dbusy_poll02.sh10 sysctl -q -w net.core.busy_poll=$busy_poll_old
12 tst_rhost_run -c "sysctl -q -w net.core.busy_poll=$rbusy_poll_old"
25 busy_poll_old="$(sysctl -n net.core.busy_poll)"
26 rbusy_poll_old=$(tst_rhost_run -c 'sysctl -ne net.core.busy_poll')
Dbusy_poll03.sh12 sysctl -q -w net.core.busy_poll=$busy_poll_old
14 tst_rhost_run -c "sysctl -q -w net.core.busy_poll=$rbusy_poll_old"
27 busy_poll_old="$(sysctl -n net.core.busy_poll)"
28 rbusy_poll_old=$(tst_rhost_run -c 'sysctl -ne net.core.busy_poll')
/third_party/ltp/testcases/commands/sysctl/
Dsysctl02.sh9 # 7f2923c4f73f ("sysctl: handle overflow in proc_get_long")
10 # 32a5ad9c2285 ("sysctl: handle overflow for file-max")
12 # This bug has been fixed in 9002b21465fa ("kernel/sysctl.c: fix
22 TST_NEEDS_CMDS="sysctl"
49 sysctl -w -q $sys_name=$test_value 2>/dev/null
65 ROD sysctl -w -q $sys_name=0
76 [ -n "$orig_value" ] && sysctl -w -q $sys_name=$orig_value
Dsysctl01.sh10 # '5ccba44ba118("sched/sysctl: Check user input value of sysctl_sched_time_avg")'
14 TST_NEEDS_CMDS="sysctl"
27 sysctl -w "kernel.""$name"=0 >/dev/null 2>&1
35 sysctl -w "kernel.""$name"=${orig_value} >/dev/null 2>&1
/third_party/ltp/testcases/network/mpls/
Dmpls_lib.sh10 TST_NEEDS_CMDS="sysctl modprobe"
21 [ -n "$rpf_loc" ] && sysctl -q net.ipv4.conf.all.rp_filter=$rpf_loc
22 [ -n "$rpf_rmt" ] && tst_rhost_run -s -c "sysctl -q net.ipv4.conf.all.rp_filter=$rpf_rmt"
42 ROD sysctl -q net.mpls.conf.$(tst_iface).input=1
45 rpf_loc="$(sysctl -n net.ipv4.conf.all.rp_filter)"
47 tst_rhost_run -s -c "sysctl -q net.mpls.conf.$(tst_iface rhost).input=1"
48 rpf_rmt="$(tst_rhost_run -c 'sysctl -n net.ipv4.conf.all.rp_filter')"
Dmpls01.sh13 TST_NEEDS_CMDS="sysctl modprobe"
29 ROD sysctl -q net.mpls.platform_labels=0xfffff
38 ROD sysctl -q net.mpls.platform_labels=0xffffe
53 ROD sysctl -q net.mpls.platform_labels=$((end + 1))
/third_party/libuv/src/unix/
Dopenbsd.c29 #include <sys/sysctl.h>
53 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
82 if (sysctl(mib, ARRAY_SIZE(mib), argsbuf, &argsbuf_size, NULL, 0) == 0) { in uv_exepath()
118 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_free_memory()
130 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
160 if (sysctl(mib, ARRAY_SIZE(mib), &kinfo, &size, NULL, 0) < 0) in uv_resident_set_memory()
174 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
197 if (sysctl(which, ARRAY_SIZE(which), &model, &size, NULL, 0)) in uv_cpu_info()
202 if (sysctl(which, ARRAY_SIZE(which), &numcpus, &size, NULL, 0)) in uv_cpu_info()
214 if (sysctl(which, ARRAY_SIZE(which), &cpuspeed, &size, NULL, 0)) in uv_cpu_info()
[all …]
Dnetbsd.c37 #include <sys/sysctl.h>
58 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) == -1) return; in uv_loadavg()
84 if (sysctl(mib, 4, int_buf, &int_size, NULL, 0)) in uv_exepath()
105 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_free_memory()
122 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
175 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
253 if (sysctl(name, ARRAY_SIZE(name), p, &count, NULL, 0) == -1) in uv__random_sysctl()
Ddarwin.c33 #include <sys/sysctl.h>
122 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
144 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
179 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
210 /* If sysctl hw.cputype == CPU_TYPE_ARM64, the correct value is unavailable in uv_cpu_info()
/third_party/ltp/testcases/kernel/syscalls/sysctl/
Dsysctl04.c9 * 1) Call sysctl(2) with nlen set to 0, and expect ENOTDIR.
10 * 2) Call sysctl(2) with nlen greater than CTL_MAXNAME, and expect ENOTDIR.
11 * 3) Call sysctl(2) with the address of oldname outside the address space of
13 * 4) Call sysctl(2) with the address of soldval outside the address space of
21 #include <linux/sysctl.h>
54 tst_res(TFAIL, "sysctl(2) succeeded unexpectedly"); in verify_sysctl()
Dsysctl03.c9 * 1) Call sysctl(2) as a root user, and attempt to write data
12 * 2) Call sysctl(2) as a non-root user, and attempt to write data
17 * the behavior of sysctl(2) isn't properly documented, as discussed
36 #include <linux/sysctl.h>
57 tst_res(TFAIL, "sysctl(2) succeeded unexpectedly"); in verify_sysctl()
Dsysctl01.c10 * Testcase for testing the basic functionality of sysctl(2) system call.
12 * sysctl({CTL_KERN, KERN_* }, ...) and compares it with the known values.
21 #include <linux/sysctl.h>
55 tst_res(TFAIL | TTERRNO, "sysctl() failed unexpectedly"); in verify_sysctl()
/third_party/toybox/toys/other/
Dsysctl.c1 /* sysctl.c - A utility to read and manipulate the sysctl parameters.
8 USE_SYSCTL(NEWTOY(sysctl, "^neNqwpaA[!ap][!aq][!aw][+aA]", TOYFLAG_SBIN))
10 config SYSCTL
11 bool "sysctl"
14 usage: sysctl [-aAeNnqw] [-p [FILE] | KEY[=VALUE]...]
22 -p Read values from FILE (default /etc/sysctl.conf)
124 FILE *fp = xfopen(*toys.optargs ? *toys.optargs : "/etc/sysctl.conf", "r"); in sysctl_main()
/third_party/lz4/programs/
Dutil.c58 #include <sys/sysctl.h>
61 * see: man 3 sysctl */
99 #include <sys/sysctl.h>
101 /* Use physical core sysctl when available
102 * see: man 4 smp, man 3 sysctl */
105 static int numCores = 0; /* freebsd sysctl is native int sized */
124 /* sysctl not present, fall through to older sysconf method */
/third_party/rust/crates/nix/test/common/
Dmod.rs40 use ::sysctl::{CtlValue, Sysctl};
43 let ctl = ::sysctl::Ctl::new("vfs.usermount").unwrap();
68 use ::sysctl::{CtlValue, Sysctl};
70 let ctl = ::sysctl::Ctl::new("security.jail.jailed").unwrap();
/third_party/opencl-headers/.github/workflows/
Dmacos.yml45 …cmake --build $GITHUB_WORKSPACE/build --config Release --parallel `sysctl -n hw.logicalcpu` `if [[…
46 …cmake --build $GITHUB_WORKSPACE/build --config Debug --parallel `sysctl -n hw.logicalcpu` `if [[…
52 ctest -C Release --output-on-failure --parallel `sysctl -n hw.logicalcpu`
53 ctest -C Debug --output-on-failure --parallel `sysctl -n hw.logicalcpu`
/third_party/lzma/CPP/Windows/
DSystem.cpp10 #include <sys/sysctl.h>
217 // printf("\n sysctl HW_MEMSIZE"); in GetRamSize()
220 // printf("\n sysctl HW_PHYSMEM64"); in GetRamSize()
223 // printf("\n sysctl HW_PHYSMEM"); in GetRamSize()
227 int res = sysctl(mib, 2, &val, &size_sys, NULL, 0); in GetRamSize()
228 …// printf("\n sysctl res=%d val=%llx size_sys = %d, %d\n", res, (long long int)val, (int)size_sys,… in GetRamSize()
237 res = sysctl(mib, 2, &val32, &size_sys, NULL, 0); in GetRamSize()
238 …// printf("\n sysctl res=%d val=%llx size_sys = %d, %d\n", res, (long long int)val32, (int)size_sy… in GetRamSize()
/third_party/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_violations.sh22 elif tst_check_cmds sysctl; then
23 PRINTK_RATE_LIMIT=`sysctl -n kernel.printk_ratelimit`
24 sysctl -wq kernel.printk_ratelimit=0
34 sysctl -wq kernel.printk_ratelimit=$PRINTK_RATE_LIMIT
/third_party/rust/rust/src/tools/compiletest/src/
Draise_fd_limit.rs19 // kern.maxfilesperproc sysctl value, and bump the soft resource limit for in raise_fd_limit()
20 // maxfiles up to the sysctl value. in raise_fd_limit()
26 if libc::sysctl(&mut mib[0], 2, &mut maxfiles as *mut _ as *mut _, &mut size, null_mut(), 0) in raise_fd_limit()
30 panic!("raise_fd_limit: error calling sysctl: {}", err); in raise_fd_limit()
/third_party/ltp/testcases/network/stress/route/
Droute-redirect.sh34 # Make sure the sysctl value is set for accepting the redirect
35 sysctl -w net.ipv${TST_IPVER}.conf.${lhost_ifname}.accept_redirects=1 > /dev/null
36 [ ! "$TST_IPV6" ] && sysctl -w net.ipv4.conf.${lhost_ifname}.secure_redirects=0 > /dev/null
/third_party/skia/third_party/externals/microhttpd/m4/
Dax_count_cpus.m438 AS_IF([test -x /usr/sbin/sysctl],[
39 sysctl_a=`/usr/sbin/sysctl -a 2>/dev/null| grep -c hw.cpu`
41 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu`
/third_party/ltp/testcases/network/multicast/mc_cmds/
Dmc_cmds.sh39 val=$(sysctl -n $knob)
41 ROD sysctl -q ${knob}=0
90 [ "$knob_changed" ] && sysctl -q ${knob}=1
/third_party/pulseaudio/src/pulse/
Dutil.c52 #include <sys/sysctl.h>
91 #include <sys/sysctl.h>
95 #include <sys/sysctl.h>
250 if (sysctl(mib, 4, &path, &len, NULL, 0) == 0) { in pa_get_binary_name()
295 sysctl(mib, nmib, NULL, &len, NULL, 0); in pa_get_binary_name()
298 if (sysctl(mib, nmib, buf, &len, NULL, 0) == 0) { in pa_get_binary_name()
477 pa_log_debug("sysctl for hw.cpufrequency: %llu", freq); in pa_thread_make_realtime()

1234567891011