public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug server/20557] New: It seems like that switching output file doesn't work.
@ 2016-09-06  3:05 steve.tsai at nexusguard dot com
  2016-09-06  5:46 ` [Bug server/20557] " steve.tsai at nexusguard dot com
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: steve.tsai at nexusguard dot com @ 2016-09-06  3:05 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 20557
           Summary: It seems like that switching output file doesn't work.
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: server
          Assignee: systemtap at sourceware dot org
          Reporter: steve.tsai at nexusguard dot com
  Target Milestone: ---

I tried the following command.

stap -F -o tcpdump.log -S 1,2 tcp_dumplike.stp

I got a several GB log file "tcpdump.log.0". It didn't output 2 1MB size file.
My tcp_dumplike.stp script:
-----------------------------------
#! /usr/bin/env stap
// A TCP dump like example
probe begin, timer.s(1)
{
 ansi_clear_screen ()

 printf("-----------------------------------------------------------------\n")
 printf(" Source IP Dest IP SPort DPort U A P R S F \n")
 printf("-----------------------------------------------------------------\n")
}

probe udp.recvmsg /* ,udp.sendmsg */
{
  printf(" %15s %15s %5d %5d UDP\n", saddr, daddr, sport, dport)
}

probe tcp.receive
{
  printf(" %15s %15s %5d %5d %d %d %d %d %d %d\n", saddr, daddr, sport, dport,
urg, ack, psh, rst, syn, fin)
}
-----------------------------------------------

I don't want to run out of my disk.

thank you in advance.
Steve

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

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2024-02-21 13:26 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-06  3:05 [Bug server/20557] New: It seems like that switching output file doesn't work steve.tsai at nexusguard dot com
2016-09-06  5:46 ` [Bug server/20557] " steve.tsai at nexusguard dot com
2016-09-06 18:31 ` dsmith at redhat dot com
2016-09-06 18:51 ` dsmith at redhat dot com
2016-09-06 19:38 ` dsmith at redhat dot com
2016-09-07  2:46 ` steve.tsai at nexusguard dot com
2016-09-07  2:49 ` steve.tsai at nexusguard dot com
2016-09-07  2:49 ` steve.tsai at nexusguard dot com
2016-09-07 14:17 ` dsmith at redhat dot com
2016-09-07 20:23 ` dsmith at redhat dot com
2016-09-08  2:04 ` steve.tsai at nexusguard dot com
2016-09-08 15:24 ` dsmith at redhat dot com
2016-09-09  2:16 ` steve.tsai at nexusguard dot com
2016-09-09  2:16 ` steve.tsai at nexusguard dot com
2016-09-09  2:19 ` steve.tsai at nexusguard dot com
2016-09-09  2:20 ` steve.tsai at nexusguard dot com
2016-09-09  2:20 ` steve.tsai at nexusguard dot com
2016-09-09  2:21 ` steve.tsai at nexusguard dot com
2016-09-09 13:45 ` dsmith at redhat dot com
2024-02-21 13:26 ` fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).