]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: bpf: Add xdp_perf test
authorBjörn Töpel <bjorn.topel@intel.com>
Fri, 13 Dec 2019 17:51:11 +0000 (18:51 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Dec 2019 21:09:32 +0000 (13:09 -0800)
commit7ce568e49c82c684d067c17d1f651da511b2d5ab
tree07880954b0a153c950a1d0f12e12fdf426675754
parentd5666b21751538988faf142346d332304964f65c
selftests: bpf: Add xdp_perf test

The xdp_perf is a dummy XDP test, only used to measure the the cost of
jumping into a naive XDP program one million times.

To build and run the program:
  $ cd tools/testing/selftests/bpf
  $ make
  $ ./test_progs -v -t xdp_perf

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191213175112.30208-6-bjorn.topel@gmail.com
tools/testing/selftests/bpf/prog_tests/xdp_perf.c [new file with mode: 0644]