This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH 3/3] io_submit.stp: let the user know when the script is loaded
- From: Jeff Moyer <jmoyer at redhat dot com>
- To: systemtap at sourceware dot org
- Cc: Jeff Moyer <jmoyer at redhat dot com>
- Date: Fri, 11 May 2018 15:25:52 -0400
- Subject: [PATCH 3/3] io_submit.stp: let the user know when the script is loaded
- References: <20180511192552.12849-1-jmoyer@redhat.com>
I often find myself checking lsmod to see when the script is finally
ready to collect data. Just print a message from the begin probe to
make it obvious when the script is ready.
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
---
testsuite/systemtap.examples/io/io_submit.stp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/testsuite/systemtap.examples/io/io_submit.stp b/testsuite/systemtap.examples/io/io_submit.stp
index 62d15c9..7e8c8d4 100755
--- a/testsuite/systemtap.examples/io/io_submit.stp
+++ b/testsuite/systemtap.examples/io/io_submit.stp
@@ -53,6 +53,10 @@ probe kernel.function("schedule") {
}
}
+probe begin {
+ printf("Ready!\n")
+}
+
/*
* when stap is done (via ctrl-c) go through the record of all the
* trace paths and print the 30 most common.
--
2.8.2.335.g4bb51ae