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: Hashtable


arkady.miasnikov wrote:

> [...]
> I am playing with something I call "STAP bypass" - allow to register a
> pure C implementation of a probe. This gives about 1% gain part of
> which comes from removing calls to _stp_print_flush(). A define symbol
> like STP_TRACE_OFF would be nice. [...]

That _stp_print_flush() bit could be elided by analysis of the staptree
associated with the probe; if no print*s are found there (or any
function transitively called), then no need to flush.  (For embedded-C
functions, we could add a /* print */ pragma to handle that in the
analysis.)

- FChE


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