From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88373 invoked by alias); 6 Sep 2016 18:51:35 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 87147 invoked by uid 48); 6 Sep 2016 18:51:21 -0000 From: "dsmith at redhat dot com" To: systemtap@sourceware.org Subject: [Bug server/20557] It seems like that switching output file doesn't work. Date: Tue, 06 Sep 2016 18:51:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: server X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dsmith at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2016-q3/txt/msg00242.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D20557 --- Comment #3 from David Smith --- 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=20 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 --=20 You are receiving this mail because: You are the assignee for the bug.