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 3048CC001DF for ; Mon, 31 Jul 2023 14:34:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230406AbjGaOev (ORCPT ); Mon, 31 Jul 2023 10:34:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231388AbjGaOev (ORCPT ); Mon, 31 Jul 2023 10:34:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7360610D; Mon, 31 Jul 2023 07:34:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 025336117E; Mon, 31 Jul 2023 14:34:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E21C3C433C7; Mon, 31 Jul 2023 14:34:47 +0000 (UTC) Date: Mon, 31 Jul 2023 10:34:45 -0400 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: LKML , Linux Trace Kernel , Mark Rutland Subject: Re: [PATCH v2] tracing: Add a debug_trace_printk() function Message-ID: <20230731103445.497e48d8@gandalf.local.home> In-Reply-To: <20230730104321.f30784d6397b65636ac5f2cd@kernel.org> References: <20230613095537.0ecf2459@gandalf.local.home> <20230730104321.f30784d6397b65636ac5f2cd@kernel.org> X-Mailer: Claws Mail 3.19.1 (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-trace-kernel@vger.kernel.org On Sun, 30 Jul 2023 10:43:21 +0900 Masami Hiramatsu (Google) wrote: > Sorry, I missed this patch. > As far as it depends CONFIG_FTRACE_DEBUG_PRINT, this looks good to me. > > Reviewed-by: Masami Hiramatsu (Google) Thanks, note I've been holding off on applying it to make sure I really do need it. I have used it twice since posting. It's great to debug something in the tracing infrastructure ;-) > > BTW, what about adding generic trace_loglvl_printk(loglvl, fmt, ...)? > > This is a macro that will be expanded to 'trace_loglvl__printk(fmt, ...)' > where N is 0-9. Then we can filter the trace_loglvl_N_printk event to a > specific instance. Hmm, interesting idea. I'll have to think about it. -- Steve