This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH] A new testcase for tty tapset
- From: leitao at linux dot vnet dot ibm dot com
- To: systemtap at sources dot redhat dot com
- Cc: root <root at devhv4e-phantom-lp3 dot austin dot ibm dot com>
- Date: Fri, 2 Oct 2009 17:02:31 -0400
- Subject: [PATCH] A new testcase for tty tapset
- References: <1254517351-7406-1-git-send-email-leitao@linux.vnet.ibm.com>
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