This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug server/20557] It seems like that switching output file doesn't work.


https://sourceware.org/bugzilla/show_bug.cgi?id=20557

--- Comment #3 from David Smith <dsmith at redhat dot com> ---
Just to be clear, here is how this is supposed to work:

1) Run 'stap -F ...'. Systemtap will run in the background, outputting data
files. It prints the pid of the background stap process.

# stap -F -o f.out -S 1,3 ../src/testsuite/systemtap.base/flightrec2.stp 
31067

2) System will output up to 3 (in my case) files of around 1 megabyte each. As
soon as the 4th file would be written, it deletes the earliest file.

After waiting a while, I see:

# ls -l f.out*
-rw-rw-r--. 1 dsmith dsmith 1034000 Sep  6 13:33 f.out.71
-rw-rw-r--. 1 dsmith dsmith 1034000 Sep  6 13:33 f.out.72
-rw-rw-r--. 1 dsmith dsmith  517000 Sep  6 13:33 f.out.73

then later:

# ls -l f.out*
-rw-rw-r--. 1 dsmith dsmith 1034000 Sep  6 13:35 f.out.175
-rw-rw-r--. 1 dsmith dsmith 1034000 Sep  6 13:35 f.out.176
-rw-rw-r--. 1 dsmith dsmith  770000 Sep  6  2016 f.out.177

3) To stop systemtap, kill the pid output earlier.

# kill 31067

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]