Received: by 10.213.65.68 with SMTP id h4csp39819imn; Mon, 19 Mar 2018 18:51:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELueyDbasxU4kqC9rzNSQCid3Ky/pCaFDeMAr+AJ2IH04DBdgIGDDzuSXFKAQe27Y2NBlQXw X-Received: by 10.99.117.68 with SMTP id f4mr10540445pgn.369.1521510671886; Mon, 19 Mar 2018 18:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510671; cv=none; d=google.com; s=arc-20160816; b=d2hwhOZeRIYsbvQGipU/WvBTcziDUvT4l5XurIxlElnvHVvvxiVd4hevo2wvR/YSSk V9H7L4G4/FZXtV0OKSYPfxyf/9sqzz67ri+mIU5HevD5c1Gm5wg4EyT/QNbThuATW3rz PTswU3xg/ewOkq6ojEsAB4Fkt2SkiWVy4nBmvyiBVSz5U9fPRpIk0KmuRZdkb0OkjtfR g6oYikQ1T/+6cnI2YLfN+Z96B/C+JhA4uv5sM/zTWI6SJGfLEzjup5UrFGzGtptbKcYP TT+jVw59c+BcC0z2urVJHGZHZP2vTfj6QhR3bFudnvkkkPXmOxg9XBZNasadII6XyFTm eUAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=Ph4xtRCtSNs6ZKwaUUDlkdLyW32c8Nswa8k1CV+/3p0=; b=Tjz9Nr6rcjtLNEO4Mxd6tDSyNFZ+p4mHnVXZXxWyH/swE2dxQgxvdntMlEsG463yCi A4JGzZfbuzYonRFa5v9Wf5sp0DI+hBGOSqdPpGSYNHcQaaJdR2v7XI2ub+D00P04axmc HTtFzgMQoFNae6yzvwQDcD9+VfSSETc9qPccEKt80NM2DQQL9M7TCGRlytNEpza/dMHi RbzfOulX+k+l8w6hgWsdMZSeuVx8gkfOGT6lP3f3SG65oQ+1jk68INDjSlZf75NE/BnK 8WZFs2GpEyJQfL+PBdyM8+eXM2oO7RHIcNgFK2rrr7c4whBN9eM2htqk5+B2MBGnZ+s/ fraw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Va2V09ZQ; 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 y30-v6si494318plh.441.2018.03.19.18.50.58; Mon, 19 Mar 2018 18:51:11 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Va2V09ZQ; 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 S971258AbeCSURc (ORCPT + 99 others); Mon, 19 Mar 2018 16:17:32 -0400 Received: from merlin.infradead.org ([205.233.59.134]:54448 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969057AbeCSUR0 (ORCPT ); Mon, 19 Mar 2018 16:17:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ph4xtRCtSNs6ZKwaUUDlkdLyW32c8Nswa8k1CV+/3p0=; b=Va2V09ZQNCk8aSB32pjnf+HHe Yjr3BlzJyh3FmSHW9wQG8pQt6ajwnbPP8zT0nVr/XNWQif2kTpHKXJLCxhg+TK5iTwa3rx6ZE/iP5 W4p5SYCkFKqARShR83oFDTznBiKmsTEZ0tIkdhXxumOKRCOoPLzg+mzwMxK3/U7syWT/LGT4PrcFS jM9WcfkvqewxsuqORXZCOF30iMcUeujp/EKgYWOZ1cvM/BtASKlHTLvKSkjakbyDeRoLmpq88+VAQ tb90pJdarxCCQ/qwzh9t3Lfr3Gq/7fbAqAlA+SbPAqO+EYvJHFt9pNZzlRy/59V4bWdNwK2EfIib/ JhHYEyd0g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1ey1Dg-0006yg-JB; Mon, 19 Mar 2018 20:17:24 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6A6382029F86F; Mon, 19 Mar 2018 21:17:23 +0100 (CET) Date: Mon, 19 Mar 2018 21:17:23 +0100 From: Peter Zijlstra To: Joe Lawrence Cc: linux-kernel@vger.kernel.org, Ingo Molnar Subject: Re: [PATCH 1/2] sched/debug: fix per-task line continuation for console Message-ID: <20180319201723.GK4043@hirez.programming.kicks-ass.net> References: <1521484555-8620-1-git-send-email-joe.lawrence@redhat.com> <1521484555-8620-2-git-send-email-joe.lawrence@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521484555-8620-2-git-send-email-joe.lawrence@redhat.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 19, 2018 at 02:35:54PM -0400, Joe Lawrence wrote: > 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); \ That used to work I think.. I think someone changed how printk() behaves somewhere along the lines. Does pr_cont("\n") DTRT? it seems like something weird.