diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-12-02 17:45:20 +0800 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-12-02 17:45:20 +0800 |
commit | 379c58568dbb247ed6583434ff4658c0794b977d (patch) | |
tree | f873d8e31103b635f8dec236ce328e4f51fd8333 /testsuite/buildok/tcpmib-all-probes.stp | |
parent | ae3d9351dec2533ffa4c55b3d7543d5b270efec7 (diff) | |
download | systemtap-steved-379c58568dbb247ed6583434ff4658c0794b977d.tar.gz systemtap-steved-379c58568dbb247ed6583434ff4658c0794b977d.tar.xz systemtap-steved-379c58568dbb247ed6583434ff4658c0794b977d.zip |
Make tapset and tests compatible with old kernel
* tapset/ioscheduler.stp : Make probe optional.
* tapset/irq.stp : Ditto.
* tapset/scheduler.stp : Ditto.
* tapset/tcpmib.stp : Ditto.
* tapset/linuxmib.stp : Switch variable by version.
* tapset/tty.stp : Ditto.
* testsuite/buildok/irq.stp : Make probe test optional.
* testsuite/buildok/tty.stp : Ditto.
* testsuite/systemtap.examples/network/netdev.stp : Ditto.
* testsuite/buildok/tcpmib-all-probes.stp : Add embedded functions.
Diffstat (limited to 'testsuite/buildok/tcpmib-all-probes.stp')
-rwxr-xr-x | testsuite/buildok/tcpmib-all-probes.stp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/testsuite/buildok/tcpmib-all-probes.stp b/testsuite/buildok/tcpmib-all-probes.stp index f20ba8bb..8d1105e1 100755 --- a/testsuite/buildok/tcpmib-all-probes.stp +++ b/testsuite/buildok/tcpmib-all-probes.stp @@ -4,12 +4,18 @@ probe tcpmib.* {} -function tcpmib_filter_key:long (sk:long, op:long) { - // Insure all these functions will build - if ( tcpmib_get_state(sk) ) return 0 - if ( tcpmib_local_addr(sk) ) return 0 - if ( tcpmib_remote_addr(sk) ) return 0 - if ( tcpmib_local_port(sk) ) return 0 - if ( tcpmib_remote_port(sk) ) return 0 - return op +probe begin{ + print(tcpmib_get_state(0) + + tcpmib_local_addr(0) + + tcpmib_remote_addr(0) + + tcpmib_local_port(0) + + tcpmib_remote_port(0) + + _rtn_local() + + _is_reset(0) + +%( kernel_v < "2.6.31" %? + __tcpmib_input_route_type_old(0) +%: + __tcpmib_input_route_type_new(0) +%) + ) } |