Created
January 4, 2016 17:20
-
-
Save ChinaXing/19cd91c6aa95902a1849 to your computer and use it in GitHub Desktop.
probe.stp
This file contains hidden or 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
stap -e 'probe kernel.function("tcp_recvmsg") {sp = @cast($sk, "inet_sock")->num; dp = @cast($sk, "inet_sock")->sport; if(sp == 9091){ printf("hell,world, %d, %x\n", sp, dp);}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment