linux-xiaomi-chiron/tools/testing/selftests/net
Willem de Bruijn 16f6458f24 selftests/net: relax cpu affinity requirement in msg_zerocopy test
The msg_zerocopy test pins the sender and receiver threads to separate
cores to reduce variance between runs.

But it hardcodes the cores and skips core 0, so it fails on machines
with the selected cores offline, or simply fewer cores.

The test mainly gives code coverage in automated runs. The throughput
of zerocopy ('-z') and non-zerocopy runs is logged for manual
inspection.

Continue even when sched_setaffinity fails. Just log to warn anyone
interpreting the data.

Fixes: 07b65c5b31 ("test: add msg_zerocopy test")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-08-05 12:25:35 -07:00
..
forwarding
mptcp
.gitignore
altnames.sh
config
devlink_port_split.py
fcnal-test.sh
fib-onlink-tests.sh
fib_nexthop_multiprefix.sh
fib_nexthops.sh
fib_rule_tests.sh
fib_tests.sh
fin_ack_lat.c
fin_ack_lat.sh
hwtstamp_config.c
icmp_redirect.sh
in_netns.sh
ip6_gre_headroom.sh
ip_defrag.c
ip_defrag.sh
ipv6_flowlabel.c
ipv6_flowlabel.sh
ipv6_flowlabel_mgr.c
l2tp.sh
Makefile
msg_zerocopy.c selftests/net: relax cpu affinity requirement in msg_zerocopy test 2020-08-05 12:25:35 -07:00
msg_zerocopy.sh
netdevice.sh
nettest.c
pmtu.sh
psock_fanout.c
psock_lib.h
psock_snd.c
psock_snd.sh
psock_tpacket.c
reuseaddr_conflict.c
reuseaddr_ports_exhausted.c
reuseaddr_ports_exhausted.sh
reuseport_addr_any.c
reuseport_addr_any.sh
reuseport_bpf.c
reuseport_bpf_cpu.c
reuseport_bpf_numa.c
reuseport_dualstack.c
route_localnet.sh
rtnetlink.sh selftests: rtnetlink: make kci_test_encap() return sub-test result 2020-08-05 12:23:29 -07:00
run_afpackettests
run_netsocktests
rxtimestamp.c
rxtimestamp.sh
so_txtime.c
so_txtime.sh
socket.c
tcp_fastopen_backup_key.c
tcp_fastopen_backup_key.sh
tcp_inq.c
tcp_mmap.c
test_blackhole_dev.sh
test_bpf.sh
test_vxlan_fdb_changelink.sh
test_vxlan_under_vrf.sh
timestamping.c
tls.c
traceroute.sh
txring_overwrite.c
txtimestamp.c
txtimestamp.sh
udpgro.sh
udpgro_bench.sh
udpgso.c
udpgso.sh
udpgso_bench.sh
udpgso_bench_rx.c
udpgso_bench_tx.c
vrf-xfrm-tests.sh
vrf_strict_mode_test.sh
xfrm_policy.sh