Received: by 10.213.65.68 with SMTP id h4csp209104imn; Tue, 20 Mar 2018 01:10:36 -0700 (PDT) X-Google-Smtp-Source: AG47ELuO9+WwWG4sG+DmKdgkG0hixQWOy0Q2f7Ieux+vOEEoZa+RopoxatkAQO0lo0WID5n8uFvh X-Received: by 2002:a17:902:82c2:: with SMTP id u2-v6mr15170735plz.401.1521533436129; Tue, 20 Mar 2018 01:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521533436; cv=none; d=google.com; s=arc-20160816; b=Sj7MB0Q1h59UAzuSFWOOOs7tcAVfGCa8Ilg/o7jWKxF4sVmop11qhR1Rvryx57ANC9 OJ+9Hz9p/t4nChM0e0doubz8eInxVwOAVA0ROVGDQ2sdPxCQ6mtCT9vPC2q/cJZbSiNK lv4sDw8fIpGAWFMWtOfx/u2rk4jagFeCaiIjqhRbThdnifss8rchs97kZN5i8tSBSzm0 uQzTYNAMOjOl0JPebygZtGj9rnlcyJVBxtCYTuo9CTky8AdWcnx/XzD6weeA9zSenHqm HEW7hIdMH5CXeBp7vQmkm5sD9kO6gjrLQ6jC9jzm0/qrrsZHLeMULED6jRXggLWkz1xQ n77Q== 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=jEGM4BzHf7mLZvcagwfs/5GOOa93MgdWcagZgKKDpFA=; b=n3HhU3OTvSVrxAhTLigQ0WFgOdjxKKz/UaKh31LrItaUssWOBfehcYUgcVi3PInJBK E8Z7K5/IOhse6jOrrHqmC+MetmKzXzvCKUMN6mX1/B6Cn/qJghjPAsHvmfObTzuwiwHO /4nuCb/EJOp5gHcTT4Uarfl0sHecsZ9g8CNrtCdYqpHcz4IgyY4c2nq0pus5+pmZ+V5H Wnq3Y5qelw7AmeAg1Zn/5394aViLkq4l0quE6nRFHG9bAXiD9ImtAD9W0MhNzgDfuLp/ e0DmosHNN4jh0ZGvNUdgSDNN992IfjCQK8/NrMAJC+8uX900GoHIM0cLe+6NFAjr+26O 9amA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=MwXWTrdj; 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 l59-v6si1095788plb.77.2018.03.20.01.10.21; Tue, 20 Mar 2018 01:10:36 -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=MwXWTrdj; 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 S1752061AbeCTIJB (ORCPT + 99 others); Tue, 20 Mar 2018 04:09:01 -0400 Received: from merlin.infradead.org ([205.233.59.134]:33310 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751687AbeCTIIz (ORCPT ); Tue, 20 Mar 2018 04:08:55 -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=jEGM4BzHf7mLZvcagwfs/5GOOa93MgdWcagZgKKDpFA=; b=MwXWTrdjD/NwU67eLVdxYyGvv T0O8oM/v/Wy1mjXdrVKMb1aTZ35o6Qq1zzG3XminfEFk2QCZJhH9wCYjSyFAtMTwF4qC4IJLUczlw Q3IXnvVBTkfSwqPYOA0TUpNfNbg4NaYxmPO1zdhbn41BA6EXg/2G7DkFtUCY3XY/Y0tPauZRg2G7I mcaB0oy18de9QH1ShuxvvjCHsS6QsgYcISmsnG+g0Uok1w4vHhXWykN8Nz50Bdw0HsZkcVGK8NyK8 RZRJcRSK5IDIwz0NQ8jIH5Ny6G6rkdGI70uA5qsYfEYaEcPJhEenv5nZWrOT+eHZGTQ71MHHeJxqL 1MDexP8Hg==; 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 1eyCKD-0004Hy-ON; Tue, 20 Mar 2018 08:08:54 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 45894202A29FB; Tue, 20 Mar 2018 09:08:52 +0100 (CET) Date: Tue, 20 Mar 2018 09:08:52 +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: <20180320080852.GM4043@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> <20180319201723.GK4043@hirez.programming.kicks-ass.net> <6b826ab1-c6a4-244e-ace6-d735b415a268@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6b826ab1-c6a4-244e-ace6-d735b415a268@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 04:43:28PM -0400, Joe Lawrence wrote: > On 03/19/2018 04:17 PM, Peter Zijlstra wrote: > I don't have the commit offhand that changed the printk behavior, but > from observation: 4bcc595ccd80 ("printk: reinstate KERN_CONT for printing continuation lines") and thereabout I think. > > Does pr_cont("\n") DTRT? it seems like something weird. > > > > Yeah, pr_cont() is kind of a hack. It will terminate a line if that's > the first newline, but as demonstrated above, I don't think it likes > extra newline chars. Fair enough I suppose, just a bit weird. > A better fix would be to marshal the text into temp buffer then dump it > out. Dunno if you prefer that kind of churn for these stats. Yeah, not worth it, simple is better here.