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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F410C433FE for ; Tue, 9 Nov 2021 17:40:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0C8F261208 for ; Tue, 9 Nov 2021 17:40:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240970AbhKIRni (ORCPT ); Tue, 9 Nov 2021 12:43:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:47526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236368AbhKIRng (ORCPT ); Tue, 9 Nov 2021 12:43:36 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8C7BC61208; Tue, 9 Nov 2021 17:40:49 +0000 (UTC) Date: Tue, 9 Nov 2021 12:40:46 -0500 From: Steven Rostedt To: Sai Prakash Ranjan Cc: Will Deacon , Catalin Marinas , , Marc Zyngier , , , , , , , , Subject: Re: [PATCHv3 3/3] dynamic_debug: Add a flag for dynamic event tracing Message-ID: <20211109124046.2a772bcb@gandalf.local.home> In-Reply-To: <264b77dd-5509-60f9-248c-a93135b01aa9@quicinc.com> References: <3706af20bc64a320ff8f3ff8950738b988f4bdf5.1636452784.git.quic_saipraka@quicinc.com> <20211109104941.2d50eafc@gandalf.local.home> <20211109115951.1c2b5228@gandalf.local.home> <264b77dd-5509-60f9-248c-a93135b01aa9@quicinc.com> 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 Tue, 9 Nov 2021 23:00:11 +0530 Sai Prakash Ranjan wrote: > Ah that's a very good idea, descriptor does contain the module, file name. > We can probably even pass the module name,file name as string from the > descriptor itself to event? > Perhaps we can do that for all trace events and not just this trace > event? Just like the trace event name displayed > with trace events, perhaps have file name,module name displayed when > dynamic debug is enabled? Filtering by > filename is pretty useful since most of these usecases in debugging will > be with respect to some driver or subsystems. If we add this for all events, it would require a lot of changes to all users of tracepoints, as it would require adding a new parameter to the callbacks. We could add a flag in the registering that states that the callback is OK for it, and it passes that data as well. Let me look into this for a bit. I may not have something this week, but we should look into this more before adding little hacks that do this one at a time like this patch. -- Steve