Received: by 10.213.65.68 with SMTP id h4csp313288imn; Tue, 20 Mar 2018 04:20:49 -0700 (PDT) X-Google-Smtp-Source: AG47ELtHcmnbuImu+IKVOYzw2L0BhO+WjVCE5r/1DtnQE0IBvDeaLUiG4VP3vU6P2I9jvrRnnSgs X-Received: by 10.98.41.134 with SMTP id p128mr13400782pfp.120.1521544849585; Tue, 20 Mar 2018 04:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521544849; cv=none; d=google.com; s=arc-20160816; b=H3+K95MB5Sc8izTrPPb7JYRIPDnge/iFZg9ZNqnpB68aB3WHSC++LBoGNyuSWeQi5O /0WpwoJamX0ea2WzDlEkxHZRpuQhQb1CiRL3M2nHP0XeaNM7rwIcB9SlD/yV1Fuy8trF fMiFxUgaBd8WoRvss1Rqzj4HkEB+MH+gny1t0jGv64PzISBjTUSX8uPwpqTic2C2Dxx5 DRMiMjKyy5uaMjPgQWKYbJMTA6Z787s7tcrxIP1aU8eNp+7qo/2io/DKqE0FgWPXXojN /TlsCmZa4giiMzuFlOUOUtmN133H+AcmWV/xYnDUhqL8KCFLhbBK30Nf2Xe+wCVA+HVE QqwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=Ei74p6ZLOzDqk2zA5a1rC344LJph+khk/DuPpCdiNv0=; b=bAAGqk23UnYS5syHsU4ddmH/bK9jXtOKFZSDwsJ4oqX9AO9kzzkwSwfuhlfagGOF0f 8erELnrXX7QwkVOkvKhvnAoTaVBpIgwFeOPaTPMXiNaXajBu3nloRbGpIcGcveQ64L/j 6gUT3Fn5mtrZdgjwGQqZGEQZ8nlkq55904R9MlVk7KS+zNCLEYx91AwOQTp4oK6wQ8IB 8SNkCnIug+2dggbHKWTUqDhFv4u4vOo9GJ+CWr5GEa2ByaUeqZZksbJraxY8qHvmUfUR eOAFEyW0jakqqHBxHU4FhPTzJ80O//c4jPKSs/fY5lvNdAab2T4r/lGuI7Me+rKNSrmn 299w== 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 u3-v6si1469226plb.593.2018.03.20.04.20.35; Tue, 20 Mar 2018 04:20:49 -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 S1753138AbeCTLTC (ORCPT + 99 others); Tue, 20 Mar 2018 07:19:02 -0400 Received: from terminus.zytor.com ([198.137.202.136]:58349 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753087AbeCTLS7 (ORCPT ); Tue, 20 Mar 2018 07:18:59 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w2KBIbWS013929; Tue, 20 Mar 2018 04:18:37 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w2KBIbFF013926; Tue, 20 Mar 2018 04:18:37 -0700 Date: Tue, 20 Mar 2018 04:18:37 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Joe Lawrence Message-ID: Cc: peterz@infradead.org, torvalds@linux-foundation.org, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, joe.lawrence@redhat.com, hpa@zytor.com Reply-To: torvalds@linux-foundation.org, peterz@infradead.org, hpa@zytor.com, linux-kernel@vger.kernel.org, joe.lawrence@redhat.com, tglx@linutronix.de, mingo@kernel.org In-Reply-To: <1521484555-8620-2-git-send-email-joe.lawrence@redhat.com> References: <1521484555-8620-2-git-send-email-joe.lawrence@redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/urgent] sched/debug: Fix per-task line continuation for console output Git-Commit-ID: a8c024cd9b9683d25ae1f459525dd2c6bec75e79 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: a8c024cd9b9683d25ae1f459525dd2c6bec75e79 Gitweb: https://git.kernel.org/tip/a8c024cd9b9683d25ae1f459525dd2c6bec75e79 Author: Joe Lawrence AuthorDate: Mon, 19 Mar 2018 14:35:54 -0400 Committer: Ingo Molnar CommitDate: Tue, 20 Mar 2018 09:30:09 +0100 sched/debug: Fix per-task line continuation for console output When the SEQ_printf() macro prints to the console, it runs a simple printk() without KERN_CONT "continued" line printing. The result of this is oddly wrapped task info, for example: % echo t > /proc/sysrq-trigger % dmesg ... runnable tasks: ... [ 29.608611] I [ 29.608613] rcu_sched 8 3252.013846 4087 120 [ 29.608614] 0.000000 29.090111 0.000000 [ 29.608615] 0 0 [ 29.608616] / Modify SEQ_printf to use pr_cont() for expected one-line results: % echo t > /proc/sysrq-trigger % dmesg ... runnable tasks: ... [ 106.716329] S cpuhp/5 37 2006.315026 14 120 0.000000 0.496893 0.000000 0 0 / Signed-off-by: Joe Lawrence Acked-by: Peter Zijlstra Cc: Linus Torvalds Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1521484555-8620-2-git-send-email-joe.lawrence@redhat.com Signed-off-by: Ingo Molnar --- kernel/sched/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 1ca0130ed4f9..50026aa2d81e 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -32,7 +32,7 @@ static DEFINE_SPINLOCK(sched_debug_lock); if (m) \ seq_printf(m, x); \ else \ - printk(x); \ + pr_cont(x); \ } while (0) /*