From patchwork Tue Dec 12 12:10:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 121515 Delivered-To: patches@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4032604qgn; Tue, 12 Dec 2017 04:10:58 -0800 (PST) X-Received: by 10.28.9.146 with SMTP id 140mr1752396wmj.117.1513080658514; Tue, 12 Dec 2017 04:10:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513080658; cv=none; d=google.com; s=arc-20160816; b=l/x6SVJXWgp9hf80Qhvmgt/wzNU73s7TDWbhg7Ocb1d/Y0kY9l4TWvKLeAhsCSSe0w JYeb0OHsBDqkzwZxnRoSZSGf8a18Z3U9NgXZhCXj0SfiDmtt3PEje2RW8rYfdipMcECP IkOnW31EKXRAPUyEQUBA9rgYf4SE4CaA/BynbbiCF5ozFvPpklfxkdvNzAlumePZS90D ZZNtDFnzyvlgRu0EFqneHX4pIJHH/SCqEtn104L7limP6k+iD/jfIFuCRtB5wXKw7M0O UMOCgoiAFv8QUZ6GYeU3cpBEhyC7fe2WLOwMqNDiyHvLofmOSimylD9QgbxMNifyvvep xT0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=DNph9wnN2cGir3R6yNXEup2oOmkzx6BJu2iK3aoT5Zc=; b=cELiCFZ/h/zOkOYFmauSmrLZPAFA4qS8u1zo15kSMC8xB6VRBLeDuQ48BVdOk8u0h3 3kWc6NRZvuN1uaiLXW3C6YIlP/09wX9fECi7z8TDw3H9nFZXRC06C25gHYdOlfjCkQgG JMgkh13nZhXTw4BEWE2qqW6TpLxOEKwJHGZXzuCAb0Lf1xPfw7jhQsRdbeVgjCCBrjAM nypS1kyFo6Ee1CiDgHpQSe0OCmeZMHbwR2xPZAadR4x54rOF/VrXNs0Ctf0S7MCi1qOQ 7w70pP8f+qx8DoPCXJ0fhIc95EZ7QEsm+7wrTUYX1TugHb4f6UFJtoBTyY4yvNXZbOBx didg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R42HT0O3; spf=pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=daniel.thompson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id n11sor7685140wre.0.2017.12.12.04.10.58 for (Google Transport Security); Tue, 12 Dec 2017 04:10:58 -0800 (PST) Received-SPF: pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R42HT0O3; spf=pass (google.com: domain of daniel.thompson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=daniel.thompson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=DNph9wnN2cGir3R6yNXEup2oOmkzx6BJu2iK3aoT5Zc=; b=R42HT0O32nidecuAWZunOUJ+maE1LWnVHaKFCbquXHqK3wtnoJx6HHETfbrFglpOqv a6H5BBdQ4XLT6QcrUXvHdBSbRsRpGWOoAJx+gQQGuKGAXoG4V0N+9Q8/KWGfjYuAYT+J BIEwn/haGayuV/6jNnUCLTLut5Dd4bYtkDKFU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DNph9wnN2cGir3R6yNXEup2oOmkzx6BJu2iK3aoT5Zc=; b=VrkuuAUyRrP5IQ8mEZJF4TZVUlAoxfvl/tse4LISHN+hE5i+PEhwcBu+BMl2FY2UUH iAlMZyv0YTMZm5ZfPpMDW5hnrSM2s4pMcNc0iMQg9h0nnpxvtBSBsb0ovbEUZRSIhODl lgB+gOTYtZnxH4ZW63u3Xsa2cnAf1TpJR3Vc6yYXf1BL8U9KiPe77EORNhM9AW4FqTVh E35pmlnhdkhhGM1KghhbytOZmro8mltDxBhw5a/c/oRR5EgyRynmRpjcdJBTBny36fcs k7lx7fOsP3/s3Xmjls6HmwdRfvU9ozIQq23B8Cj1lUFyVpa9y5fy+2n4+abyHFbd47Jk 4UGQ== X-Gm-Message-State: AKGB3mIqER5UJW2bQWtcx7hN5wCa1lUqSV2jXfcisxGEzqjMqjQAgkxT VUn7FSQWLqpa67HTWVmlhj7tn9SP X-Google-Smtp-Source: ACJfBosxr9/jwHbP3PSQWgBIMIqOubbzF7yJctCSa567blDjcK63lm0c0nA+U4EuKeTNYP8ePMBdXQ== X-Received: by 10.223.163.11 with SMTP id c11mr3803253wrb.214.1513080658129; Tue, 12 Dec 2017 04:10:58 -0800 (PST) Return-Path: Received: from wychelm.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id p72sm9978784wme.17.2017.12.12.04.10.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2017 04:10:57 -0800 (PST) From: Daniel Thompson To: Jason Wessel Cc: Daniel Thompson , kgdb-bugreport@lists.sourceforge.net, Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, patches@linaro.org Subject: [PATCH] misc: kgdbts: Display progress of asynchronous tests Date: Tue, 12 Dec 2017 12:10:36 +0000 Message-Id: <20171212121036.26468-1-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.14.3 kgdbts includes a couple of different "thrashing" style tests that may have long runtimes (especially on simulated platforms) and which run asynchronously. This is uncomfortable for interactive use and makes setting timeouts tricky for automatic use. Fix by providing a optional means to show progress during these tests. Selecting 100 is somewhat arbitrary but it matches the step used on the synchronous tests, is large enough to keep the call to printk from invalidating the testing and is human enough to "feel about right". Signed-off-by: Daniel Thompson --- drivers/misc/kgdbts.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) -- 2.14.3 diff --git a/drivers/misc/kgdbts.c b/drivers/misc/kgdbts.c index 24108bfad889..6193270e7b3d 100644 --- a/drivers/misc/kgdbts.c +++ b/drivers/misc/kgdbts.c @@ -400,10 +400,14 @@ static void skip_back_repeat_test(char *arg) int go_back = simple_strtol(arg, NULL, 10); repeat_test--; - if (repeat_test <= 0) + if (repeat_test <= 0) { ts.idx++; - else + } else { + if (repeat_test % 100 == 0) + v1printk("kgdbts:RUN ... %d remaining\n", repeat_test); + ts.idx -= go_back; + } fill_get_buf(ts.tst[ts.idx].get); }