This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: atomicity of formatted output?
Actually, upon reflection, what I actually think was happening was I was silently hitting the maximum string length, and my strings were getting truncated, which made the output look like it was interleaved.
Nick
On Aug 5, 2012, at 4:33 PM, Josh Stone <jistone@redhat.com> wrote:
> 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