OSDN Git Service

selftests/bpf: Expose and rename debug argument
authorCiara Loftus <ciara.loftus@intel.com>
Tue, 23 Feb 2021 16:23:02 +0000 (16:23 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Feb 2021 20:08:48 +0000 (12:08 -0800)
commitd2b0dfd5d1f94fe74ed580b5a1d5fdb5bf11f2fb
treefd96fff68c175fc0b6a8e94bd16c71ef019efc44
parentecde60614d5ed60fde1c80b38b71582a3ea2e662
selftests/bpf: Expose and rename debug argument

Launching xdpxceiver with -D enables what was formerly know as 'debug'
mode. Rename this mode to 'dump-pkts' as it better describes the
behavior enabled by the option. New usage:

./xdpxceiver .. -D
or
./xdpxceiver .. --dump-pkts

Also make it possible to pass this flag to the app via the test_xsk.sh
shell script like so:

./test_xsk.sh -D

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210223162304.7450-3-ciara.loftus@intel.com
tools/testing/selftests/bpf/test_xsk.sh
tools/testing/selftests/bpf/xdpxceiver.c
tools/testing/selftests/bpf/xsk_prereqs.sh