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: [RFC PATCH tip 0/5] tracing filters with BPF


Hi -

(Hopping over from https://lkml.org/lkml/2013/12/5/516)

> this is over 1M iterations in a hot cache, so we're talking nsec
> differences for single event.

Yup.

> Looking at generated enter_real_tracepoint_probe_0(), stap is doing
> a bunch of stp_context checks, inits a dozen internal variables and
> only then jumps into probe, so not totally unexpected to see higher
> entry overhead. [...]

Yeah, there is a lot of boilerplate code (much of it is
#ifdef-compiled out, depending on stap options).  Some of it is
safety-oriented that you might end up needing too
(preemption-disabling, stack-depth checking).  Some of it is probably
overdone, line some flavours of overload detection, for the case where
can can statically analyze and find no loops/recursion.

- FChE


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