Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3478281iob; Sat, 7 May 2022 06:13:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBhutNT/gLdHIr/N05X8RLG/cWYDFm4B63B2Z277V3YFWKAJ6NKVCYbqORmkEe4nJwkMZw X-Received: by 2002:a17:906:99c2:b0:6f4:a99c:8dfc with SMTP id s2-20020a17090699c200b006f4a99c8dfcmr7771637ejn.386.1651929210140; Sat, 07 May 2022 06:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651929210; cv=none; d=google.com; s=arc-20160816; b=mVJoGP6MVcW9WTLY47tlFgZEhD/yHqNJC2A30m2zJS0dtOeDefp6SbNkIZvJCURW0H utsLrtyCukwSTumsrTK7/Zgobcs9hJpeEkMhW1teeuuvzLIqxWXBS90bs8PTMsaxOmta W2/nvZVy5IOonZpcIY4Xwnm6cmAqtgubDEDm43rRSYdoV4s97nvEdy2x13LZGnx07bnn r9u99WR/mBfOX33Fip/mrMj0kPjUfDZ/z6AHG3mryCP/96nCCxHFLKNAAufxIO8sXqL9 EZpGf2QBcA+74WXILAb0rKzESrvW2dcFlojpMfxO9bLvUfBdFFuFaGraiatDeNS6yhwd CP/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2EeefnG5AGR7PlyADAb1h9k2ib8JA+PQGwQZqxKTjr0=; b=jOYxAhNuOLocFO2p1D5KIZZlZfrYj/yPzkccMIbf9r5VSUz36QmMUFdgffcUSNk/sl QmQG2hTBWzE3iHJHSF2OOHqjFAUfsbCI8oxtOd/DNhF4bfxSvTGNZQmk+6UiGvFwXOvu GOYYDSXQcd0/2vf93Qp/PiQHsVdKD6uCgf8XCZdVU8Ot8HmlOPX81w2qqJXvr1islB2L dNPiEecbZGj1ifj3xmUZ0m+blT8HkFEciEHE2FQwwtDEAGnqSgGzKHIILTGkpWwb5CwT E6et4FVs9o9fZ/GFQFGomD40dvN3fLxOvZgR2pEWFUVwAnHyYfc7jT4xYuB0JjsWVfDV zLSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=qC4Ctuw5; 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 g2-20020a170906868200b006f3b16423ebsi7686032ejx.620.2022.05.07.06.13.06; Sat, 07 May 2022 06:13:30 -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=qC4Ctuw5; 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 S1442473AbiEFOyx (ORCPT + 99 others); Fri, 6 May 2022 10:54:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351730AbiEFOyu (ORCPT ); Fri, 6 May 2022 10:54:50 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0311469732 for ; Fri, 6 May 2022 07:51:06 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 6FD3D1F8DA; Fri, 6 May 2022 14:51:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1651848665; 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=2EeefnG5AGR7PlyADAb1h9k2ib8JA+PQGwQZqxKTjr0=; b=qC4Ctuw5+kcP018ILN1cRymV/JDSO8f5FOhxv7A+KVGopmMy/H/mO0Fx96EmvoWpfkfmxx qAUK39iCKPMctBFzKtUXns9izomLttyNbA2Uqd2CPukpa75Bv5hOz7UGLYsAS2Dx7r5h8/ MjQDu2roNTDB3aRgiDo9DxRRBp8gsMw= Received: from suse.cz (unknown [10.100.201.202]) (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 1C6572C142; Fri, 6 May 2022 14:51:04 +0000 (UTC) Date: Fri, 6 May 2022 16:51:03 +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: References: <20220503073844.4148944-1-elver@google.com> <87r15ae8d7.fsf@jogness.linutronix.de> <20220504094636.GA8069@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220504094636.GA8069@pathway.suse.cz> 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 Wed 2022-05-04 11:46:36, Petr Mladek wrote: > 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. JFYI, the patch has been committed into printk/linux.git, branch rework/kthreads. Best Regards, Petr