[Bug server/20557] New: It seems like that switching output file doesn't work.
steve.tsai at nexusguard dot com
sourceware-bugzilla@sourceware.org
Tue Sep 6 03:05:00 GMT 2016
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.
More information about the Systemtap
mailing list