Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-13 Thread Mathieu Desnoyers
nnes Berg" > , "Linus Torvalds" , > "Peter Zijlstra" > , "Thomas Gleixner" , "Greg > Kroah-Hartman" , > "lttng-dev" , "Rusty Russell" > , "Andi Kleen" > Sent: Wednesday, March 12, 2014 11:10:53 PM >

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Mathieu Desnoyers
er" , "Andrew > Morton" , "Johannes Berg" > , "Linus Torvalds" > , "Peter Zijlstra" , > "Thomas Gleixner" , > "Greg Kroah-Hartman" , "lttng-dev" > , "Rusty Russell" > > Sent: Wednesday,

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Andi Kleen
rg, "Ingo > > Molnar" , "Frederic Weisbecker" , > > "Andrew Morton" , > > "Johannes Berg" , "Linus Torvalds" > > , "Peter Zijlstra" > > , "Thomas Gleixner" , "Greg > > Kroah-Hartman"

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Mathieu Desnoyers
nnes Berg" > , "Linus Torvalds" , > "Peter Zijlstra" > , "Thomas Gleixner" , "Greg > Kroah-Hartman" , > "lttng-dev" , "Rusty Russell" > , "Andi Kleen" > Sent: Wednesday, March 12, 2014 8:49:07 PM > S

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Steven Rostedt
On Wed, 12 Mar 2014 19:51:01 + (UTC) Mathieu Desnoyers wrote: > This only leaves tracepoints in header files and the impact of LTO as > requirements for having tracepoint callsites with the same name across > modules. The only thing that needs to be unique is the struct tracepoint __tracepoi

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Mathieu Desnoyers
ew Morton" , > "Johannes Berg" , "Linus Torvalds" > , "Peter Zijlstra" > , "Thomas Gleixner" , "Greg > Kroah-Hartman" , > "lttng-dev" , "Rusty Russell" > , "Andi Kleen" > Sent: Wednesday, March 12,

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Andi Kleen
> So I understand that you wish to banish tracepoints from static inline > functions within headers to ensure they only appear within a single module. > This seems to be a step backward, but let's assume we stick to that rule. > Then how do you envision dealing with Link-Time Optimisations (LTO) ?

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Mathieu Desnoyers
nnes Berg" > , "Linus Torvalds" , > "Peter Zijlstra" > , "Thomas Gleixner" , "Greg > Kroah-Hartman" , > "lttng-dev" , "Rusty Russell" > > Sent: Wednesday, March 12, 2014 3:30:06 PM > Subject: Re: [for-next][PATCH

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Mathieu Desnoyers
nnes Berg" > , "Linus Torvalds" , > "Peter Zijlstra" > , "Thomas Gleixner" , "Greg > Kroah-Hartman" , > "lttng-dev" , "Rusty Russell" > > Sent: Wednesday, March 12, 2014 2:58:02 PM > Subject: Re: [for-next][PA

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Steven Rostedt
On Wed, 12 Mar 2014 14:58:02 -0400 Steven Rostedt wrote: > > Two modules should not have the same name. Is there any duplicate > tracepoints you are aware of. Namespace collisions in tracepoints > should be avoided, as that would cause people to trace things they did > not intend on tracing. >

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Steven Rostedt
On Wed, 12 Mar 2014 18:47:15 + (UTC) Mathieu Desnoyers wrote: > > On module unload, the events are destroyed. > > Isn't trace_event.c responsible for dealing with tracepoint probes rather > than call sites ? This is quite different. A tracepoint probe "foo" is only > located within a single

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Mathieu Desnoyers
nnes Berg" > , "Linus Torvalds" , > "Peter Zijlstra" > , "Thomas Gleixner" , "Greg > Kroah-Hartman" , > "lttng-dev" , "Rusty Russell" > > Sent: Wednesday, March 12, 2014 1:50:59 PM > Subject: Re: [for-next][P

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Steven Rostedt
On Wed, 12 Mar 2014 16:40:51 + (UTC) Mathieu Desnoyers wrote: > > Please tell me one in-tree user that will be impacted? > > I'm talking about all users of tracepoints, all in tree and out of tree > users. We need the design and API for tracepoint to stay sound, and for that > we need to st

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Steven Rostedt
On Wed, 12 Mar 2014 16:39:55 + (UTC) Mathieu Desnoyers wrote: > > Are you telling me it's not possible to delete the entire probe? > > The ownership flow is the following: > > 1) Tracer creates name, probe, data objects. The probe can be typically >code within a probe provider module,

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Mathieu Desnoyers
; Mathieu Desnoyers wrote: > > > - Original Message - > > > From: "Steven Rostedt" > > > To: "Mathieu Desnoyers" > > > Cc: "Frank Ch. Eigler" , linux-kernel@vger.kernel.org, > > > "Ingo Molnar" , "

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Mathieu Desnoyers
nnes Berg" > , "Linus Torvalds" , > "Peter Zijlstra" > , "Thomas Gleixner" , "Greg > Kroah-Hartman" , > "lttng-dev" , "Rusty Russell" > > Sent: Wednesday, March 12, 2014 12:18:13 PM > Subject: Re: [for-next][

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Steven Rostedt
uot; , "Frederic > > Weisbecker" , "Andrew Morton" > > , "Johannes Berg" > > , "Linus Torvalds" > > , "Peter Zijlstra" > > , "Thomas Gleixner" , "Greg > > Kroah-Hartman" , > > &qu

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Mathieu Desnoyers
nnes Berg" > , "Linus Torvalds" , > "Peter Zijlstra" > , "Thomas Gleixner" , "Greg > Kroah-Hartman" , > "lttng-dev" , "Rusty Russell" > > Sent: Wednesday, March 12, 2014 11:46:11 AM > Subject: Re: [for-next]

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Steven Rostedt
To sum up this thread, and get the signal vs noise ratio up. On Wed, 12 Mar 2014 11:11:00 -0400 Steven Rostedt wrote: > The solution I like the most that I believe will work for both of us, > is to to move this magic "enable tracepoint in the future" to your > LTTng module. Have your module re

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Steven Rostedt
uot; , "Frederic > > Weisbecker" , "Andrew Morton" > > , "Johannes Berg" > > > > Sent: Tuesday, March 11, 2014 3:13:57 PM > > Subject: Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not > > set via debugfs > >

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-12 Thread Mathieu Desnoyers
Berg" > > Sent: Tuesday, March 11, 2014 3:13:57 PM > Subject: Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set > via debugfs > For those just added in CC, https://lkml.org/lkml/2014/3/11/431 provides the missing context. The discussion is about adding mod

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-11 Thread Steven Rostedt
On Tue, 11 Mar 2014 17:34:23 + (UTC) Mathieu Desnoyers wrote: > > Who can load modules not as root?? That is utterly broken. As once you > > can load a module, YOU ARE ROOT. > > udevd runs as root, and listens to events such as USB hotplug, and loads > modules > in the back of users. The u

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-11 Thread Mathieu Desnoyers
annes Berg" > > Sent: Tuesday, March 11, 2014 11:40:23 AM > Subject: Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set > via debugfs > > On Tue, 11 Mar 2014 15:06:22 + (UTC) > Mathieu Desnoyers wrote: > > > > Let's step back and look

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-11 Thread Steven Rostedt
On Tue, 11 Mar 2014 15:06:22 + (UTC) Mathieu Desnoyers wrote: > Let's step back and look at the overall picture here, along with the > possible solutions that are available so far. > > My intent is to let end users specify "I want to trace this specific > tracepoint" from the tracer interfa

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-11 Thread Mathieu Desnoyers
t;Johannes Berg" > Sent: Tuesday, March 11, 2014 10:26:50 AM > Subject: Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set > via debugfs > > Hi, Steven - > > > > So it is a deferred-activation kind of call, with no way of knowing > > > when

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-11 Thread Steven Rostedt
On Tue, 11 Mar 2014 04:08:27 + (UTC) Mathieu Desnoyers wrote: > > That's my argument. > > So basically, all we'd have to do in LTTng is to add a hash table tracking the > tracepoint probes which are registered, but for which there are no > tracepoint call sites. Whenever registration of a

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-11 Thread Frank Ch. Eigler
Hi, Steven - > > So it is a deferred-activation kind of call, with no way of knowing > > when or if the tracepoints will start coming in. Why is that > > supported at all, considering that clients could monitor modules > > coming & going via the module_notifier chain, and update registration > >

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-10 Thread Mathieu Desnoyers
nnes Berg" > Sent: Monday, March 10, 2014 10:58:20 PM > Subject: Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set > via debugfs > > On Mon, 10 Mar 2014 22:41:31 -0400 > f...@redhat.com (Frank Ch. Eigler) wrote: > > > > > Hi - &

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-10 Thread Steven Rostedt
On Mon, 10 Mar 2014 22:41:31 -0400 f...@redhat.com (Frank Ch. Eigler) wrote: > > Hi - > > > >> From: Steven Rostedt > >> > >> Tracepoints were made to allow enabling a tracepoint in a module before > >> that > >> module was loaded. When a tracepoint is enabled and it does not exist, the > >>

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-10 Thread Frank Ch. Eigler
Hi - >> From: Steven Rostedt >> >> Tracepoints were made to allow enabling a tracepoint in a module before that >> module was loaded. When a tracepoint is enabled and it does not exist, the >> name is stored and will be enabled when the tracepoint is created. >> >> The problem with this appro

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-10 Thread Mathieu Desnoyers
- Original Message - > From: "Steven Rostedt" > To: "Mathieu Desnoyers" > Cc: linux-kernel@vger.kernel.org, "Ingo Molnar" , "Frederic > Weisbecker" , > "Andrew Morton" , "Johannes Berg" > > Sent: Monday,

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-10 Thread Steven Rostedt
On Mon, 10 Mar 2014 20:01:34 + (UTC) Mathieu Desnoyers wrote: > > mutex_lock(&tracepoints_mutex); > > old = tracepoint_add_probe(name, probe, data); > > @@ -388,9 +393,13 @@ int tracepoint_probe_register(const char *name, void > > *probe, void *data) > > return PTR_ERR(ol

Re: [for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-10 Thread Mathieu Desnoyers
- Original Message - > From: "Steven Rostedt" > To: linux-kernel@vger.kernel.org > Cc: "Ingo Molnar" , "Frederic Weisbecker" > , "Andrew Morton" > , "Mathieu Desnoyers" > , "Johannes Berg" > > Sent: Fri

[for-next][PATCH 08/20] tracing: Warn if a tracepoint is not set via debugfs

2014-03-07 Thread Steven Rostedt
From: Steven Rostedt Tracepoints were made to allow enabling a tracepoint in a module before that module was loaded. When a tracepoint is enabled and it does not exist, the name is stored and will be enabled when the tracepoint is created. The problem with this approach is that when a tracepoint