From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f68.google.com ([74.125.83.68]:40267 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751544AbeBZSws (ORCPT ); Mon, 26 Feb 2018 13:52:48 -0500 Received: by mail-pg0-f68.google.com with SMTP id g2so6521696pgn.7 for ; Mon, 26 Feb 2018 10:52:48 -0800 (PST) Message-ID: <1519671166.3258.10.camel@gmail.com> Subject: [PATCH] test_bpf: add a schedule point From: Eric Dumazet To: Alexei Starovoitov Cc: Daniel Borkmann , netdev Date: Mon, 26 Feb 2018 10:52:46 -0800 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet test_bpf() is taking 1.6 seconds nowadays, it is time to add a schedule point in it. Signed-off-by: Eric Dumazet ---  lib/test_bpf.c |    2 ++  1 file changed, 2 insertions(+) diff --git a/lib/test_bpf.c b/lib/test_bpf.c index b4e22345963f339ffe05c974bc111ae7da9dc58f..e6f550608d7220f434b45828549d36820923a51d 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c @@ -24,6 +24,7 @@ #include #include #include +#include /* General test specific settings */ #define MAX_SUBTESTS 3 @@ -6582,6 +6583,7 @@ static __init int test_bpf(void) struct bpf_prog *fp; int err; + cond_resched(); if (exclude_test(i)) continue;