diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2010-02-08 10:53:21 +0800 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2010-02-08 10:53:21 +0800 |
commit | 189559623dcda793b1ae9ade54299f5c7a775b76 (patch) | |
tree | 6bf0304517aa2989fc2a8135214b8112c0e25758 | |
parent | dc537e7a8e9e96eb18a73a9f7b09cf19ea0283eb (diff) | |
download | systemtap-steved-189559623dcda793b1ae9ade54299f5c7a775b76.tar.gz systemtap-steved-189559623dcda793b1ae9ade54299f5c7a775b76.tar.xz systemtap-steved-189559623dcda793b1ae9ade54299f5c7a775b76.zip |
Define empty function for tcpmib test
-rwxr-xr-x | testsuite/buildok/tcpmib-all-probes.stp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/buildok/tcpmib-all-probes.stp b/testsuite/buildok/tcpmib-all-probes.stp index 490f6da4..0d7c4c00 100755 --- a/testsuite/buildok/tcpmib-all-probes.stp +++ b/testsuite/buildok/tcpmib-all-probes.stp @@ -11,6 +11,14 @@ function tcpmib_filter_key:long (sk:long, op:long) { return op } +// same as above one +// but it's better to move function definition from example +// to tapset +function ipmib_filter_key:long (skb:long, op:long, SourceIsLocal:long) { + if ( !skb ) return 0 + return op +} + probe begin{ print(tcpmib_get_state(0) + tcpmib_local_addr(0) + |