Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/net-sanity.stp

raw
1 #! stap
2
3 # Test sensitive embedded-C functions with nonsense values!
4 probe begin(-1) { print("\n") }
5 probe begin {
6 if ($2 == 0) print(__ip6_skb_proto($1))
7 else if ($2 == 1) print(__get_skb_tcphdr($1))
8 else if ($2 == 2) print(__get_skb_iphdr($1))
9 else if ($2 == 3) print(tcp_ts_get_info_snd_ssthresh($1))
10 else if ($2 == 4) print(tcp_ts_get_info_rcv_mss($1))
11 }
12 probe begin(1) { print("\n"); exit() }