summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/common.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@redhat.com>2009-04-02 18:44:34 -0400
committerMasami Hiramatsu <mhiramat@redhat.com>2009-04-02 18:44:34 -0400
commit5aa1f218c5ff8a459c324ac64ee7a9b8046e683d (patch)
tree323698c22c97a7d466a10990d3d810528d85ba2e /runtime/staprun/common.c
parent093421c6ba933754aa52cf6399aae5b8f86d86d9 (diff)
downloadsystemtap-steved-5aa1f218c5ff8a459c324ac64ee7a9b8046e683d.tar.gz
systemtap-steved-5aa1f218c5ff8a459c324ac64ee7a9b8046e683d.tar.xz
systemtap-steved-5aa1f218c5ff8a459c324ac64ee7a9b8046e683d.zip
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.
Diffstat (limited to 'runtime/staprun/common.c')
0 files changed, 0 insertions, 0 deletions