Hashtable
Frank Ch. Eigler
fche@redhat.com
Sun Jul 16 16:09:00 GMT 2017
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
More information about the Systemtap
mailing list