Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4277322rwb; Sun, 7 Aug 2022 20:08:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR7q3nMpnCfmyky1KGgH/5DpBnNRvLBLVZXvVfZkbGZeArkYdxT5XFQ8Yo+E7bTBghi985Rq X-Received: by 2002:a17:906:d54d:b0:72f:9b43:a4bf with SMTP id cr13-20020a170906d54d00b0072f9b43a4bfmr12964902ejc.200.1659928116270; Sun, 07 Aug 2022 20:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659928116; cv=none; d=google.com; s=arc-20160816; b=FuLt7y99fZNbxV8rmkLDmwoArulmGTZ9Zd/Rb909wF/rjPcAyy4++J68hiTVQxKbir 8nEdAl6FrLa/WsN5ydNG/ZHFimHpuYongvjkZ8xqiPgU2KI9Hytyk/DL909gn2vLr8Ns Oa4g71qMNucSV5t7yzwScDDPgvBW1y0XLHXe3hro51xvVUV9NUdMxigfTp1hHOROFc/B H9J3aCmyEl5nry1/mKdNQww8b0yOhEcPv0pgSFS/BrFt/k8SBvnSINH1pgI7kghHB6nU JTpDrcZoy7fgD7QZTBQuWcaxhLdjoPaw8PYgWbIYriQf0XsmCUjZIC2CoQTjELdoL/7z aeJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=I+zGMasw+7grLpkkVQk4TbQ/8CuXw7Dl7r+ZtLUV5xM=; b=oz1LoD4eMT96zASBLGNSUrZxVF5FYYx/BHJK/4BFEPkVuzqGOo4RLMn95whVDpSR+m 02umQgsiD06nUG9iABYqFQX7Z14r5/aD/CrnOJepU8qh87goQ/cUPDJc5Z8uxuEVGEep cIX4NCnFv3SXvAJTa6ISScOtkHdciQWg2EsP/JeLOyeQx7dP1EY8H5/DsLIjw1Vt2kbo X22fIfr3MCtUAodxQyDM1mHzcfA3RfUr5aJLZ9QTUh5tH5n+hxS4barFwgoC1OM4fYVI oh2P3j1CjbLc5sVumAXdjP/abNw8ZOCKFs774ndhxGZPfaJoD/XoXlZBk+oINXiJQAtp mHtQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a056402278600b0043cb30af926si5483024ede.58.2022.08.07.20.08.11; Sun, 07 Aug 2022 20:08:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234247AbiHHCvU (ORCPT + 99 others); Sun, 7 Aug 2022 22:51:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233614AbiHHCvT (ORCPT ); Sun, 7 Aug 2022 22:51:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03FA52BE0 for ; Sun, 7 Aug 2022 19:51:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 253A060DD3 for ; Mon, 8 Aug 2022 02:51:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7A2CC433C1; Mon, 8 Aug 2022 02:51:12 +0000 (UTC) Date: Sun, 7 Aug 2022 22:51:13 -0400 From: Steven Rostedt To: "Matthew Wilcox (Oracle)" Cc: linux-kernel@vger.kernel.org, pmladek@suse.com, Kent Overstreet , Ingo Molnar Subject: Re: [PATCH v5 31/32] tracing: Convert to printbuf Message-ID: <20220807225113.6a74b481@gandalf.local.home> In-Reply-To: <20220808024128.3219082-32-willy@infradead.org> References: <20220808024128.3219082-1-willy@infradead.org> <20220808024128.3219082-32-willy@infradead.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,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 Mon, 8 Aug 2022 03:41:27 +0100 "Matthew Wilcox (Oracle)" wrote: > > @@ -9826,20 +9821,8 @@ static struct notifier_block trace_die_notifier = { > void > trace_printk_seq(struct trace_seq *s) > { > - /* Probably should print a warning here. */ > - if (s->seq.len >= TRACE_MAX_PRINT) > - s->seq.len = TRACE_MAX_PRINT; > - > - /* > - * More paranoid code. Although the buffer size is set to > - * PAGE_SIZE, and TRACE_MAX_PRINT is 1000, this is just > - * an extra layer of protection. > - */ > - if (WARN_ON_ONCE(s->seq.len >= s->seq.size)) > - s->seq.len = s->seq.size - 1; > - > /* should be zero ended, but we are paranoid. */ > - s->buffer[s->seq.len] = 0; > + printbuf_nul_terminate(&s->seq); > > printk(KERN_TRACE "%s", s->buffer); > > diff --g Please remove the two tracing patches and the deletion of the seq_buf from the series. Thank you. -- Steve