Created
February 13, 2021 09:25
-
-
Save zckevin/189ef6daeca70e9181ffa54b7e79d3c6 to your computer and use it in GitHub Desktop.
monitor tcp data enqueue
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
sudo stap -v -e 'probe kernel.function("tcp_data_queue") { | |
tcphdr = __get_skb_tcphdr($skb); | |
sport = __tcp_skb_sport(tcphdr); | |
if (sport == 34025) { | |
seq = @cast($skb->cb, "tcp_skb_cb")->seq; | |
end_seq = @cast($skb->cb, "tcp_skb_cb")->end_seq; | |
printf("%d %d %d %d\n", sport, seq, end_seq, end_seq - seq); | |
// print_backtrace(); | |
// exit() | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment