This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: disabled interrupts (Was bug #2293
hunt wrote:
> The runtime calls probe_end(), and it used to know it was safe to sleep
> while in probe_end(). So if it attempted to send data and no buffers
> were available, it would sleep a bit (allowing stpd to precess the data)
> and retry (up to a limit), thus ensuring 100% of the data got sent.
You must be referring to the msleep() loop in _stp_transport_send.
Isn't that conditional on the "exit is pending" flag, which is set
considerably earlier than the beginning of first "end" probe handler?
Also, if that 250ms total sleep elapses without stpd waking up and
taking action, data is still lost, so this isn't a 100% solution
either. Let's accept the best one of the 99% solutions.
- FChE