From cf5023fb9a29cd11a4e7bee82055530c11486424 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Tue, 23 Jun 2009 15:51:48 -0400 Subject: Add the bkl.stp and bkl_stats.stp examples. --- testsuite/systemtap.examples/locks/bkl_stats.meta | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testsuite/systemtap.examples/locks/bkl_stats.meta (limited to 'testsuite/systemtap.examples/locks/bkl_stats.meta') diff --git a/testsuite/systemtap.examples/locks/bkl_stats.meta b/testsuite/systemtap.examples/locks/bkl_stats.meta new file mode 100644 index 00000000..00d55c68 --- /dev/null +++ b/testsuite/systemtap.examples/locks/bkl_stats.meta @@ -0,0 +1,13 @@ +title: Per Process Statistics on Big Kernel Lock (BKL) Use +name: bkl_stats.stp +version: 1.0 +author: William Cohen +keywords: locking +subsystem: kernel +status: production +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_check: stap -p4 bkl_stats.stp +test_installcheck: stap bkl_stats.stp -c "sleep 1" -- cgit