Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp125019iob; Tue, 3 May 2022 13:06:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp+CqjO0/Frg7xnVu3IdWZjG+Fk4DeKgKv+vvrJUbLM/p/YegmYf57XFm2d2siDjvQwKO4 X-Received: by 2002:a17:90b:1bc3:b0:1dc:61fd:7ea4 with SMTP id oa3-20020a17090b1bc300b001dc61fd7ea4mr6512222pjb.31.1651608400405; Tue, 03 May 2022 13:06:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651608400; cv=none; d=google.com; s=arc-20160816; b=vXdlh6NNysyJEm2kmbzFDLnj7+a/KJjkgbVtEJnBBcA4rOQPof+yK+1tr/CRE+yWkv W/zFhvE232FcvKQtZtV3cqqD8SnPEpOC9Ey+w7eCsFmrBsxrgMJdE2zch03NpOJNAjK6 wlI1hXnNKTfxG9pf5EDy6/Q+qf5LkYA6ASE6Wib3uGaUEoPa1vY1ggFcicRdZHWzdBdG +wMD/6zwj+VBewGRMi6Y3i7PvSBo9978a3C8Yd6W/f0opcA/Ej/0goTpNaAwsFYLc0HD 4tfDJcfQ8K3Em0Tq/UeW8qW1sF1sMWm8u0C6kHPhsaL6MZPulXtSQ63NF2Pqu92QhheZ uoSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=q6tI8vR0YuSpmVwH6PHCfJgGfXuGMuhIaoQrWI4CdGw=; b=LKcMsl4jkLqBOATIEmDqLzYRX7WbjvLyeNoJELe/VGud2Ydf7AZSh8sehfmr6GOJXA 1cqsWiY0zP+JiLhL/i7Aew2F+FfkBmHSXyT7L/7viT0YfLFAFKUhPKfxUTLLoC2rqpA2 tQSjRlGJPg/yY+p++kcMRheG28R58Zy+aReXa+5PUdMmMYjMm0UeCqwpHhFU0oNpNGwm 4b7PE13PBDj0NYoa6K/vDffDmQXT8OHuTs2TNWdOjHZtq1TiQplVUAu+5ge+OFSLW2cX dUtpGOUdkDdzUZq9l6SMsoG3P7Zr8Gxt28E1OeFKd6seQdEhAxmVpdhxY3HkGTtYrH29 EgFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=nJKRf3Pj; dkim=neutral (no key) header.i=@linutronix.de; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020a170902ecd200b00158721713e3si5152587plh.449.2022.05.03.13.06.04; Tue, 03 May 2022 13:06:40 -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=@linutronix.de header.s=2020 header.b=nJKRf3Pj; dkim=neutral (no key) header.i=@linutronix.de; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238114AbiECTSV (ORCPT + 99 others); Tue, 3 May 2022 15:18:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231891AbiECTST (ORCPT ); Tue, 3 May 2022 15:18:19 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C59F63FBC5 for ; Tue, 3 May 2022 12:14:46 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1651605285; h=from:from:reply-to:subject:subject: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=q6tI8vR0YuSpmVwH6PHCfJgGfXuGMuhIaoQrWI4CdGw=; b=nJKRf3Pj9dvK/EarBtS+yl7zuJVIGKBafsjSHGSfGV6ooXPgHTjjoLW2YwmX0bqScFTCMt GtwhyTQmf9gaNKGTK2bZnJi1OQHJ2u3IZfNpjlVvWelgS5jcE/WHWCujpupa9sYhzdUH8s FL16iFJUMBGxlbcE/slkl9sVLTJ8g/ydgaVlgbz6wljgg7AI7k4N9MAD/mYpREI3PMhZ1p bkknx+tkcF0XpC7aAmSjzIAJhdn0Cd0eD3SABQDy4LopbL+NnwU1LO/Kw0paoXc4oft1wf 3/Pdo737DoNtTAeiTDPBLMNigNkjYgs7Vds7cig7Zdo5kI6Opo1rb3P2m5XXnA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1651605285; h=from:from:reply-to:subject:subject: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=q6tI8vR0YuSpmVwH6PHCfJgGfXuGMuhIaoQrWI4CdGw=; b=lIcRAQpKhjnsR49SdKQ/d3gXD31jILuoQ9RGrLkFWGDx96L1Vgfyk3UgaUWy0jE8mW7cKj 2eFnA50g7UBtIICA== To: Marco Elver , elver@google.com, Petr Mladek Cc: 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 In-Reply-To: <20220503073844.4148944-1-elver@google.com> References: <20220503073844.4148944-1-elver@google.com> Date: Tue, 03 May 2022 21:20:44 +0206 Message-ID: <87r15ae8d7.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, 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 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. Acked-by: John Ogness The ongoing printbuf/seq_buf work [0] will hopefully someday do away with LOG_CONT altogether. John [0] https://lwn.net/Articles/892611