From 379c58568dbb247ed6583434ff4658c0794b977d Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Wed, 2 Dec 2009 17:45:20 +0800 Subject: 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. --- testsuite/buildok/tty.stp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testsuite/buildok/tty.stp') 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) } -- cgit