Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp713595iob; Wed, 4 May 2022 06:37:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIBbO2nFEaP1pgt4HG6EgGzGQo9VKczoBTj0fRmzRL6laHUSM9I7VdvCDERYoxKKq7+77E X-Received: by 2002:a05:6a00:26cf:b0:4f6:fc52:7b6a with SMTP id p15-20020a056a0026cf00b004f6fc527b6amr20623786pfw.39.1651671430817; Wed, 04 May 2022 06:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651671430; cv=none; d=google.com; s=arc-20160816; b=jy9i36fGOmoTCtdGOzLs8My06mk6aPyUEAs0HbFJ3TWrj1o3L/++BWnd34+Y81HvNE 1Ub+ZBAMU2UmOPFcko8CRWzK2xwTiGRQetQY/EqCJUGuMccUNa7poYZ2JeWmneqqPAOb P0Zvs2CdhP9k1NBLvymU2W802r1rA7P3qPFqiNEeE0MGKpqnQGmZ8dzgbFEOwplWF958 7oFp1l7ax9vGBfGI9o+6Dc0lJZMeQQnQNTiYMDIcqTU6CxHii28n9hqJDl5CytIHkbkj AVu6Cyfp1rtkUXcSauPqpGVz7XHRaV/b5F82u/uQiTn9kWn86d8Bk9wenKD1FMu0yW53 BBwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=f2BU3+t5DYqkYThY0d1gO61pXwUsjhrMxVTtLHPwDPI=; b=b63iR3BsgudKFoI6npx3dBVX4ZVDWtDGo9XiSvOtF/34LgICpq/iMU/X5w+EPFG9d5 XUVMTWRPDkfaM6oKQkeDpCAtZaWZq6wH6rQ7TAL/LnveEOIDWTeFO5zk7AFlid5P0po4 zU4yKHTEoHZfTjyXL/G3kq6QGfy1zAVhviaDi6uiL68obzxthcF+UnPw701jaJHYUZjB I/Dc5igJq1tZVKKLp0hX3xLWbB+EEU+bLyR762JvCGh58UGL5TiaYeymFA9fwBkyCq/u ayoSTgjZTz99PFuXHlLbutqD3kxfciisEsGZ/BAMMN6IokznOAYAO322Y5uYrhUF8BdN 8YwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=DNW0smbO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s15-20020a63770f000000b003817672f2d4si19073178pgc.316.2022.05.04.06.36.55; Wed, 04 May 2022 06:37:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=DNW0smbO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347725AbiEDJuW (ORCPT + 99 others); Wed, 4 May 2022 05:50:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347727AbiEDJuN (ORCPT ); Wed, 4 May 2022 05:50:13 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C445726540 for ; Wed, 4 May 2022 02:46:38 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 4CF78210DC; Wed, 4 May 2022 09:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1651657597; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f2BU3+t5DYqkYThY0d1gO61pXwUsjhrMxVTtLHPwDPI=; b=DNW0smbOABig+ojoNBZ4DbJ6aEVK89nHBYWenqKldvaZyMeTKvPDNBJj/h5udOUsgAtqDP 6YAU77GyISTlPJEktcS2MlvU9T+TVOPYGI112xJfidWHrRifGr2Y16wD2VFoiWSPI+nig3 CfcoYgR6RMcExiGJfAaOkodK3ZSMqmY= Received: from suse.cz (pathway.suse.cz [10.100.12.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id EC0192C141; Wed, 4 May 2022 09:46:36 +0000 (UTC) Date: Wed, 4 May 2022 11:46:36 +0200 From: Petr Mladek To: John Ogness Cc: Marco Elver , Sergey Senozhatsky , Steven Rostedt , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, Thomas Gleixner , Johannes Berg , Alexander Potapenko , Dmitry Vyukov , Naresh Kamboju , Linux Kernel Functional Testing Subject: Re: [PATCH -printk] printk, tracing: fix console tracepoint Message-ID: <20220504094636.GA8069@pathway.suse.cz> References: <20220503073844.4148944-1-elver@google.com> <87r15ae8d7.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r15ae8d7.fsf@jogness.linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2022-05-03 21:20:44, John Ogness wrote: > On 2022-05-03, Marco Elver wrote: > > One notable difference is that by moving tracing into printk_sprint(), > > the 'text' will no longer include the "header" (loglevel and timestamp), > > but only the raw message. Arguably this is less of a problem now that > > the console tracepoint happens on the printk() call and isn't delayed. > > Another slight difference is that messages composed of LOG_CONT pieces > will trigger the tracepoint for each individual piece and _never_ as a > complete line. > > It was never guaranteed that all LOG_CONT pieces make it into the final > printed line anyway, but with this change it will be guaranteed that > they are always handled separately. > > I am OK with this change, but like Steven, I agree the the users of that > tracepoint need to chime in. My feeling is that the feature is not used much. Otherwise people would complain that it was asynchronous and hard to use. I mean that the printk() messages appeared in the trace log asynchronously. So it required some post processing to correctly sort them against other tracing messages. The same result can be achieved by processing printk log buffer, dmesg.log, journalctl. I guess that we will only find the answer when we push the change into linux-next and mainline. I am going to do so. Reviewed-by: Petr Mladek Best Regards, Petr