From patchwork Fri Jun 8 04:26:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 9168 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8F10523F0F for ; Fri, 8 Jun 2012 04:27:08 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id 39922A1804B for ; Fri, 8 Jun 2012 04:27:08 +0000 (UTC) Received: by obbun3 with SMTP id un3so2128199obb.11 for ; Thu, 07 Jun 2012 21:27:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-content-scanned:x-cbid:x-gm-message-state; bh=1FEBstLMG+LoC+Y3o2ja36WyK3+BP64INbVTgUuDgho=; b=Eef9d/jazmgabomupo9QhVhUz9vxnTCMq2vl+UUEXihv0a5ZLuO7pDAoeQ6or+gGNS mPjmNfh8N0r7Ohx6ANV0x2bRNw4V+GFx+eK5L9J9KLv0rliyvFko8sQ0Ll06ubKU5T0C DJjkdMCweKshCtjclVKAFKbz4sniRiMUih5sI09eYTb8aBWcogkImdvnnEBiqP0qLfwv p/2wXYM+avmn+ou0wOevQANc+OnkQmoY/aDcd73DOYf6tnZddiHJHgiCgI6e6qaDM90C iAiPOztz78GPUA4+zMk+BwwI8bVHQkDlHJQIvOgPW2Is96kNQVjksZhMaqz8xGXEzSto GDKA== Received: by 10.50.160.198 with SMTP id xm6mr2553620igb.0.1339129627448; Thu, 07 Jun 2012 21:27:07 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp14718ibb; Thu, 7 Jun 2012 21:27:06 -0700 (PDT) Received: by 10.68.217.100 with SMTP id ox4mr15808960pbc.87.1339129626359; Thu, 07 Jun 2012 21:27:06 -0700 (PDT) Received: from e35.co.us.ibm.com (e35.co.us.ibm.com. [32.97.110.153]) by mx.google.com with ESMTPS id ku9si8740685pbc.265.2012.06.07.21.27.05 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Jun 2012 21:27:06 -0700 (PDT) Received-SPF: pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.153 as permitted sender) client-ip=32.97.110.153; Authentication-Results: mx.google.com; spf=pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.153 as permitted sender) smtp.mail=paulmck@linux.vnet.ibm.com Received: from /spool/local by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 7 Jun 2012 22:27:05 -0600 Received: from d01dlp03.pok.ibm.com (9.56.224.17) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 7 Jun 2012 22:27:02 -0600 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id 9EB59C90058; Fri, 8 Jun 2012 00:27:01 -0400 (EDT) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q584R1oO131366; Fri, 8 Jun 2012 00:27:02 -0400 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q584Qw6t006580; Thu, 7 Jun 2012 22:27:01 -0600 Received: from paulmck-ThinkPad-W500 (sig-9-65-78-192.mts.ibm.com [9.65.78.192]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q584QvTk006541; Thu, 7 Jun 2012 22:26:58 -0600 Received: by paulmck-ThinkPad-W500 (Postfix, from userid 1000) id 78A84E51DA; Thu, 7 Jun 2012 21:26:57 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@elte.hu, laijs@cn.fujitsu.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@polymtl.ca, josh@joshtriplett.org, niv@us.ibm.com, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, Valdis.Kletnieks@vt.edu, dhowells@redhat.com, eric.dumazet@gmail.com, darren@dvhart.com, fweisbec@gmail.com, patches@linaro.org, "Paul E. McKenney" , "Paul E. McKenney" Subject: [PATCH rcu 5/8] rcu: Dump only the current CPU's buffers for idle-entry/exit warnings Date: Thu, 7 Jun 2012 21:26:52 -0700 Message-Id: <1339129615-1795-5-git-send-email-paulmck@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1339129615-1795-1-git-send-email-paulmck@linux.vnet.ibm.com> References: <20120608042632.GA1250@linux.vnet.ibm.com> <1339129615-1795-1-git-send-email-paulmck@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12060804-6148-0000-0000-00000685AA93 X-Gm-Message-State: ALoCoQktVF2Y5enPNqTiEHMH95avQDkk8BGHE7e6I+y9Ny8gkMwNS56MXlQymOVOoQKb3kSUBR5L From: "Paul E. McKenney" Problems in RCU idle entry and exit are almost always confined to the offending CPU. This commit therefore switches ftrace_dump() from DUMP_ALL to DUMP_ORIG. Signed-off-by: Paul E. McKenney Signed-off-by: Paul E. McKenney Tested-by: Heiko Carstens Tested-by: Pascal Chapperon --- kernel/rcutree.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/rcutree.c b/kernel/rcutree.c index 3b0f133..3b64896 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c @@ -357,7 +357,7 @@ static void rcu_idle_enter_common(struct rcu_dynticks *rdtp, long long oldval) struct task_struct *idle = idle_task(smp_processor_id()); trace_rcu_dyntick("Error on entry: not idle task", oldval, 0); - ftrace_dump(DUMP_ALL); + ftrace_dump(DUMP_ORIG); WARN_ONCE(1, "Current pid: %d comm: %s / Idle pid: %d comm: %s", current->pid, current->comm, idle->pid, idle->comm); /* must be idle task! */ @@ -467,7 +467,7 @@ static void rcu_idle_exit_common(struct rcu_dynticks *rdtp, long long oldval) trace_rcu_dyntick("Error on exit: not idle task", oldval, rdtp->dynticks_nesting); - ftrace_dump(DUMP_ALL); + ftrace_dump(DUMP_ORIG); WARN_ONCE(1, "Current pid: %d comm: %s / Idle pid: %d comm: %s", current->pid, current->comm, idle->pid, idle->comm); /* must be idle task! */