summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/ipmib-all-probes.stp
blob: b6bedcf7bda6a5b86a1c09d8e309fe21c9115ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! stap -p4

// Tests if all probes in the ipmib tapset are resolvable.

probe ipmib.* {}

function ipmib_filter_key:long (skb:long, op:long, SourceIsLocal:long) {
	// Insure all these functions will build
	if ( ipmib_remote_addr(skb, SourceIsLocal) ) return 0
	if ( ipmib_local_addr(skb, SourceIsLocal) ) return 0
	if ( ipmib_tcp_remote_port(skb, SourceIsLocal) ) return 0
	if ( ipmib_tcp_local_port(skb, SourceIsLocal) ) return 0
	if ( ipmib_get_proto(skb) ) return 0
	return op
}