Debian Codegraph @

testsuite/buildok/ipmib-all-probes.stp

raw
1 #! stap -u -p4
2
3 // Tests if all probes in the ipmib tapset are resolvable.
4
5 probe ipmib.* {}
6
7 function ipmib_filter_key:long (skb:long, op:long, SourceIsLocal:long) {
8 // Insure all these functions will build
9 if ( ipmib_remote_addr(skb, SourceIsLocal) ) return 0
10 if ( ipmib_local_addr(skb, SourceIsLocal) ) return 0
11 if ( ipmib_tcp_remote_port(skb, SourceIsLocal) ) return 0
12 if ( ipmib_tcp_local_port(skb, SourceIsLocal) ) return 0
13 if ( ipmib_get_proto(skb) ) return 0
14 return op
15 }