bpf: add prog tag test case to bpf selftests
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 24 Jan 2017 00:06:29 +0000 (01:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2017 19:46:06 +0000 (14:46 -0500)
commit62b64660262ab512cb428c9dd6e5a5586a0beb53
treef0ed3c1654d3b9edc99054abf167053290a663c0
parentd1b662adcdb87944b7f6f7bd2f95cbb1404dbf18
bpf: add prog tag test case to bpf selftests

Add the test case used to compare the results from fdinfo with
af_alg's output on the tag. Tests are from min to max sized
programs, with and without maps included.

  # ./test_tag
  test_tag: OK (40945 tests)

Tested on x86_64 and s390x.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_tag.c [new file with mode: 0644]