This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Updated patch adding line number enumeration support to statement probe
- From: Jonathan Lebon <jlebon at redhat dot com>
- To: BR Chrisman <brchrisman at gmail dot com>
- Cc: systemtap at sourceware dot org
- Date: Tue, 3 Jun 2014 16:32:21 -0400 (EDT)
- Subject: Re: Updated patch adding line number enumeration support to statement probe
- Authentication-results: sourceware.org; auth=none
- References: <CAN4=B2kFBfT3WKsyaVshcco-2=7dikggEGt0O7X=e+J3E_qGAw at mail dot gmail dot com> <1844543191 dot 19591707 dot 1401808203426 dot JavaMail dot zimbra at redhat dot com> <CAN4=B2=7Nofy4cGu+Vo2+yG4PBOFfrHRw_6570DjvTVGWAby7Q at mail dot gmail dot com> <1116124740 dot 19796960 dot 1401821060845 dot JavaMail dot zimbra at redhat dot com> <CAN4=B2m1RrfxH+GwTnE=AYikJynX0QCwfqRT02v2gaFvsTR_0A at mail dot gmail dot com>
> ... makes sense... is there a 'no end of line' clog stream?
> I'd like to output piecemeal here, so I'd need a stream that doesn't
> automatically endl or accumulate the whole thing into a string.
Writing to clog shouldn't create newlines unless you explicitly use
endl:
// prints "same line"
clog << "same ";
clog << "line" << endl;
To clarify, this will be output in parse_function_spec(), in the part
that is gated by
if (sess.verbose > 2)
{
...
}
so you'll only see it if you do stap -vvv. This is not what will be
printed during a normal stap -l, which instead prints a probe point
for each individual lineno.
Hope this helps!
Jonathan