On Wed, Mar 3, 2021 at 2:18 AM Lorenz Bauer <lmb@xxxxxxxxxxxxxx> wrote: > > 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@xxxxxxxxxxxxxx> > --- LGTM. Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > net/bpf/test_run.c | 141 +++++++++++++++++++++++++-------------------- > 1 file changed, 78 insertions(+), 63 deletions(-) > [...]