[PATCH] A new testcase for tty tapset
leitao@linux.vnet.ibm.com
leitao@linux.vnet.ibm.com
Fri Oct 2 21:03:00 GMT 2009
From: root <root@devhv4e-phantom-lp3.austin.ibm.com>
This is a basic test to assure that the tty tapset is working
compiling and working properly
---
testsuite/buildok/tty.stp | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
create mode 100755 testsuite/buildok/tty.stp
diff --git a/testsuite/buildok/tty.stp b/testsuite/buildok/tty.stp
new file mode 100755
index 0000000..73f8706
--- /dev/null
+++ b/testsuite/buildok/tty.stp
@@ -0,0 +1,37 @@
+#! stap -wp4
+
+probe tty.poll{
+ printf("Pooling tty %s for wait queue key %d\n", file_name, wait_key);
+}
+
+probe tty.register {
+ printf("Device registered using index %d using driver %s(%s)\n", index, driver_name, name)
+}
+
+probe tty.unregister {
+ printf("Device registred using index %d using driver %s(%s)\n", index, driver_name, name)
+}
+
+probe tty.release {
+ printf("Closing file %s\n", file_name)
+ printf("INODE: number %d\nState: %d\nFlag: %d\n", inode_number, inode_state, inode_flags)
+ printf("File: %s mode %x flags %x\n", file_name, file_mode, file_flags)
+}
+
+probe tty.open {
+ printf("Opening tty file %s\n", file_name)
+ printf("INODE: number %d\nState: %d\nFlag: %d\n", inode_number, inode_state, inode_flags)
+ printf("File: %s mode %x flags %x\n", file_name, file_mode, file_flags)
+}
+
+probe tty.resize {
+ printf("Resizing %s from %dx%d to %dx%d\n", name, old_row, old_col, new_row, new_col)
+}
+
+probe tty.ioctl {
+ printf("Ioctling file %s with %d %d\n", name, cmd, arg)
+}
+
+probe tty.init {
+ printf("new tty with name %s from driver %s and module %s\n", driver_name, name, module)
+}
--
1.6.0.2
More information about the Systemtap
mailing list