summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorLorenz Bauer <lmb@cloudflare.com>2021-03-03 11:18:12 +0100
committerAlexei Starovoitov <ast@kernel.org>2021-03-05 04:11:29 +0100
commit607b9cc92bd7208338d714a22b8082fe83bcb177 (patch)
tree0861dda11c1d0f0323f17919ea0c3a0c895b7075 /include/uapi
parentMerge branch 'Improve BPF syscall command documentation' (diff)
downloadlinux-607b9cc92bd7208338d714a22b8082fe83bcb177.tar.xz
linux-607b9cc92bd7208338d714a22b8082fe83bcb177.zip
bpf: Consolidate shared test timing code
Share the timing / signal interruption logic between different implementations of PROG_TEST_RUN. There is a change in behaviour as well. We check the loop exit condition before checking for pending signals. This resolves an edge case where a signal arrives during the last iteration. Instead of aborting with EINTR we return the successful result to user space. Signed-off-by: Lorenz Bauer <lmb@cloudflare.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210303101816.36774-2-lmb@cloudflare.com
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions