This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] tty: improving the ttyspy example


This patch just adds some probe examples to ttyspy.stp example.
---
 testsuite/systemtap.examples/io/ttyspy.stp |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/testsuite/systemtap.examples/io/ttyspy.stp b/testsuite/systemtap.examples/io/ttyspy.stp
index 272d82e..1830509 100755
--- a/testsuite/systemtap.examples/io/ttyspy.stp
+++ b/testsuite/systemtap.examples/io/ttyspy.stp
@@ -44,3 +44,18 @@ probe timer.s(3) {
       }
 }
 
+probe tty.receive_buf {
+	printf("Buffer %s received by driver %s\n", cp, fp, name)
+}
+
+probe tty.put_char {
+	printf("Char %d sent by driver %s\n", cp, name)
+}
+
+probe tty.write {
+	printf("buffer %s wrote on %s\n", buffer, file_name)
+}
+
+probe tty.read {
+	printf("buffer %s read from %s\n", buffer, file_name)
+}
-- 
1.6.0.2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]