Re: [PATCH 0/11] LTTng-core (basic tracing infrastructure) 0.5.108

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ingo Molnar wrote:
* Martin Bligh <[email protected]> wrote:


an external patch is, indeed, pretty useless. Merging a few simple tracepoints should not be a problem [...]


the problem is, LTT is not about a 'few' tracepoints: it adds a whopping 350 tracepoints, a fair portion of it is multi-line with tons of arguments.

"static tracepoints" does not equate directly to "all of LTT". I'm not
saying we should accept LTT as-is. I'm saying we should not reject the
concept of static tracepoints.

 $ diffstat patch-2.6.17-lttng-0.5.108-instrumentation*
 98 files changed, 1450 insertions(+), 64 deletions(-)

saying "it's just a few lightweight tracepoints" misses two points: it's not just a few, and it's not lightweight.

and the set of tracepoints never gets smaller. People who start to rely on a tracepoint will scream bloody murder if it goes away or breaks. Static tracepoints are a maintainance PITA that will rarely get smaller, and will easily grow ...

If people are *using* them, it's no easier to maintain them outside of
tree, than in-tree. it's significantly harder.

[...] - see blktrace and schedstats, for instance.

yes, i do want to remove the 34 schedstats tracepoints too, once a feasible alternative is present. I already have to do two compilations when changing something substantial in the scheduler - once with and once without schedstats.

same for blktrace: once SystemTap can provide a compatible replacement, it should.

Your argument about schedstats only seems to illustrate the flaws in the
arguments for dynamic tracepointing - you've put your finger on exactly
what the problem is, when the code changes, the tracing HAS to change
too. The best time to do this is when the code itself changes.

It's the same arguement for putting documentation in the C file against
the source itself.

It amuses me that we're so opposed to external patches to the tree (for perfectly understandable reasons), but we somehow think tracepoints are magically different and should be maintained out of tree somehow.

i think you misunderstood what i meant. SystemTap should very much be integrated into the kernel proper, but i dont think the _rules_ (and scripts) should become part of the _source code files themselves_. So yes, there's advantage to kernel integration, but there's disadvantage to littering the kernel source with countless static tracepoints, if dynamic tracepoints can offer the same benefits (or more).

If you're talking about the scriptable awk-like "stuff" that comes with
Systemtap, yes I agree it should not be in the C code, it's foul.
However, I don't think a simple macro hooks are a burden.

the question is: what is more maintainance, hundreds of static tracepoints (with long parameter lists) all around the (core) kernel, or hundreds of detached dynamic rules that need an update every now and then? [but of which most would still be usable even if some of them "broke"] To me the answer is clear: having hundreds of tracepoints _within_ the source code is higher cost. But please prove me wrong :-)

How can you possibly say that maintaining the same set of data in two
dis-coupled trees is easier than doing it in the same place? You don't
require any *less* information to do it with systemtap than you do with
some form of static tracing.

If you're talking about the effort of maintaining just what's in the
kernel tree, then of course it's a little easier, but that's only half
the equation. And I don't think it's much of a burden, frankly. Yes,
if we have 2 billion tracepoints, it'll be a pain in the arse, but the
taste of the subsystem maintainers is what would regulate this, along
with everything else that we do. They'll accept a few important ones,
and reject the rest. If it's not valuable in general, they won't take
it. I don't see what the big problem is.

What *is* a problem is having a two separate mechanisms for doing
dynamic and static tracing. They should share the same logging facilities and readback mechanisms so we can read both types
consistently from userspace, and the data is correctly interspersed.

M.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux