/external/ltp/testcases/network/stress/multicast/grp-operation/ |
D | mcast-lib.sh | 13 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 …]
|
/external/AFLplusplus/ |
D | afl-system-config | 35 sysctl -w kernel.core_uses_pid=0 37 test -e /etc/arch-release && sysctl -w kernel.core_pattern= 38 test -e /etc/arch-release || sysctl -w kernel.core_pattern=core 39 sysctl -w kernel.randomize_va_space=0 40 sysctl -w kernel.sched_child_runs_first=1 41 sysctl -w kernel.sched_autogroup_enabled=1 42 sysctl -w kernel.sched_migration_cost_ns=50000000 2>/dev/null 43 sysctl -w kernel.sched_latency_ns=250000000 2>/dev/null 66 sysctl kern.elf32.aslr.enable=0 67 sysctl kern.elf64.aslr.enable=0 [all …]
|
D | afl-persistent-config | 75 <string>/usr/sbin/sysctl</string> 113 …test -d /etc/sysctl.d || echo Error: /etc/sysctl.d directory not found, cannot install shmem config 114 test -d /etc/sysctl.d -a '!' -e /etc/sysctl.d/99-fuzzing.conf && { 115 echo "Installing /etc/sysctl.d/99-fuzzing.conf" 116 cat << EOF > /etc/sysctl.d/99-fuzzing.conf
|
/external/linux-kselftest/tools/testing/selftests/netfilter/ |
D | nft_nat_zones.sh | 40 v4gc1=$(sysctl -n net.ipv4.neigh.default.gc_thresh1 2>/dev/null) 41 v4gc2=$(sysctl -n net.ipv4.neigh.default.gc_thresh2 2>/dev/null) 42 v4gc3=$(sysctl -n net.ipv4.neigh.default.gc_thresh3 2>/dev/null) 43 v6gc1=$(sysctl -n net.ipv6.neigh.default.gc_thresh1 2>/dev/null) 44 v6gc2=$(sysctl -n net.ipv6.neigh.default.gc_thresh2 2>/dev/null) 45 v6gc3=$(sysctl -n net.ipv6.neigh.default.gc_thresh3 2>/dev/null) 55 sysctl -q net.ipv4.neigh.default.gc_thresh1=$v4gc1 2>/dev/null 56 sysctl -q net.ipv4.neigh.default.gc_thresh2=$v4gc2 2>/dev/null 57 sysctl -q net.ipv4.neigh.default.gc_thresh3=$v4gc3 2>/dev/null 58 sysctl -q net.ipv6.neigh.default.gc_thresh1=$v6gc1 2>/dev/null [all …]
|
D | ipvs.sh | 141 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=1 147 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.arp_ignore=1 148 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.arp_announce=2 150 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.rp_filter=0 151 ip netns exec ns2 sysctl -qw net.ipv4.conf.veth21.rp_filter=0 160 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=1 176 ip netns exec ns1 sysctl -qw net.ipv4.ip_forward=0 177 ip netns exec ns1 sysctl -qw net.ipv4.conf.all.send_redirects=0 178 ip netns exec ns1 sysctl -qw net.ipv4.conf.default.send_redirects=0 185 ip netns exec ns2 sysctl -qw net.ipv4.conf.all.arp_ignore=1 [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_sysctl.c | 33 const char *sysctl; member 48 .descr = "sysctl wrong attach_type", 54 .sysctl = "kernel/ostype", 59 .descr = "sysctl:read allow all", 65 .sysctl = "kernel/ostype", 70 .descr = "sysctl:read deny all", 76 .sysctl = "kernel/ostype", 81 .descr = "ctx:write sysctl:read read ok", 97 .sysctl = "kernel/ostype", 102 .descr = "ctx:write sysctl:write read ok", [all …]
|
D | test_kmod.sh | 28 sysctl -w net.core.bpf_jit_enable=$1 2>&1 > /dev/null 29 sysctl -w net.core.bpf_jit_harden=$2 2>&1 > /dev/null 56 JE=`sysctl -n net.core.bpf_jit_enable` 57 JH=`sysctl -n net.core.bpf_jit_harden` 62 sysctl -w net.core.bpf_jit_enable=$JE 2>&1 > /dev/null 63 sysctl -w net.core.bpf_jit_harden=$JH 2>&1 > /dev/null
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | ip_defrag.sh | 17 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_high_thresh=9000000 >/dev/null 2>&1 18 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_low_thresh=7000000 >/dev/null 2>&1 19 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_time=1 >/dev/null 2>&1 21 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_high_thresh=9000000 >/dev/null 2>&1 22 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_low_thresh=7000000 >/dev/null 2>&1 23 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_time=1 >/dev/null 2>&1 25 …ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_high_thresh=9000000 >/dev/null… 26 …ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_low_thresh=7000000 >/dev/null… 27 ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_timeout=1 >/dev/null 2>&1 30 ip netns exec "${NETNS}" sysctl -w net.ipv6.route.max_size=65536 >/dev/null 2>&1
|
D | ipv6_flowlabel.sh | 15 sh -c 'sysctl -q -w net.ipv6.auto_flowlabels=0 && ./ipv6_flowlabel -l 1' 19 sh -c 'sysctl -q -w net.ipv6.auto_flowlabels=1 && ./ipv6_flowlabel -l 1' 23 sh -c 'sysctl -q -w net.ipv6.flowlabel_reflect=4 && \ 24 sysctl -q -w net.ipv4.ping_group_range="0 2147483647" && \ 33 sh -c 'sysctl -q -w net.ipv6.flowlabel_reflect=4 && \ 34 sysctl -q -w net.ipv4.ping_group_range="0 2147483647" && \
|
D | route_localnet.sh | 16 sysctl -w net.ipv4.conf.veth0.route_localnet=1 17 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.route_localnet=1 40 sysctl -w net.ipv4.conf.veth0.arp_announce=2 41 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_announce=2 57 sysctl -w net.ipv4.conf.veth0.arp_ignore=3 58 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_ignore=3
|
D | arp_ndisc_evict_nocarrier.sh | 4 # Tests sysctl options {arp,ndisc}_evict_nocarrier={0,1} 7 # an entry in the ARP/ND table. Depending on the test set sysctl option to 27 sysctl -w net.ipv4.conf.veth0.ndisc_evict_nocarrier=1 >/dev/null 2>&1 28 sysctl -w net.ipv4.conf.all.ndisc_evict_nocarrier=1 >/dev/null 2>&1 55 ip netns exec me sysctl -w $1 >/dev/null 2>&1 82 sysctl -w "$1" >/dev/null 2>&1 104 sysctl -w net.ipv4.conf.veth0.arp_evict_nocarrier=1 >/dev/null 2>&1 105 sysctl -w net.ipv4.conf.all.arp_evict_nocarrier=1 >/dev/null 2>&1
|
/external/ltp/testcases/network/busy_poll/ |
D | busy_poll01.sh | 10 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')
|
D | busy_poll02.sh | 10 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')
|
D | busy_poll03.sh | 12 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')
|
/external/linux-kselftest/tools/testing/selftests/sysctl/ |
D | sysctl.sh | 15 # This performs a series tests against the proc sysctl interface. 20 TEST_NAME="sysctl" 53 if [ -z $SYSCTL ]; then 54 SYSCTL="/proc/sys/debug/test_sysctl" 117 if [ ! -d $SYSCTL ]; then 224 echo "== Testing sysctl behavior against ${TARGET} ==" 237 echo -n "Checking sysctl is not set to test value ... " 245 echo -n "Writing sysctl from shell ... " 254 echo -n "Resetting sysctl to original value ... " 267 echo -n "Writing entire sysctl in single write ... " [all …]
|
/external/ltp/testcases/commands/sysctl/ |
D | sysctl02.sh | 9 # 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
|
/external/rust/android-crates-io/crates/portable-atomic/src/imp/detect/ |
D | aarch64_aa64reg.rs | 21 - NetBSD 9.0+ (through sysctl/sysctlbyname) 23 - OpenBSD 7.1+ (through sysctl) 113 // NetBSD doesn't trap the mrs instruction, but exposes the system registers through sysctl. 157 // Defined in sys/sysctl.h. 158 // https://man.netbsd.org/sysctl.3 159 … // https://github.com/NetBSD/src/blob/432a1357026b10c184d8a0ddb683008a23cc7cd9/sys/sys/sysctl.h 178 // the result when machdep.cpuN.cpu_id sysctl was successful. in sysctl_cpu_id() 206 // If failed, returns default because machdep.cpuN.cpu_id sysctl is not available. in aa64reg() 207 … // machdep.cpuN.cpu_id sysctl was added in NetBSD 9.0 so it is not available on older versions. in aa64reg() 220 // OpenBSD doesn't trap the mrs instruction, but exposes the system registers through sysctl. [all …]
|
/external/ltp/testcases/kernel/syscalls/sysctl/ |
D | sysctl04.c | 9 * 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()
|
/external/ltp/testcases/network/mpls/ |
D | mpls_lib.sh | 10 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" 52 ROD sysctl -q net.mpls.conf.$(tst_iface).input=1 55 rpf_loc="$(sysctl -n net.ipv4.conf.all.rp_filter)" 57 tst_rhost_run -s -c "sysctl -q net.mpls.conf.$(tst_iface rhost).input=1" 58 rpf_rmt="$(tst_rhost_run -c 'sysctl -n net.ipv4.conf.all.rp_filter')"
|
/external/toybox/toys/other/ |
D | sysctl.c | 1 /* 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 [-aeNnqw] [-p [FILE] | KEY[=VALUE]...] 22 -p Read values from FILE (default /etc/sysctl.conf) 118 FILE *fp = xfopen(*toys.optargs ? *toys.optargs : "/etc/sysctl.conf", "r"); in sysctl_main()
|
/external/cronet/stable/base/process/ |
D | process_handle_openbsd.cc | 8 #include <sys/sysctl.h> 20 if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) < 0) in GetParentProcessId() 25 if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) in GetParentProcessId() 37 if (sysctl(mib, std::size(mib), NULL, &len, NULL, 0) == -1) in GetProcessExecutablePath() 40 if (sysctl(mib, std::size(mib), &kp, &len, NULL, 0) < 0) in GetProcessExecutablePath()
|
/external/cronet/tot/base/process/ |
D | process_handle_openbsd.cc | 8 #include <sys/sysctl.h> 20 if (sysctl(mib, std::size(mib), NULL, &length, NULL, 0) < 0) in GetParentProcessId() 25 if (sysctl(mib, std::size(mib), &info, &length, NULL, 0) < 0) in GetParentProcessId() 37 if (sysctl(mib, std::size(mib), NULL, &len, NULL, 0) == -1) in GetProcessExecutablePath() 40 if (sysctl(mib, std::size(mib), &kp, &len, NULL, 0) < 0) in GetProcessExecutablePath()
|
/external/ot-br-posix/script/ |
D | _rt_tables | 51 sudo sh -c 'echo "" >>/etc/sysctl.conf' 52 sudo sh -c 'echo "# OpenThread configuration" >>/etc/sysctl.conf' 53 sudo sh -c 'echo "net.core.optmem_max=65536" >>/etc/sysctl.conf' 54 sudo sh -c 'sysctl -p /etc/sysctl.conf'
|
/external/lz4/programs/ |
D | util.c | 58 #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 */
|
/external/coreboot/src/soc/ti/am335x/ |
D | mmc.c | 83 write32(&mmc->sysctl, read32(&mmc->sysctl) | 240 << 6 | SYSCTL_DTO_15); in am335x_mmc_init() 85 setbits32(&mmc->sysctl, SYSCTL_ICE | SYSCTL_CEN); in am335x_mmc_init() 87 if (am335x_wait_for_reg(&mmc->sysctl, SYSCTL_ICS, AM335X_TIMEOUT_MSEC)) in am335x_mmc_init() 239 clrbits32(®->sysctl, SYSCTL_CEN); in set_ios() 241 uint32_t new_sysctl = read32(®->sysctl); in set_ios() 245 write32(®->sysctl, new_sysctl); in set_ios() 248 am335x_wait_for_reg(®->sysctl, SYSCTL_ICS, AM335X_TIMEOUT_MSEC); in set_ios() 250 setbits32(®->sysctl, SYSCTL_CEN); in set_ios()
|