]> sourceware.org Git - systemtap.git/commit
Fix a bug in file size limitation code.
authorMasami Hiramatsu <mhiramat@redhat.com>
Thu, 2 Apr 2009 22:44:34 +0000 (18:44 -0400)
committerMasami Hiramatsu <mhiramat@redhat.com>
Thu, 2 Apr 2009 22:44:34 +0000 (18:44 -0400)
commit5aa1f218c5ff8a459c324ac64ee7a9b8046e683d
tree323698c22c97a7d466a10990d3d810528d85ba2e
parent093421c6ba933754aa52cf6399aae5b8f86d86d9
Fix a bug in file size limitation code.

This fixes a bug in stapio, which checks written data size and switches
new file when it exceeds a limit. The problem is that written-data-size
counter ignores the first written-data size when switching files. So,
actual file size always exceeds the limit. This changes stapio to
initialize written-data-size counter with the size of the data which
will be written in new file.
runtime/staprun/relay.c
runtime/staprun/relay_old.c
This page took 0.023004 seconds and 5 git commands to generate.