Received: by 10.213.65.68 with SMTP id h4csp1729550imn; Mon, 19 Mar 2018 11:38:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELuEEwnjkoawhVvdfnGL3o1G9vS9wShol6LymVaVcwbhey95tj1VJT4d6qLSYMaAXRj6/ytw X-Received: by 2002:a17:902:d90b:: with SMTP id c11-v6mr13750539plz.200.1521484707518; Mon, 19 Mar 2018 11:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521484707; cv=none; d=google.com; s=arc-20160816; b=RlnUbHo7STGvYsJrJ7R0Wuk0bUWjEd48DZLxSXLIjRtpTL/LIh8fvBiBSfHb2v2Enj fvAd50JO8khjEm02R6CDj9gg6YD5CfIvfIn4oQvoBJr9u1mDe7UpnECZ4fF2hvY+gRA3 fEuZE5O11J+aFvKACLqvI1X5DlyCrEX+YSbKLmAjmUCgH7P1znpOziVSoVW+Ev5KHCZN G0xRSxmO4hLe6yT7TCU6IkCgEaoNqo+xzLxyQYRS2BThrOwjaq3Wja3LYkT44asewNrR X4ij4vst6J/BQTrFaWykTd6f/1iBVQPjWOEBd92qthoKXKW4QQCOJKT2wKcuLyeoQR0t vzuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=36IvRyKgjDrDNi4pcH6bik7cSRW2GdoCBMv4h0i8rCU=; b=S8GC1TW3HTBGzDnY65MI+/s9sYJ6ciV+C8/xM2PrYncaWGQZGmVRkGZYHGrsaLRjbi 9uimTeKwByX7ZA/gyEJm/JONZyLEqrB3ZOX+QdB+qISWGrrQ1ycjT20Xn6TQM511mdLe dtyNj1OPfbYzus6pogxgprugDJDYyhSAR9SjA82adEyqql+bSTbwOnEF/CIJPYKgGnG/ dTiwsHb/OVf5lOtLEXWH2FE8A8yPNe2C8KRneRpdKto3ffE5ECBoIna9/OSG6hzQlFI2 w9aUrCgqAjuf9KYFG0AUBKJA3OLu4YIN15h8ogvFtWxierieHgrDYFEl+GQvsTdxi7Ky THew== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2-v6si381347plh.649.2018.03.19.11.38.12; Mon, 19 Mar 2018 11:38:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935722AbeCSSgg (ORCPT + 99 others); Mon, 19 Mar 2018 14:36:36 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58514 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965507AbeCSSgE (ORCPT ); Mon, 19 Mar 2018 14:36:04 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CDBF940252F5; Mon, 19 Mar 2018 18:36:03 +0000 (UTC) Received: from jlaw-desktop.bos.com (dhcp-17-208.bos.redhat.com [10.18.17.208]) by smtp.corp.redhat.com (Postfix) with ESMTP id A22A16352E; Mon, 19 Mar 2018 18:36:03 +0000 (UTC) From: Joe Lawrence To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Peter Zijlstra Subject: [PATCH 1/2] sched/debug: fix per-task line continuation for console Date: Mon, 19 Mar 2018 14:35:54 -0400 Message-Id: <1521484555-8620-2-git-send-email-joe.lawrence@redhat.com> In-Reply-To: <1521484555-8620-1-git-send-email-joe.lawrence@redhat.com> References: <1521484555-8620-1-git-send-email-joe.lawrence@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 19 Mar 2018 18:36:03 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Mon, 19 Mar 2018 18:36:03 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'joe.lawrence@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 @@ if (m) \ seq_printf(m, x); \ else \ - printk(x); \ + pr_cont(x); \ } while (0) /* -- 1.8.3.1