This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: atomicity of formatted output?
On 07/31/2012 10:10 PM, halcyonic@gmail.com wrote:
> Sorry, couldn't find this anywhere obvious in the documentation: are
> there any atomicity guarantees (even "best effort" ones) regarding
> formatted output from inside probes? It looks to me like output from
> different probes is being intermingled occasionally, even if every
> probe only uses a single printf()...would it help to remove newlines
> in the printf()?
IIRC, we do try to keep things line-buffered, at least if you are
outputting to a TTY. Can you provide an example script & workload where
you see this intermingling?
Josh