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/tty.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/tty.stp')
-rwxr-xr-x | testsuite/buildok/tty.stp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/buildok/tty.stp b/testsuite/buildok/tty.stp index 0b5018d9..3e717f6e 100755 --- a/testsuite/buildok/tty.stp +++ b/testsuite/buildok/tty.stp @@ -24,7 +24,7 @@ probe tty.open { printf("File: %s mode %x flags %x\n", file_name, file_mode, file_flags) } -probe tty.resize { +probe tty.resize ? { printf("Resizing %s from %dx%d (%d/%d) to %dx%d (%d/%d)\n", name, old_row, old_col, old_xpixel, old_ypixel, new_row, new_col, new_xpixel, new_ypixel) } @@ -33,7 +33,7 @@ probe tty.ioctl { printf("Ioctling file %s with %d %d\n", name, cmd, arg) } -probe tty.init { +probe tty.init ? { printf("new tty with name %s from driver %s and module %s\nn", driver_name, name, module) } @@ -42,10 +42,10 @@ probe tty.receive { } -probe tty.write { +probe tty.write ? { printf("Buffer %s (len %d) wrote on file %s (driver %s)\n", buffer, nr, file_name, driver_name) } -probe tty.read { +probe tty.read ? { printf("Reading tty file %s (driver %s) to a buffer with size %d containing %s\n", file_name, driver_name, nr, buffer) } |