/tools/testing/selftests/net/ |
D | xfrm_policy.sh | 32 local ns=$1 39 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu… 41 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu… 45 local ns=$1 53 …ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 … 54 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 … 56 do_esp_policy $ns $me $remote $lnet $rnet 73 local ns=$1 76 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block 79 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block [all …]
|
D | icmp_redirect.sh | 113 local ns=$1 117 addr=$(ip -netns $ns -6 -br addr show dev ${dev} | \ 139 local ns 141 for ns in h1 h2 r1 r2; do 142 ip netns del $ns 2>/dev/null 148 local ns=$1 150 ip -netns ${ns} link add ${VRF} type vrf table ${VRF_TABLE} 151 ip -netns ${ns} link set ${VRF} up 152 ip -netns ${ns} route add vrf ${VRF} unreachable default metric 8192 153 ip -netns ${ns} -6 route add vrf ${VRF} unreachable default metric 8192 [all …]
|
D | fib_nexthop_multiprefix.sh | 73 local ns=${1} 75 ip netns del ${ns} 2>/dev/null 77 ip netns add ${ns} 78 ip -netns ${ns} addr add 127.0.0.1/8 dev lo 79 ip -netns ${ns} link set lo up 81 ip netns exec ${ns} sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1 82 case ${ns} in 84 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=0 87 ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1 88 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1 [all …]
|
D | l2tp.sh | 47 local ns 52 ns="$1" 60 out=$(eval ip netns exec ${ns} ${cmd} 2>&1) 76 local ns=$1 83 ip netns add ${ns} 85 ip -netns ${ns} link set lo up 87 ip -netns ${ns} addr add dev lo ${addr} 90 ip -netns ${ns} -6 addr add dev lo ${addr6} 93 ip -netns ${ns} ro add unreachable default metric 8192 94 ip -netns ${ns} -6 ro add unreachable default metric 8192 [all …]
|
D | udpgro_bench.sh | 10 local -r ns="$(ip netns list|grep $PEER_NS)" 13 [ -n "$ns" ] && ip netns del $ns 2>/dev/null
|
D | route_localnet.sh | 31 local -r ns="$(ip netns list|grep $PEER_NS)" 32 [ -n "$ns" ] && ip netns del $ns 2>/dev/null
|
D | udpgro.sh | 18 local -r ns="$(ip netns list|grep $PEER_NS)" 21 [ -n "$ns" ] && ip netns del $ns 2>/dev/null
|
D | pmtu.sh | 498 [ "${ns}" = "" ] && ns="${i}" && continue 502 ns_name="$(nsname ${ns})" 506 ns=""; addr=""; gw="" 512 [ "${ns}" = "" ] && ns="${i}" && continue 518 ns_name="$(nsname ${ns})" 522 ns=""; fam=""; nhid=""; gw=""; dev="" 527 [ "${ns}" = "" ] && ns="${i}" && continue 532 ns_name="$(nsname ${ns})" 536 ns=""; fam=""; addr=""; nhid="" 547 [ "${ns}" = "" ] && ns="${i}" && continue [all …]
|
D | fcnal-test.sh | 64 NSA=ns-A 65 NSB=ns-B 304 local ns=$1 308 addr=$(ip -netns ${ns} -6 -br addr show dev ${dev} | \ 330 local ns=$1 336 ip -netns ${ns} link add ${vrf} type vrf table ${table} 337 ip -netns ${ns} link set ${vrf} up 338 ip -netns ${ns} route add vrf ${vrf} unreachable default metric 8192 339 ip -netns ${ns} -6 route add vrf ${vrf} unreachable default metric 8192 341 ip -netns ${ns} addr add 127.0.0.1/8 dev ${vrf} [all …]
|
/tools/testing/selftests/timers/ |
D | nsleep-lat.c | 79 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() argument 81 ts.tv_nsec += ns; in timespec_add() 98 int nanosleep_lat_test(int clockid, long long ns) in nanosleep_lat_test() argument 104 target.tv_sec = ns/NSEC_PER_SEC; in nanosleep_lat_test() 105 target.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_lat_test() 120 if (((timespec_sub(start, end)/count)-ns) > UNRESONABLE_LATENCY) { in nanosleep_lat_test() 121 printf("Large rel latency: %lld ns :", (timespec_sub(start, end)/count)-ns); in nanosleep_lat_test() 128 target = timespec_add(start, ns); in nanosleep_lat_test()
|
D | nanosleep.c | 91 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() argument 93 ts.tv_nsec += ns; in timespec_add() 101 int nanosleep_test(int clockid, long long ns) in nanosleep_test() argument 108 target = timespec_add(now, ns); in nanosleep_test() 121 rel = timespec_add(rel, ns); in nanosleep_test() 122 target = timespec_add(now, ns); in nanosleep_test()
|
D | raw_skew.c | 51 struct timespec nsec_to_ts(long long ns) in nsec_to_ts() argument 55 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 56 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts()
|
D | mqueue-lat.c | 48 struct timespec timespec_add(struct timespec ts, unsigned long long ns) in timespec_add() argument 50 ts.tv_nsec += ns; in timespec_add()
|
D | adjtick.c | 49 struct timespec nsec_to_ts(long long ns) in nsec_to_ts() argument 53 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 54 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts()
|
/tools/testing/selftests/nsfs/ |
D | owner.c | 28 int pfd[2], ns, uns, init_uns; in main() local 56 ns = open(path, O_RDONLY); in main() 57 if (ns < 0) in main() 60 uns = ioctl(ns, NS_GET_USERNS); in main() 84 if (ioctl(ns, NS_GET_USERNS) >= 0 || errno != EPERM) in main()
|
D | pidns.c | 47 int ns, pns, i; in main() local 56 ns = open(path, O_RDONLY); in main() 57 if (ns < 0) in main() 60 pns = ioctl(ns, NS_GET_PARENT); in main()
|
/tools/perf/scripts/python/ |
D | futex-contention.py | 26 def syscalls__sys_enter_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument 34 thread_blocktime[tid] = nsecs(s, ns) 36 def syscalls__sys_exit_futex(event, ctxt, cpu, s, ns, tid, comm, callchain, argument 39 elapsed = nsecs(s, ns) - thread_blocktime[tid]
|
D | compaction-times.py | 48 def ns(sec, nsec): function 51 def time(ns): argument 52 return "%dns" % ns if opt_ns else "%dus" % (round(ns, -3) / 1000) 70 def __init__(self, ns): argument 71 self.ns = ns 77 self.ns += rhs.ns 85 s = "%s " % time(self.ns) 97 self.ns = ns(secs, nsecs) - self.ns 168 self.ns += rhs.ns 173 self.pending = cnode(ns(secs, nsecs))
|
/tools/testing/selftests/netfilter/ |
D | nft_flowtable.sh | 55 ip netns del ns$i 110 ip -net ns$i link set lo up 111 ip -net ns$i link set eth0 up 112 ip -net ns$i addr add 10.0.$i.99/24 dev eth0 113 ip -net ns$i route add default via 10.0.$i.1 114 ip -net ns$i addr add dead:$i::99/64 dev eth0 115 ip -net ns$i route add default via dead:$i::1 116 ip netns exec ns$i sysctl net.ipv4.tcp_no_metrics_save=1 > /dev/null 119 ip netns exec ns$i sysctl net.ipv4.ip_no_pmtu_disc=1 > /dev/null 333 local ns=$1 [all …]
|
D | nft_nat.sh | 18 for i in 0 1 2; do ip netns del ns$i-"$sfx";done 70 ip -net ns$i-$sfx link set lo up 71 ip -net ns$i-$sfx link set eth0 up 72 ip -net ns$i-$sfx addr add 10.0.$i.99/24 dev eth0 73 ip -net ns$i-$sfx route add default via 10.0.$i.1 74 ip -net ns$i-$sfx addr add dead:$i::99/64 dev eth0 75 ip -net ns$i-$sfx route add default via dead:$i::1 80 local ns=$1 85 echo "ERROR: $counter counter in $ns has unexpected value (expected $expect) at $tag" 1>&2 86 ip netns exec $ns nft list counter inet filter $counter 1>&2 [all …]
|
D | bridge_brouter.sh | 54 ip -net ns$i link set lo up 55 ip -net ns$i link set eth0 up 56 ip -net ns$i addr add 10.0.0.1$i/24 dev eth0 144 for i in 0 1 2; do ip netns del ns$i;done
|
/tools/testing/selftests/bpf/ |
D | test_offload.py | 143 def tool(name, args, flags, JSON=True, ns="", fail=True, include_stderr=False): argument 148 if ns != "": 149 ns = "ip netns exec %s " % (ns) 152 ret, stdout, stderr = cmd(ns + name + " " + params + args, 155 ret, stdout = cmd(ns + name + " " + params + args, 168 def bpftool(args, JSON=True, ns="", fail=True, include_stderr=False): argument 169 return tool("bpftool", args, {"json":"-p"}, JSON=JSON, ns=ns, 172 def bpftool_prog_list(expected=None, ns=""): argument 173 _, progs = bpftool("prog show", JSON=True, ns=ns, fail=True) 184 def bpftool_map_list(expected=None, ns=""): argument [all …]
|
/tools/perf/util/ |
D | tsc.c | 7 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc) in perf_time_to_tsc() argument 11 t = ns - tc->time_zero; in perf_time_to_tsc()
|
D | tsc.h | 18 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc);
|
D | arm-spe-pkt-decoder.c | 277 int ret, ns, el, idx = packet->index; in arm_spe_pkt_desc() local 423 case 1: ns = !!(packet->payload & NS_FLAG); in arm_spe_pkt_desc() 427 (idx == 1) ? "TGT" : "PC", payload, el, ns); in arm_spe_pkt_desc() 429 case 3: ns = !!(packet->payload & NS_FLAG); in arm_spe_pkt_desc() 432 payload, ns); in arm_spe_pkt_desc()
|