Bug 11020 - SIGUSR2 file switching doesn't work with busy script
Summary: SIGUSR2 file switching doesn't work with busy script
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: runtime (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: blockers-1.1
  Show dependency treegraph
 
Reported: 2009-11-25 20:51 UTC by Masami Hiramatsu
Modified: 2009-12-03 20:37 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
[PATCH] fix to check file switching flag inside read-write loop too. (535 bytes, patch)
2009-12-03 16:10 UTC, Masami Hiramatsu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Masami Hiramatsu 2009-11-25 20:51:26 UTC
stapio doesn't handle SIGUSR2 if running script dumps so much data.

e.g.
$ stap -d hoge -F -e 'probe kernel.function("sys_*") {print("hoge")}'
$ killall -USR2 stapio
<switching logs correctly>
$ killall -USR2 stapio
<doesn't switch log anymore>

Because SIGUSR2 is checked only right after ppoll(), but not checked in
read-write inner loop.
Comment 1 Masami Hiramatsu 2009-12-03 16:10:07 UTC
Created attachment 4443 [details]
[PATCH] fix to check file switching flag inside read-write loop too.

This patch adds a check of file switching flag inside inner loop.
Comment 2 Masami Hiramatsu 2009-12-03 20:37:40 UTC
Committed as 5cd2f82