Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752269AbaBGU2R (ORCPT ); Fri, 7 Feb 2014 15:28:17 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.225]:20628 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751446AbaBGU2Q (ORCPT ); Fri, 7 Feb 2014 15:28:16 -0500 Date: Fri, 7 Feb 2014 15:28:14 -0500 From: Steven Rostedt To: Steven Rostedt Cc: LKML , Ingo Molnar , Frederic Weisbecker , Peter Zijlstra , Thomas Gleixner , Johannes Berg , Andrew Morton , Wolfgang Grandegger Subject: Re: [RFC - beta][PATCH] tracing: Introduce TRACE_MARKER() no argument trace event Message-ID: <20140207152814.16e263ab@gandalf.local.home> In-Reply-To: <20140207112357.35552998@gandalf.local.home> References: <20140207112357.35552998@gandalf.local.home> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 7 Feb 2014 11:23:57 -0500 Steven Rostedt wrote: > > The TRACE_MARKER() is basically an optimized version of TRACE_EVENT() > with no arguments. It can be enabled and disabled the same way as any > other event, and stays within the system it was created in. > > Is this worth doing? > I'm thinking no. And unless someone can give me a good reason that we should have such a thing, I will Nack my own patch! Johannes, What's up with trace_iwlwifi_dev_irq()? You are tracing it but not saving any information. There's obviously a reason for the iwl_pcie_isr() to be called (it's handling something). Does it do the exact same thing every time? No variables are needed then? What I'm trying to say is, if you go through the trouble of inserting a tracepoint into some location, might as well extract data from it. Otherwise you are wasting space in memory. If all you want to know is if the function was called or not, then simply use a kprobe or function trace that function (noinline to allow ftrace to trace it). Unless I get some feedback to why this is a good idea... Nacked-myself-by: Steven Rostedt -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/