]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: add a test for bpf_prog_test_run_xattr
authorLorenz Bauer <lmb@cloudflare.com>
Mon, 3 Dec 2018 11:31:26 +0000 (11:31 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 4 Dec 2018 16:18:13 +0000 (08:18 -0800)
commit568c84f801542ec17a8f88c18ae1e55e9b877c9c
tree416ce2a6672f6c97c074df80912ec09e2ff0c29c
parentb9064ececb3ce622854656736156c9aa61ec866e
selftests: add a test for bpf_prog_test_run_xattr

Make sure that bpf_prog_test_run_xattr returns the correct length
and that the kernel respects the output size hint. Also check
that errno indicates ENOSPC if there is a short output buffer given.

Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_progs.c