login
Header Space

 
 

Re: [patch 00/37] Linux Kernel Markers instrumentation for sched-devel.git

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Peter Zijlstra <a.p.zijlstra@...>
Cc: <akpm@...>, Ingo Molnar <mingo@...>, <linux-kernel@...>
Date: Saturday, April 26, 2008 - 4:11 pm

* Peter Zijlstra (a.p.zijlstra@chello.nl) wrote:

I think the main reason why those markers are ugly is they have
information meant for use by a general purpose tracer (it will only take
the parameters before the ## signs).

The other way around is to start specializing the general purpose tracer
to extract the information it needs from the task and rq pointers and
put that in the traces. Actually, that's the approach I use currently
use in LTTng, but Ingo seemed interested to have the union of parameters
needed by specialized and GP tracers, so this is what I did.

The only thing I dislike with the approach of putting everything in a
separatered header is that it adds a layer of indirection when one try
to to quickly grep for trace_mark() in the kernel tree to see where the
conceptual tracing points are. Therefore, it might be interesting to
simply remove the parameters meant for the general purpose tracer and
let this GP tracer create specialized probes for these instrumentation
sites. It would therefore remove the ugliness without creating a
supplementary indirection layer.

Mathieu


-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/37] Linux Kernel Markers instrumentation for sched..., Mathieu Desnoyers, (Thu Apr 24, 11:03 am)
Re: [patch 00/37] Linux Kernel Markers instrumentation for s..., Christoph Hellwig, (Mon Apr 28, 2:40 pm)
Re: [patch 00/37] Linux Kernel Markers instrumentation for s..., Christoph Hellwig, (Mon Apr 28, 2:49 pm)
Re: [patch 00/37] Linux Kernel Markers instrumentation for s..., Mathieu Desnoyers, (Sat Apr 26, 4:11 pm)
Re: [patch 00/37] Linux Kernel Markers instrumentation for s..., Mathieu Desnoyers, (Sun May 4, 11:08 am)
speck-geostationary