summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/locks
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-10-08 17:18:51 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-10-08 17:22:52 -0400
commit6987cb4306107994d06b0e653b9eac97388056bc (patch)
treee2fd08360ecae16f250243e3e4979438e3aafe2c /testsuite/systemtap.examples/locks
parent2e2516781661f5a4b41e4dc79d423250e057f271 (diff)
downloadsystemtap-steved-6987cb4306107994d06b0e653b9eac97388056bc.tar.gz
systemtap-steved-6987cb4306107994d06b0e653b9eac97388056bc.tar.xz
systemtap-steved-6987cb4306107994d06b0e653b9eac97388056bc.zip
testsuite: robustify check_* invocation of examples meta
testsuite/systemtap.examples/ * check.exp (extract_tag): Log extracted tags. Tolerate embedded '$'. (run_command): Pass through commands to sh -c without eval quoting. * README: Document "sh -c"-ness of check_* tags. * *.meta: Fix quoting, add a few check_support predicates.
Diffstat (limited to 'testsuite/systemtap.examples/locks')
-rw-r--r--testsuite/systemtap.examples/locks/bkl.meta1
-rw-r--r--testsuite/systemtap.examples/locks/bkl_stats.meta1
2 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/systemtap.examples/locks/bkl.meta b/testsuite/systemtap.examples/locks/bkl.meta
index 61bd4eb7..dd467fe7 100644
--- a/testsuite/systemtap.examples/locks/bkl.meta
+++ b/testsuite/systemtap.examples/locks/bkl.meta
@@ -6,5 +6,6 @@ author: Flavio Leitner
status: production
exit: user-controlled
description: The bkl.stp script can help determine whether the Big Kernel Lock (BKL) is causing serialization on a multiprocessor system due to excessive contention of the BKL. The bkl.stp script takes one argument which is the number of processes waiting for the Big Kernel Lock (BKL). When the number of processes waiting for the BKL is reached or exceeded, the script will print a time stamp, the number of processes waiting for the BKL, the holder of the BKL, and the amount of time the BKL was held.
+test_support: stap -l 'kernel.function("lock_kernel").return'
test_check: stap -p4 bkl.stp 1
test_installcheck: stap bkl.stp -c "sleep 0.2" 1
diff --git a/testsuite/systemtap.examples/locks/bkl_stats.meta b/testsuite/systemtap.examples/locks/bkl_stats.meta
index 6db6c72f..16ac2911 100644
--- a/testsuite/systemtap.examples/locks/bkl_stats.meta
+++ b/testsuite/systemtap.examples/locks/bkl_stats.meta
@@ -9,5 +9,6 @@ exit: user-controlled
output: sorted-list
scope: system-wide
description: The bkl_stats.stp script can indicate which processes have excessive waits for the Big Kernel Lock (BKL) and which processes are taking the BKL for long periods of time. The bkl_stats.stp script prints lists of all the processes that require the BKL. Every five seconds two tables are printed out. The first table lists the processes that waited for the BKL followed by the number of times that the process waited, the minimum time of the wait, the average and the maximum time waited. The second table lists has similar information for the time spent holding the lock for each of the processes.
+test_support: stap -l 'kernel.function("lock_kernel").return'
test_check: stap -p4 bkl_stats.stp
test_installcheck: stap bkl_stats.stp -c "sleep 0.2"