From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECF26C19F2A for ; Mon, 8 Aug 2022 02:51:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234795AbiHHCvV (ORCPT ); Sun, 7 Aug 2022 22:51:21 -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 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