This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Linux Kernel Markers 0.2 for Linux 2.6.17


Hi -

On Tue, Sep 19, 2006 at 04:28:02PM -0400, Mathieu Desnoyers wrote:

> [...]
> > In order to have what we appear to need, we cannot avoid having some
> > impact.  (Even NOPs have impact.)

> I am all for giving this decision to the end-user or the
> distribution which will configure the kernel. [...]

If the decision you're talking about is whether all markers in the
system should behave one way or another, then this is a degree of
central control that we have not contemplated during the entire
thread, until now.

It is an end-user such as an administrator who will figure out which
probes/markers/tracing elements need what kind of processing attached.
They don't want to recompile the kernel to switch.  They will want
different types of processing, or none at all, for different markers
during a system lifetime.


> * Users debugging servers will more likely want the kprobe or jprobe option.
> * Users interested in high performance tracing will want fprobe
> and/or jprobe.
> * Users interested in embedded systems will want to avoid tools
> outside the kernel that rely on module loading: their kernel often
> not even support modules. -> fprobe

This line of thinking makes me worry that we've forgotten all that we
learned during the weekend.  Amongst the insights apparently agreed
was that on *any given system*, a mixture of static an dynamic probing
was likely necessary.  For the static part of the instrumentation, a
marker that could be hooked up to either type of probing system was
desirable, which implies some sort of run-time changeability.

(Regarding module loading being considered a blocker for a tool like
systemtap, don't.  We will support pre-compiled boot-time
instrumentation loaded from e.g. initrd or linked right into vmlinux.)


> M. Bligh's idea is an interesting use of fprobes through modules
> that could make dynamic tracing more effective for accessing local
> variables. [...]

That's if it works, if it can be implemented, if it does not create
conflicts between multiple tracing/probing systems, if ...  

Yes, in theory it might bridge the gulf between compile-time and
run-time configuration, but aren't these all big "if"s right now?


> With or without his idea, the goal of this marker mechanism is to
> meet all those user's different needs.

I don't understand how this new compile-time configured style of
marker is to serve anyone who wants to use something other than a
single distribution-picked tracing/probing tool.  I though we had
abandoned that model some time ago.


- FChE

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]