Last active
February 7, 2017 04:20
Short System Tap script to watch processes making UDP calls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env stap | |
probe udp.sendmsg{ | |
printf("%15s %15s %15s %5d %5d %15s UDP\n", ctime(gettimeofday_s()), saddr, daddr, sport, dport, execname()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment