diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-11-18 17:59:24 +0800 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-11-18 17:59:24 +0800 |
commit | 66f73b62a4ed147b229237407a00688e61f96d5a (patch) | |
tree | 83e36258ada8be05220b976b350d580a36733565 /testsuite/systemtap.examples/process | |
parent | 2e66901da2ffed2261784f458a2fc57d6f059725 (diff) | |
download | systemtap-steved-66f73b62a4ed147b229237407a00688e61f96d5a.tar.gz systemtap-steved-66f73b62a4ed147b229237407a00688e61f96d5a.tar.xz systemtap-steved-66f73b62a4ed147b229237407a00688e61f96d5a.zip |
Clean up examples
Diffstat (limited to 'testsuite/systemtap.examples/process')
8 files changed, 8 insertions, 12 deletions
diff --git a/testsuite/systemtap.examples/process/errsnoop.stp b/testsuite/systemtap.examples/process/errsnoop.stp index a3f17b77..4ad4ea1b 100755 --- a/testsuite/systemtap.examples/process/errsnoop.stp +++ b/testsuite/systemtap.examples/process/errsnoop.stp @@ -1,5 +1,4 @@ -#!/bin/sh -//usr/bin/env stap -DMAXMAPENTRIES=20480 $0 $@; exit $? +#!/usr/bin/env stap -DMAXMAPENTRIES=20480 $0 $@; exit $? # errsnoop.stp # Copyright (C) 2009 Red Hat, Inc., Eugene Teo <eteo@redhat.com> # diff --git a/testsuite/systemtap.examples/process/forktracker.meta b/testsuite/systemtap.examples/process/forktracker.meta index 2ba3a659..21c5bc29 100644 --- a/testsuite/systemtap.examples/process/forktracker.meta +++ b/testsuite/systemtap.examples/process/forktracker.meta @@ -8,6 +8,6 @@ status: production exit: user-controlled output: trace scope: system-wide -description: The forktracker.stp script prints out a time-stamped entry showing each fork and exec operation on the machine. This can be useful for determine what process is creating a flurry of short-lived processes. +description: The forktracker.stp script prints out a time-stamped entry showing each fork and exec operation on the machine. This can be useful to determine what process is creating a flurry of short-lived processes. test_check: stap -p4 forktracker.stp test_installcheck: stap forktracker.stp -c "sleep 0.2" diff --git a/testsuite/systemtap.examples/process/forktracker.stp b/testsuite/systemtap.examples/process/forktracker.stp index 525aa0a5..f892ce17 100755 --- a/testsuite/systemtap.examples/process/forktracker.stp +++ b/testsuite/systemtap.examples/process/forktracker.stp @@ -1,7 +1,7 @@ #! /usr/bin/env stap # # This is a stap script to monitor process creations (fork(), exec()'s). -# Based off of stap script found: http://picobot.org/wordpress/?p=27 +# Based on stap script found: http://picobot.org/wordpress/?p=27 # With some minor modifications (i.e. timestamping) # # Usage: stap forktracker.stp diff --git a/testsuite/systemtap.examples/process/schedtimes.meta b/testsuite/systemtap.examples/process/schedtimes.meta index 5315042a..9386a3e8 100644 --- a/testsuite/systemtap.examples/process/schedtimes.meta +++ b/testsuite/systemtap.examples/process/schedtimes.meta @@ -8,7 +8,7 @@ status: production exit: user-controlled output: sorted-list scope: system-wide -description: The schedtimes.stp script instruments the scheduler to track the amount of time that each process spends running, sleeping, queued, and waiting for io. On exit the script prints out the accumulated time for each state of processes observed. Optionally, this script can be used with the '-c' or '-x' options to focus on a specific PID. +description: The schedtimes.stp script instruments the scheduler to track the amount of time that each process spends in running, sleeping, queuing, and waiting for io. On exit the script prints out the accumulated time for each state of processes observed. Optionally, this script can be used with the '-c' or '-x' options to focus on a specific PID. test_support: stap -l 'kernel.trace("sched_switch"),kernel.trace("sched_wakeup")' test_check: stap -p4 schedtimes.stp test_installcheck: stap schedtimes.stp -c "sleep 0.2" diff --git a/testsuite/systemtap.examples/process/sigkill.meta b/testsuite/systemtap.examples/process/sigkill.meta index b9c83f15..fed49a05 100644 --- a/testsuite/systemtap.examples/process/sigkill.meta +++ b/testsuite/systemtap.examples/process/sigkill.meta @@ -8,7 +8,7 @@ status: production exit: user-controlled output: trace scope: systemwide -description: The script traces any SIGKILL signals. When that SIGKILL signal is sent to a process, the script prints out the signal name, the destination executable and process ID, the executable name user ID that sent the signal. +description: The script traces any SIGKILL signals. When that SIGKILL signal is sent to a process, the script prints out the signal name, the destination executable and process ID, the executable name and user ID that sents the signal. arg_1: The name of the signal to look for on selected process. test_check: stap -p4 sigkill.stp test_installcheck: stap sigkill.stp -c "sleep 0.2" diff --git a/testsuite/systemtap.examples/process/sleepingBeauties.meta b/testsuite/systemtap.examples/process/sleepingBeauties.meta index b2692ba0..693a7789 100644 --- a/testsuite/systemtap.examples/process/sleepingBeauties.meta +++ b/testsuite/systemtap.examples/process/sleepingBeauties.meta @@ -2,6 +2,6 @@ title: Generating Backtraces of Threads Waiting for IO Operations name: sleepingBeauties.stp keywords: io scheduler backtrace subsystem: scheduler -description: The script monitors the time that threads spend waiting for IO operations (in "D" state) in the wait_for_completion function. If a thread spends over 10ms, its name and backtrace is printed, and later so is the total delay. +description: The script monitors the time that threads spend in waiting for IO operations (in "D" state) in the wait_for_completion function. If a thread spends over 10ms, its name and backtrace is printed, and later so is the total delay. test_check: stap -p4 sleepingBeauties.stp test_installcheck: stap sleepingBeauties.stp -c "sleep 0.2" diff --git a/testsuite/systemtap.examples/process/sleepingBeauties.stp b/testsuite/systemtap.examples/process/sleepingBeauties.stp index 64c563a3..143fbe1c 100755 --- a/testsuite/systemtap.examples/process/sleepingBeauties.stp +++ b/testsuite/systemtap.examples/process/sleepingBeauties.stp @@ -1,4 +1,4 @@ -#! /usr/bin/stap +#! /usr/bin/env stap function time () { return gettimeofday_ms() } global time_name = "ms" diff --git a/testsuite/systemtap.examples/process/wait4time.stp b/testsuite/systemtap.examples/process/wait4time.stp index 2fd914b9..3e374b14 100755 --- a/testsuite/systemtap.examples/process/wait4time.stp +++ b/testsuite/systemtap.examples/process/wait4time.stp @@ -11,10 +11,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Print out the amount of time spent in the read and write systemcall - * when a process closes each file is closed. Note that the script needs - * to be running before the open operations occur for the script - * to record data. + * Print out the time spent in wait4 systemcall * * Format is: * timestamp pid (executabable) wait4: time_us pid |