diff options
author | Lorenz Bauer <lmb@cloudflare.com> | 2022-08-01 10:29:14 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-03 13:00:52 +0300 |
commit | 6aad811b37eeeba902b14cc4ab698d2b37bb4fb9 (patch) | |
tree | d5c27f0e72394c26e064438e5a514fa607b6ba4b /tools/include/uapi/linux/bpf.h | |
parent | 545fc3524ccc454d9f24273ee1c3aeadd7ab1421 (diff) | |
download | linux-6aad811b37eeeba902b14cc4ab698d2b37bb4fb9.tar.xz |
bpf: Consolidate shared test timing code
commit 607b9cc92bd7208338d714a22b8082fe83bcb177 upstream.
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
[dtcccc: fix conflicts in bpf_test_run()]
Signed-off-by: Tianchen Ding <dtcccc@linux.alibaba.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/include/uapi/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions