This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: MAXSTRINGLEN applied to printf()?
- From: Josh Stone <jistone at redhat dot com>
- To: halcyonic at gmail dot com
- Cc: "systemtap at sourceware dot org" <systemtap at sourceware dot org>
- Date: Thu, 09 Aug 2012 09:56:21 -0700
- Subject: Re: MAXSTRINGLEN applied to printf()?
- References: <1F868470-E345-4262-B6C1-1C8DD5FD32F9@eecs.harvard.edu>
On 08/08/2012 09:01 PM, halcyonic@gmail.com wrote:
> If I try to printf() more than MAXSTRINGLEN characters without
> outputting a newline, does that mean I'm exceeding the string length
> limit? I.e., is just a normal string serving as the printf buffer,
> and all the normal rules about strings apply to it? (I was trying to
> get around the string length limits by issuing multiple printf()'s,
> but that seems to be backfiring...)
As long as you're not using intermediate strings, MAXSTRINGLEN should
not limit you. There is a different limit STP_BUFFER_SIZE which is 8192
bytes, but I believe even that is for each individual printf call.
As before, examples of what you're trying and the result would be helpful.
Josh