From patchwork Wed May 8 20:24:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 163647 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp47263ilr; Wed, 8 May 2019 13:24:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFESZNgf+o2J6xc8Dy79uqL1i1WSEbnSR/kk4xZA+4q/7ynsbMcOTKAY44JfrZPgv/6uao X-Received: by 2002:a17:902:446:: with SMTP id 64mr44838231ple.322.1557347099281; Wed, 08 May 2019 13:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557347099; cv=none; d=google.com; s=arc-20160816; b=mWJlINPm0VmilyLKrmQ4TCEcArxgp8O3cSIs+FXIxFQy4oGzs4vhPXyMRtvRtjfTy3 z0sgEtA6J9dSUFOcArx7TJc61a1AG0swtFXHujFqPkvC52qDzP+hDQAGKFOeR7aa/2C5 HkMUB28saYvSfVrH7RFY/aEWmWTNho/2Eig8ErZFex/0LsQLc1l3JVbgGETQKk8XvuEK uuHxKBeSbTT5eon16czT1fENbnPMUjwn4D5ZEkp2MgiXrEucaobcALgVuaCzgOtZBbzw x+/z9YOa3q9J1yPkyZMDoysoU7qKqGjb0rfIv1dGsrILBLdsRAvL8caw8RIIWYPzSpGY L00g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:subject:cc:to :from:date:user-agent:message-id; bh=ULjFE/rCXWJwxEaYMrhwTS1SLDAuw5XYbLc7tNsuPeA=; b=y30WAmHerVO1i2cvPbE/KiCszhMrdbblGHw9+k/IRRlZDIY9DohipPv9CT3OfXuqPV bDX7FNYlEU1apPqxhTe8Im+1zqRs4xwsqKHemklddhSYzhgIqYTfmBOfF9JxsyEqAtuS /nXNh1H0G9feqwLyhxZUZFJGxoT38oe8Gs7mVDhLhze06wDagkU1RSn82PiJWb7DVVIK gkBd5Dte+mvAmSUeoEIfeFlZh/KJcWOOCG87AO4RmzSWdDy4KRY7+Pbjcy+yCT2txE1M xRvlLmFCPB4D5uxFo3PFm0dX4YLOdi/KzDCO27wFdSSKXG7QTTTXFTJNM0Ens063aKez U2kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si9893133pgj.272.2019.05.08.13.24.58; Wed, 08 May 2019 13:24:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728917AbfEHUY5 (ORCPT + 30 others); Wed, 8 May 2019 16:24:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:35116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728832AbfEHUYy (ORCPT ); Wed, 8 May 2019 16:24:54 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5829821726; Wed, 8 May 2019 20:24:54 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.92) (envelope-from ) id 1hOT7V-0007jE-D2; Wed, 08 May 2019 16:24:53 -0400 Message-Id: <20190508202453.294437486@goodmis.org> User-Agent: quilt/0.65 Date: Wed, 08 May 2019 16:24:37 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Andrew Morton , Arnd Bergmann , Anders Roxell Subject: [for-next][PATCH 10/13] tracing: Allow RCU to run between postponed startup tests References: <20190508202427.252736423@goodmis.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anders Roxell When building a allmodconfig kernel for arm64 and boot that in qemu, CONFIG_FTRACE_STARTUP_TEST gets enabled and that takes time so the watchdog expires and prints out a message like this: 'watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper/0:1]' Depending on what the what test gets called from init_trace_selftests() it stays minutes in the loop. Rework so that function cond_resched() gets called in the init_trace_selftests loop. Link: http://lkml.kernel.org/r/20181130145622.26334-1-anders.roxell@linaro.org Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Anders Roxell Signed-off-by: Steven Rostedt (VMware) --- kernel/trace/trace.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.20.1 diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 3259019cc66d..4269af5905e4 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -1722,6 +1722,10 @@ static __init int init_trace_selftests(void) pr_info("Running postponed tracer tests:\n"); list_for_each_entry_safe(p, n, &postponed_selftests, list) { + /* This loop can take minutes when sanitizers are enabled, so + * lets make sure we allow RCU processing. + */ + cond_resched(); ret = run_tracer_selftest(p->type); /* If the test fails, then warn and remove from available_tracers */ if (ret < 0) {