[PATCH 3/3] io_submit.stp: let the user know when the script is loaded
Jeff Moyer
jmoyer@redhat.com
Fri May 11 19:25:00 GMT 2018
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
More information about the Systemtap
mailing list