Home
last modified time | relevance | path

Searched refs:sysctl (Results 1 – 25 of 175) sorted by relevance

1234567

/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/node/deps/uv/src/unix/
Dopenbsd.c53 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()
155 if (sysctl(mib, ARRAY_SIZE(mib), &kinfo, &size, NULL, 0) < 0) in uv_resident_set_memory()
169 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
192 if (sysctl(which, ARRAY_SIZE(which), &model, &size, NULL, 0)) in uv_cpu_info()
197 if (sysctl(which, ARRAY_SIZE(which), &numcpus, &size, NULL, 0)) in uv_cpu_info()
209 if (sysctl(which, ARRAY_SIZE(which), &cpuspeed, &size, NULL, 0)) in uv_cpu_info()
215 if (sysctl(percpu, ARRAY_SIZE(percpu), &info, &size, NULL, 0)) in uv_cpu_info()
Dnetbsd.c58 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()
170 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
248 if (sysctl(name, ARRAY_SIZE(name), p, &count, NULL, 0) == -1) in uv__random_sysctl()
Dfreebsd.c73 if (sysctl(mib, ARRAY_SIZE(mib), abspath, &abspath_size, NULL, 0)) in uv_exepath()
107 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
124 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
145 if (sysctl(mib, ARRAY_SIZE(mib), &kinfo, &kinfo_size, NULL, 0)) in uv_resident_set_memory()
/third_party/libuv/src/unix/
Dopenbsd.c53 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()
155 if (sysctl(mib, ARRAY_SIZE(mib), &kinfo, &size, NULL, 0) < 0) in uv_resident_set_memory()
169 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
192 if (sysctl(which, ARRAY_SIZE(which), &model, &size, NULL, 0)) in uv_cpu_info()
197 if (sysctl(which, ARRAY_SIZE(which), &numcpus, &size, NULL, 0)) in uv_cpu_info()
209 if (sysctl(which, ARRAY_SIZE(which), &cpuspeed, &size, NULL, 0)) in uv_cpu_info()
215 if (sysctl(percpu, ARRAY_SIZE(percpu), &info, &size, NULL, 0)) in uv_cpu_info()
Dnetbsd.c58 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()
170 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_uptime()
248 if (sysctl(name, ARRAY_SIZE(name), p, &count, NULL, 0) == -1) in uv__random_sysctl()
Dfreebsd.c73 if (sysctl(mib, ARRAY_SIZE(mib), abspath, &abspath_size, NULL, 0)) in uv_exepath()
107 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0)) in uv_get_total_memory()
124 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NULL, 0) < 0) return; in uv_loadavg()
145 if (sysctl(mib, ARRAY_SIZE(mib), &kinfo, &kinfo_size, NULL, 0)) in uv_resident_set_memory()
/third_party/ltp/testcases/network/stress/tcp/uni-basic/
Dtcp4-uni-basic01149 sysctl -w net.ipv4.tcp_window_scaling=1 >/dev/null 2>&1
152 sysctl -w net.ipv4.tcp_dsack=1 >/dev/null 2>&1
155 sysctl -w net.ipv4.tcp_sack=1 >/dev/null 2>&1
264 sysctl -w net.ipv4.tcp_window_scaling=1 >/dev/null
270 sysctl -w net.ipv4.tcp_window_scaling=0 >/dev/null 2>&1
275 sysctl -w net.ipv4.tcp_dsack=1 >/dev/null
281 sysctl -w net.ipv4.tcp_dsack=0 >/dev/null 2>&1
286 sysctl -w net.ipv4.tcp_sack=1 >/dev/null
292 sysctl -w net.ipv4.tcp_sack=0 >/dev/null 2>&1
/third_party/libunwind/libunwind/src/
Dos-freebsd.c66 error = sysctl(mib, 3, NULL, &len, NULL, 0); in get_pid_by_tid()
74 error = sysctl(mib, 3, buf, &len, NULL, 0); in get_pid_by_tid()
106 error = sysctl(mib, 4, NULL, &len, NULL, 0); in tdep_get_elf_image()
111 error = sysctl(mib, 4, NULL, &len, NULL, 0); in tdep_get_elf_image()
122 error = sysctl(mib, 4, buf, &len, NULL, 0); in tdep_get_elf_image()
161 error = sysctl(mib, 4, path, &len, NULL, 0); in tdep_get_exe_image_path()
/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/ltp/testcases/commands/sysctl/
Dsysctl02.sh49 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.sh27 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/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/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/ltp/testcases/network/mpls/
Dmpls01.sh29 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/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/skia/third_party/externals/swiftshader/tests/kokoro/macos/
Dcontinuous.sh35 cmake --build . -- -j$(sysctl -n hw.logicalcpu)
49 cmake --build . --target ReactorUnitTests -- -j$(sysctl -n hw.logicalcpu)
/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
/third_party/ltp/testcases/network/stress/route/
Droute-redirect.sh35 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/mesa3d/src/util/
Dos_misc.c252 return (sysctl(mib, 2, size, &len, NULL, 0) == 0); in os_get_total_physical_memory()
311 if (sysctl(mib, 2, &mem_available, &len, NULL, 0) == -1) in os_get_available_system_memory()
356 return (sysctl(mib, 2, size, &len, NULL, 0) == 0); in os_get_page_size()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/
Dp2p-action-udhcp.sh58 sysctl net.ipv4.ip_forward=1
65 sysctl net.ipv4.ip_forward=0
/third_party/libwebsockets/READMEs/
DREADME.tcp_fastopen.md19 # sysctl -w net.ipv4.tcp_fastopen=3
25 sysctl to 1
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/
Dp2p-action-udhcp.sh58 sysctl net.ipv4.ip_forward=1
65 sysctl net.ipv4.ip_forward=0
/third_party/mesa3d/src/gallium/auxiliary/hud/
Dhud_cpu.c116 if (sysctl(mib, ARRAY_SIZE(mib), cp_time, &len, NULL, 0) == -1) in get_cpu_stats()
123 if (sysctl(mib, ARRAY_SIZE(mib), sum_cp_time, &len, NULL, 0) == -1) in get_cpu_stats()
137 if (sysctl(mib, ARRAY_SIZE(mib), cp_time, &len, NULL, 0) == -1) in get_cpu_stats()
143 if (sysctl(mib, ARRAY_SIZE(mib), cp_time, &len, NULL, 0) == -1) in get_cpu_stats()
/third_party/node/deps/v8/src/base/
Dsys-info.cc44 if (sysctl(mib, arraysize(mib), &ncpu, &len, nullptr, 0) != 0) { in NumberOfProcessors()
70 if (sysctl(mib, arraysize(mib), &memsize, &len, nullptr, 0) != 0) { in AmountOfPhysicalMemory()

1234567