diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-11-20 10:47:36 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-11-20 10:47:36 -0500 |
commit | 09a98ae0632fbbb19fab4f5536203e405176a403 (patch) | |
tree | cb0f425ae1666b9b20299976f518bb62422f2130 | |
parent | a006b96108a8b92b73af5ddb396cb1b1119f5529 (diff) | |
download | systemtap-steved-09a98ae0632fbbb19fab4f5536203e405176a403.tar.gz systemtap-steved-09a98ae0632fbbb19fab4f5536203e405176a403.tar.xz systemtap-steved-09a98ae0632fbbb19fab4f5536203e405176a403.zip |
example catalog: remove by-subsystem indexes
-rw-r--r-- | testsuite/systemtap.examples/ChangeLog | 4 | ||||
-rw-r--r-- | testsuite/systemtap.examples/examples-index-gen.pl | 66 | ||||
-rw-r--r-- | testsuite/systemtap.examples/html/html_header.tmpl | 1 | ||||
-rw-r--r-- | testsuite/systemtap.examples/index.html | 49 | ||||
-rw-r--r-- | testsuite/systemtap.examples/index.txt | 50 | ||||
-rw-r--r-- | testsuite/systemtap.examples/keyword-index.html | 87 | ||||
-rw-r--r-- | testsuite/systemtap.examples/keyword-index.txt | 88 | ||||
-rw-r--r-- | testsuite/systemtap.examples/subsystem-index.html | 165 | ||||
-rw-r--r-- | testsuite/systemtap.examples/subsystem-index.txt | 243 |
9 files changed, 144 insertions, 609 deletions
diff --git a/testsuite/systemtap.examples/ChangeLog b/testsuite/systemtap.examples/ChangeLog index 25d02a2a..93151088 100644 --- a/testsuite/systemtap.examples/ChangeLog +++ b/testsuite/systemtap.examples/ChangeLog @@ -1,3 +1,7 @@ +2008-11-20 Frank Ch. Eigler <fche@elastic.org> + + * subsystem-*: Removed subsystem indexes. + 2008-11-19 Frank Ch. Eigler <fche@elastic.org> * process/sleepingBeauties.meta: Updated description. diff --git a/testsuite/systemtap.examples/examples-index-gen.pl b/testsuite/systemtap.examples/examples-index-gen.pl index 9bdc1174..5353380d 100644 --- a/testsuite/systemtap.examples/examples-index-gen.pl +++ b/testsuite/systemtap.examples/examples-index-gen.pl @@ -37,8 +37,6 @@ print "Parsing .meta files in $inputdir...\n"; find(\&parse_meta_files, $inputdir); my $meta; -my $subsystem; -my %subsystems; my $keyword; my %keywords; @@ -53,7 +51,6 @@ sub add_meta_txt(*;$) { #print $file "exits: $scripts{$meta}{exit}, "; #print $file "status: $scripts{$meta}{status}\n"; - print $file "subsystems: $scripts{$meta}{subsystem}, "; print $file "keywords: $scripts{$meta}{keywords}\n\n"; $Text::Wrap::columns = 72; @@ -74,7 +71,6 @@ sub add_meta_html(*;$) { #print $file "exits: $scripts{$meta}{exit}, "; #print $file "status: $scripts{$meta}{status}<br>\n"; - print $file "subsystems: $scripts{$meta}{subsystem}, "; print $file "keywords: $scripts{$meta}{keywords}<br>\n"; print $file "<p>$scripts{$meta}{description}"; @@ -82,7 +78,7 @@ sub add_meta_html(*;$) { } my $HEADER = "SYSTEMTAP EXAMPLES INDEX\n" - . "(see also subsystem-index.txt, keyword-index.txt)\n\n"; + . "(see also keyword-index.txt)\n\n"; my $header_tmpl = "$inputdir/html/html_header.tmpl"; open(TEMPLATE, "<$header_tmpl") @@ -95,7 +91,7 @@ open(TEMPLATE, "<$footer_tmpl") my $HTMLFOOTER = do { local $/; <TEMPLATE> }; close(TEMPLATE); -# Output full index and collect subsystems and keywords +# Output full index and collect keywords my $fullindex = "$outputdir/index.txt"; open (FULLINDEX, ">$fullindex") || die "couldn't open $fullindex: $!"; @@ -115,15 +111,6 @@ foreach $meta (sort keys %scripts) { add_meta_txt(\*FULLINDEX, $meta); add_meta_html(\*FULLHTML, $meta); - # Collect subsystems - foreach $subsystem (split(/ /, $scripts{$meta}{subsystem})) { - if (defined $subsystems{$subsystem}) { - push(@{$subsystems{$subsystem}}, $meta); - } else { - $subsystems{$subsystem} = [ $meta ]; - } - } - # Collect keywords foreach $keyword (split(/ /, $scripts{$meta}{keywords})) { if (defined $keywords{$keyword}) { @@ -138,51 +125,11 @@ print FULLHTML $HTMLFOOTER; close (FULLINDEX); close (FULLHTML); -my $SUBHEADER = "SYSTEMTAP EXAMPLES INDEX BY SUBSYSTEM\n" - . "(see also index.txt, keyword-index.txt)\n\n"; - -# Output subsystem index -my $subindex = "$outputdir/subsystem-index.txt"; -open (SUBINDEX, ">$subindex") - || die "couldn't open $subindex: $!"; -print "Creating $subindex...\n"; -print SUBINDEX $SUBHEADER; - -my $subhtml = "$outputdir/subsystem-index.html"; -open (SUBHTML, ">$subhtml") - || die "couldn't open $subhtml: $!"; -print "Creating $subhtml...\n"; -print SUBHTML $HTMLHEADER; -print SUBHTML "<h2>Examples by Subsystem</h2>\n"; - -# On top link list -print SUBHTML "<p><tt>"; -foreach $subsystem (sort keys %subsystems) { - print SUBHTML '<a href="#' . (uc $subsystem) . '">' - . (uc $subsystem) . "</a> "; -} -print SUBHTML "</tt></p>\n"; - -foreach $subsystem (sort keys %subsystems) { - print SUBINDEX "= " . (uc $subsystem) . " =\n\n"; - print SUBHTML "<h3>" . '<a name="' . (uc $subsystem) . '">' - . (uc $subsystem) . "</a></h3>\n"; - print SUBHTML "<ul>\n"; - - foreach $meta (sort @{$subsystems{$subsystem}}) { - add_meta_txt(\*SUBINDEX,$meta); - add_meta_html(\*SUBHTML,$meta); - } - print SUBHTML "</ul>\n"; -} -print SUBHTML $HTMLFOOTER; -close (SUBINDEX); -close (SUBHTML); my $KEYHEADER = "SYSTEMTAP EXAMPLES INDEX BY KEYWORD\n" - . "(see also index.txt, subsystem-index.txt)\n\n"; + . "(see also index.txt)\n\n"; -# Output subsystem index +# Output keyword index my $keyindex = "$outputdir/keyword-index.txt"; open (KEYINDEX, ">$keyindex") || die "couldn't open $keyindex: $!"; @@ -251,7 +198,6 @@ sub parse_meta_files { my $title; my $name; my $keywords; - my $subsystem; my $status; my $exit; my $output; @@ -260,7 +206,6 @@ sub parse_meta_files { if (/^title: (.*)/) { $title = $1; } if (/^name: (.*)/) { $name = $1; } if (/^keywords: (.*)/) { $keywords = $1; } - if (/^subsystem: (.*)/) { $subsystem = $1; } if (/^status: (.*)/) { $status = $1; } if (/^exit: (.*)/) { $exit = $1; } if (/^output: (.*)/) { $output = $1; } @@ -271,8 +216,6 @@ sub parse_meta_files { # Remove extra whitespace $keywords =~ s/^\s*//; $keywords =~ s/\s*$//; - $subsystem =~ s/^\s*//; - $subsystem =~ s/\s*$//; # The subdir without the inputdir prefix, nor any slashes. my $subdir = substr $File::Find::dir, (length $inputdir); @@ -285,7 +228,6 @@ sub parse_meta_files { name => $name, title => $title, keywords => $keywords, - subsystem => $subsystem, status => $status, exit => $exit, output => $output, diff --git a/testsuite/systemtap.examples/html/html_header.tmpl b/testsuite/systemtap.examples/html/html_header.tmpl index 25c7e5a0..a4c939df 100644 --- a/testsuite/systemtap.examples/html/html_header.tmpl +++ b/testsuite/systemtap.examples/html/html_header.tmpl @@ -35,7 +35,6 @@ <h2>Example Indexes</h2> <ul> <li><a href="index.html">All Examples</a></li> - <li><a href="subsystem-index.html">By Subsystem</a></li> <li><a href="keyword-index.html">By Keyword</a></li> </ul> diff --git a/testsuite/systemtap.examples/index.html b/testsuite/systemtap.examples/index.html index 54305057..bbdd1d63 100644 --- a/testsuite/systemtap.examples/index.html +++ b/testsuite/systemtap.examples/index.html @@ -35,83 +35,82 @@ <h2>Example Indexes</h2> <ul> <li><a href="index.html">All Examples</a></li> - <li><a href="subsystem-index.html">By Subsystem</a></li> <li><a href="keyword-index.html">By Keyword</a></li> </ul> <h2>All Examples</h2> <ul> <li><a href="general/graphs.stp">general/graphs.stp</a> - Graphing Disk and CPU Utilization<br> -subsystems: disk cpu, keywords: disk cpu use graph<br> +keywords: disk cpu use graph<br> <p>The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk and CPU USE.</p></li> <li><a href="general/helloworld.stp">general/helloworld.stp</a> - SystemTap "Hello World" Program<br> -subsystems: none, keywords: simple<br> +keywords: simple<br> <p>A basic "Hello World" program implemented in SystemTap script. It prints out "hello world" message and then immediately exits.</p></li> <li><a href="general/para-callgraph.stp">general/para-callgraph.stp</a> - Callgraph tracing with arguments<br> -subsystems: general, keywords: trace callgraph<br> +keywords: trace callgraph<br> <p>Print a timed per-thread callgraph, complete with function parameters and return values. The first parameter names the function probe points to trace. The optional second parameter names the probe points for trigger functions, which acts to enable tracing for only those functions that occur while the current thread is nested within the trigger.</p></li> <li><a href="io/disktop.stp">io/disktop.stp</a> - Summarize Disk Read/Write Traffic<br> -subsystems: disk, keywords: disk<br> +keywords: disk<br> <p>Get the status of reading/writing disk every 5 seconds, output top ten entries during that period.</p></li> <li><a href="io/io_submit.stp">io/io_submit.stp</a> - Tally Reschedule Reason During AIO io_submit Call<br> -subsystems: io, keywords: io backtrace<br> +keywords: io backtrace<br> <p>When a reschedule occurs during an AIO io_submit call, accumulate the traceback in a histogram. When the script exits prints out a sorted list from most common to least common backtrace.</p></li> <li><a href="io/iotime.stp">io/iotime.stp</a> - Trace Time Spent in Read and Write for Files <br> -subsystems: syscall, keywords: syscall read write time io<br> +keywords: syscall read write time io<br> <p>The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the amount of wall clock time spend in read and write operations and the number of bytes read and written. When a file is closed the script prints out a pair of lines for the file. Both lines begin with a timestamp in microseconds, the PID number, and the executable name in parenthesese. The first line with the "access" keyword lists the file name, the attempted number of bytes for the read and write operations. The second line with the "iotime" keyword list the file name and the number of microseconds accumulated in the read and write syscalls.</p></li> <li><a href="io/iotop.stp">io/iotop.stp</a> - Periodically Print I/O Activity by Process Name<br> -subsystems: io, keywords: io<br> +keywords: io<br> <p>Every five seconds print out the top ten executables generating I/O traffic during that interval sorted in descending order.</p></li> <li><a href="io/traceio.stp">io/traceio.stp</a> - Track Cumulative I/O Activity by Process Name<br> -subsystems: io, keywords: io<br> +keywords: io<br> <p>Every second print out the top ten executables sorted in descending order based on cumulative I/O traffic observed.</p></li> <li><a href="io/traceio2.stp">io/traceio2.stp</a> - Watch I/O Activity on a Particular Device<br> -subsystems: io, keywords: io<br> +keywords: io<br> <p>Print out the executable name and process number as reads and writes to the specified device occur.</p></li> <li><a href="network/nettop.stp">network/nettop.stp</a> - Periodic Listing of Processes Using Network Interfaces<br> -subsystems: network, keywords: network traffic per-process<br> +keywords: network traffic per-process<br> <p>Every five seconds the nettop.stp script prints out a list of processed (PID and command) with the number of packets sent/received and the amount of data sent/received by the process during that interval.</p></li> <li><a href="network/socket-trace.stp">network/socket-trace.stp</a> - Trace Functions called in Network Socket Code<br> -subsystems: network, keywords: network socket<br> +keywords: network socket<br> <p>The script instrument each of the functions inn the Linux kernel's net/socket.c file. The script prints out trace. The first element of a line is time delta in microseconds from the previous entry. This is followed by the command name and the PID. The "->" and "<-" indicates function entry and function exit, respectively. The last element of the line is the function name.</p></li> <li><a href="process/futexes.stp">process/futexes.stp</a> - System-Wide Futex Contention<br> -subsystems: locking, keywords: syscall locking futex<br> +keywords: syscall locking futex<br> <p>The script watches the futex syscall on the system. On exit the futexes address, the number of contentions, and the average time for each contention on the futex are printed from lowest pid number to highest.</p></li> <li><a href="process/pf2.stp">process/pf2.stp</a> - Profile kernel functions<br> -subsystems: kernel, keywords: profiling<br> +keywords: profiling<br> <p>The pf2.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top ten kernel functions with samples.</p></li> <li><a href="process/sig_by_pid.stp">process/sig_by_pid.stp</a> - Signal Counts by Process ID<br> -subsystems: signals, keywords: signals<br> +keywords: signals<br> <p>Print signal counts by process ID in descending order.</p></li> <li><a href="process/sig_by_proc.stp">process/sig_by_proc.stp</a> - Signal Counts by Process Name<br> -subsystems: signals, keywords: signals<br> +keywords: signals<br> <p>Print signal counts by process name in descending order.</p></li> <li><a href="process/sigkill.stp">process/sigkill.stp</a> - Track SIGKILL Signals<br> -subsystems: signals, keywords: signals<br> +keywords: signals<br> <p>The script traces any SIGKILL signals. When that SIGKILL signal is sent to a process, the script prints out the signal name, the desination executable and process ID, the executable name user ID that sent the signal.</p></li> <li><a href="process/syscalls_by_pid.stp">process/syscalls_by_pid.stp</a> - System-Wide Count of Syscalls by PID<br> -subsystems: signals, keywords: signals<br> +keywords: signals<br> <p>The script watches for a particular signal sent to a specific process. When that signal is sent to the specified process, the script prints out the PID and executable of the process sending the signal, the PID and executable name of the process receiving the signal, and the signal number and name.</p></li> <li><a href="process/sleepingBeauties.stp">process/sleepingBeauties.stp</a> - Generating Backtraces of Threads Waiting for IO Operations<br> -subsystems: scheduler, keywords: io scheduler backtrace<br> +keywords: io scheduler backtrace<br> <p>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.</p></li> <li><a href="process/sleeptime.stp">process/sleeptime.stp</a> - Trace Time Spent in nanosleep Syscalls<br> -subsystems: syscall, keywords: syscall sleep<br> +keywords: syscall sleep<br> <p>The script watches each nanosleep syscall on the system. At the end of each nanosleep syscall the script prints out a line with a timestamp in microseconds, the pid, the executable name in paretheses, the "nanosleep:" key, and the duration of the sleep in microseconds.</p></li> <li><a href="process/syscalls_by_pid.stp">process/syscalls_by_pid.stp</a> - System-Wide Count of Syscalls by PID<br> -subsystems: syscall, keywords: syscall<br> +keywords: syscall<br> <p>The script watches all syscall on the system. On exit the script prints a list showing the number of systemcalls executed by each PID ordered from greatest to least number of syscalls.</p></li> <li><a href="process/syscalls_by_proc.stp">process/syscalls_by_proc.stp</a> - System-Wide Count of Syscalls by Executable<br> -subsystems: syscall, keywords: syscall<br> +keywords: syscall<br> <p>The script watches all syscall on the system. On exit the script prints a list showing the number of systemcalls executed by each executable ordered from greates to least number of syscalls.</p></li> <li><a href="process/wait4time.stp">process/wait4time.stp</a> - Trace Time Spent in wait4 Syscalls<br> -subsystems: syscall, keywords: syscall wait4<br> +keywords: syscall wait4<br> <p>The script watches each wait4 syscall on the system. At the end of each wait4 syscall the script prints out a line with a timestamp in microseconds, the pid, the executable name in paretheses, the "wait4:" key, the duration of the wait and the PID that the wait4 was waiting for. If the waited for PID is not specified , it is "-1".</p></li> <li><a href="profiling/functioncallcount.stp">profiling/functioncallcount.stp</a> - Count Times Functions Called<br> -subsystems: kernel, keywords: profiling functions<br> +keywords: profiling functions<br> <p>The functioncallcount.stp script takes one argument, a list of functions to probe. The script will run and count the number of times that each of the functions on the list is called. On exit the script will print a sorted list from most frequently to least frequently called function.</p></li> <li><a href="profiling/thread-times.stp">profiling/thread-times.stp</a> - Profile kernel functions<br> -subsystems: kernel, keywords: profiling<br> +keywords: profiling<br> <p>The thread-times.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top twenty processes with samples broken down into percentage total time spent in user-space and kernel-space.</p></li> </ul> </td> diff --git a/testsuite/systemtap.examples/index.txt b/testsuite/systemtap.examples/index.txt index 72ae3633..fce068b8 100644 --- a/testsuite/systemtap.examples/index.txt +++ b/testsuite/systemtap.examples/index.txt @@ -1,8 +1,8 @@ SYSTEMTAP EXAMPLES INDEX -(see also subsystem-index.txt, keyword-index.txt) +(see also keyword-index.txt) general/graphs.stp - Graphing Disk and CPU Utilization -subsystems: disk cpu, keywords: disk cpu use graph +keywords: disk cpu use graph The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk @@ -10,14 +10,14 @@ subsystems: disk cpu, keywords: disk cpu use graph general/helloworld.stp - SystemTap "Hello World" Program -subsystems: none, keywords: simple +keywords: simple A basic "Hello World" program implemented in SystemTap script. It prints out "hello world" message and then immediately exits. general/para-callgraph.stp - Callgraph tracing with arguments -subsystems: general, keywords: trace callgraph +keywords: trace callgraph Print a timed per-thread callgraph, complete with function parameters and return values. The first parameter names the function probe @@ -28,14 +28,14 @@ subsystems: general, keywords: trace callgraph io/disktop.stp - Summarize Disk Read/Write Traffic -subsystems: disk, keywords: disk +keywords: disk Get the status of reading/writing disk every 5 seconds, output top ten entries during that period. io/io_submit.stp - Tally Reschedule Reason During AIO io_submit Call -subsystems: io, keywords: io backtrace +keywords: io backtrace When a reschedule occurs during an AIO io_submit call, accumulate the traceback in a histogram. When the script exits prints out a sorted @@ -43,7 +43,7 @@ subsystems: io, keywords: io backtrace io/iotime.stp - Trace Time Spent in Read and Write for Files -subsystems: syscall, keywords: syscall read write time io +keywords: syscall read write time io The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the @@ -59,28 +59,28 @@ subsystems: syscall, keywords: syscall read write time io io/iotop.stp - Periodically Print I/O Activity by Process Name -subsystems: io, keywords: io +keywords: io Every five seconds print out the top ten executables generating I/O traffic during that interval sorted in descending order. io/traceio.stp - Track Cumulative I/O Activity by Process Name -subsystems: io, keywords: io +keywords: io Every second print out the top ten executables sorted in descending order based on cumulative I/O traffic observed. io/traceio2.stp - Watch I/O Activity on a Particular Device -subsystems: io, keywords: io +keywords: io Print out the executable name and process number as reads and writes to the specified device occur. network/nettop.stp - Periodic Listing of Processes Using Network Interfaces -subsystems: network, keywords: network traffic per-process +keywords: network traffic per-process Every five seconds the nettop.stp script prints out a list of processed (PID and command) with the number of packets sent/received @@ -89,7 +89,7 @@ subsystems: network, keywords: network traffic per-process network/socket-trace.stp - Trace Functions called in Network Socket Code -subsystems: network, keywords: network socket +keywords: network socket The script instrument each of the functions inn the Linux kernel's net/socket.c file. The script prints out trace. The first element of @@ -100,7 +100,7 @@ subsystems: network, keywords: network socket process/futexes.stp - System-Wide Futex Contention -subsystems: locking, keywords: syscall locking futex +keywords: syscall locking futex The script watches the futex syscall on the system. On exit the futexes address, the number of contentions, and the average time for @@ -109,7 +109,7 @@ subsystems: locking, keywords: syscall locking futex process/pf2.stp - Profile kernel functions -subsystems: kernel, keywords: profiling +keywords: profiling The pf2.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top ten kernel functions with @@ -117,19 +117,19 @@ subsystems: kernel, keywords: profiling process/sig_by_pid.stp - Signal Counts by Process ID -subsystems: signals, keywords: signals +keywords: signals Print signal counts by process ID in descending order. process/sig_by_proc.stp - Signal Counts by Process Name -subsystems: signals, keywords: signals +keywords: signals Print signal counts by process name in descending order. process/sigkill.stp - Track SIGKILL Signals -subsystems: signals, keywords: signals +keywords: signals The script traces any SIGKILL signals. When that SIGKILL signal is sent to a process, the script prints out the signal name, the @@ -138,7 +138,7 @@ subsystems: signals, keywords: signals process/syscalls_by_pid.stp - System-Wide Count of Syscalls by PID -subsystems: signals, keywords: signals +keywords: signals The script watches for a particular signal sent to a specific process. When that signal is sent to the specified process, the @@ -148,7 +148,7 @@ subsystems: signals, keywords: signals process/sleepingBeauties.stp - Generating Backtraces of Threads Waiting for IO Operations -subsystems: scheduler, keywords: io scheduler backtrace +keywords: io scheduler backtrace The script monitors the time that threads spend waiting for IO operations (in "D" state) in the wait_for_completion function. If a @@ -157,7 +157,7 @@ subsystems: scheduler, keywords: io scheduler backtrace process/sleeptime.stp - Trace Time Spent in nanosleep Syscalls -subsystems: syscall, keywords: syscall sleep +keywords: syscall sleep The script watches each nanosleep syscall on the system. At the end of each nanosleep syscall the script prints out a line with a @@ -167,7 +167,7 @@ subsystems: syscall, keywords: syscall sleep process/syscalls_by_pid.stp - System-Wide Count of Syscalls by PID -subsystems: syscall, keywords: syscall +keywords: syscall The script watches all syscall on the system. On exit the script prints a list showing the number of systemcalls executed by each PID @@ -175,7 +175,7 @@ subsystems: syscall, keywords: syscall process/syscalls_by_proc.stp - System-Wide Count of Syscalls by Executable -subsystems: syscall, keywords: syscall +keywords: syscall The script watches all syscall on the system. On exit the script prints a list showing the number of systemcalls executed by each @@ -183,7 +183,7 @@ subsystems: syscall, keywords: syscall process/wait4time.stp - Trace Time Spent in wait4 Syscalls -subsystems: syscall, keywords: syscall wait4 +keywords: syscall wait4 The script watches each wait4 syscall on the system. At the end of each wait4 syscall the script prints out a line with a timestamp in @@ -193,7 +193,7 @@ subsystems: syscall, keywords: syscall wait4 profiling/functioncallcount.stp - Count Times Functions Called -subsystems: kernel, keywords: profiling functions +keywords: profiling functions The functioncallcount.stp script takes one argument, a list of functions to probe. The script will run and count the number of times @@ -203,7 +203,7 @@ subsystems: kernel, keywords: profiling functions profiling/thread-times.stp - Profile kernel functions -subsystems: kernel, keywords: profiling +keywords: profiling The thread-times.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top twenty processes diff --git a/testsuite/systemtap.examples/keyword-index.html b/testsuite/systemtap.examples/keyword-index.html index 8a673c2f..64b86c17 100644 --- a/testsuite/systemtap.examples/keyword-index.html +++ b/testsuite/systemtap.examples/keyword-index.html @@ -35,7 +35,6 @@ <h2>Example Indexes</h2> <ul> <li><a href="index.html">All Examples</a></li> - <li><a href="subsystem-index.html">By Subsystem</a></li> <li><a href="keyword-index.html">By Keyword</a></li> </ul> @@ -44,205 +43,205 @@ <h3><a name="BACKTRACE">BACKTRACE</a></h3> <ul> <li><a href="io/io_submit.stp">io/io_submit.stp</a> - Tally Reschedule Reason During AIO io_submit Call<br> -subsystems: io, keywords: io backtrace<br> +keywords: io backtrace<br> <p>When a reschedule occurs during an AIO io_submit call, accumulate the traceback in a histogram. When the script exits prints out a sorted list from most common to least common backtrace.</p></li> <li><a href="process/sleepingBeauties.stp">process/sleepingBeauties.stp</a> - Generating Backtraces of Threads Waiting for IO Operations<br> -subsystems: scheduler, keywords: io scheduler backtrace<br> +keywords: io scheduler backtrace<br> <p>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.</p></li> </ul> <h3><a name="CALLGRAPH">CALLGRAPH</a></h3> <ul> <li><a href="general/para-callgraph.stp">general/para-callgraph.stp</a> - Callgraph tracing with arguments<br> -subsystems: general, keywords: trace callgraph<br> +keywords: trace callgraph<br> <p>Print a timed per-thread callgraph, complete with function parameters and return values. The first parameter names the function probe points to trace. The optional second parameter names the probe points for trigger functions, which acts to enable tracing for only those functions that occur while the current thread is nested within the trigger.</p></li> </ul> <h3><a name="CPU">CPU</a></h3> <ul> <li><a href="general/graphs.stp">general/graphs.stp</a> - Graphing Disk and CPU Utilization<br> -subsystems: disk cpu, keywords: disk cpu use graph<br> +keywords: disk cpu use graph<br> <p>The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk and CPU USE.</p></li> </ul> <h3><a name="DISK">DISK</a></h3> <ul> <li><a href="general/graphs.stp">general/graphs.stp</a> - Graphing Disk and CPU Utilization<br> -subsystems: disk cpu, keywords: disk cpu use graph<br> +keywords: disk cpu use graph<br> <p>The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk and CPU USE.</p></li> <li><a href="io/disktop.stp">io/disktop.stp</a> - Summarize Disk Read/Write Traffic<br> -subsystems: disk, keywords: disk<br> +keywords: disk<br> <p>Get the status of reading/writing disk every 5 seconds, output top ten entries during that period.</p></li> </ul> <h3><a name="FUNCTIONS">FUNCTIONS</a></h3> <ul> <li><a href="profiling/functioncallcount.stp">profiling/functioncallcount.stp</a> - Count Times Functions Called<br> -subsystems: kernel, keywords: profiling functions<br> +keywords: profiling functions<br> <p>The functioncallcount.stp script takes one argument, a list of functions to probe. The script will run and count the number of times that each of the functions on the list is called. On exit the script will print a sorted list from most frequently to least frequently called function.</p></li> </ul> <h3><a name="FUTEX">FUTEX</a></h3> <ul> <li><a href="process/futexes.stp">process/futexes.stp</a> - System-Wide Futex Contention<br> -subsystems: locking, keywords: syscall locking futex<br> +keywords: syscall locking futex<br> <p>The script watches the futex syscall on the system. On exit the futexes address, the number of contentions, and the average time for each contention on the futex are printed from lowest pid number to highest.</p></li> </ul> <h3><a name="GRAPH">GRAPH</a></h3> <ul> <li><a href="general/graphs.stp">general/graphs.stp</a> - Graphing Disk and CPU Utilization<br> -subsystems: disk cpu, keywords: disk cpu use graph<br> +keywords: disk cpu use graph<br> <p>The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk and CPU USE.</p></li> </ul> <h3><a name="IO">IO</a></h3> <ul> <li><a href="io/io_submit.stp">io/io_submit.stp</a> - Tally Reschedule Reason During AIO io_submit Call<br> -subsystems: io, keywords: io backtrace<br> +keywords: io backtrace<br> <p>When a reschedule occurs during an AIO io_submit call, accumulate the traceback in a histogram. When the script exits prints out a sorted list from most common to least common backtrace.</p></li> <li><a href="io/iotime.stp">io/iotime.stp</a> - Trace Time Spent in Read and Write for Files <br> -subsystems: syscall, keywords: syscall read write time io<br> +keywords: syscall read write time io<br> <p>The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the amount of wall clock time spend in read and write operations and the number of bytes read and written. When a file is closed the script prints out a pair of lines for the file. Both lines begin with a timestamp in microseconds, the PID number, and the executable name in parenthesese. The first line with the "access" keyword lists the file name, the attempted number of bytes for the read and write operations. The second line with the "iotime" keyword list the file name and the number of microseconds accumulated in the read and write syscalls.</p></li> <li><a href="io/iotop.stp">io/iotop.stp</a> - Periodically Print I/O Activity by Process Name<br> -subsystems: io, keywords: io<br> +keywords: io<br> <p>Every five seconds print out the top ten executables generating I/O traffic during that interval sorted in descending order.</p></li> <li><a href="io/traceio.stp">io/traceio.stp</a> - Track Cumulative I/O Activity by Process Name<br> -subsystems: io, keywords: io<br> +keywords: io<br> <p>Every second print out the top ten executables sorted in descending order based on cumulative I/O traffic observed.</p></li> <li><a href="io/traceio2.stp">io/traceio2.stp</a> - Watch I/O Activity on a Particular Device<br> -subsystems: io, keywords: io<br> +keywords: io<br> <p>Print out the executable name and process number as reads and writes to the specified device occur.</p></li> <li><a href="process/sleepingBeauties.stp">process/sleepingBeauties.stp</a> - Generating Backtraces of Threads Waiting for IO Operations<br> -subsystems: scheduler, keywords: io scheduler backtrace<br> +keywords: io scheduler backtrace<br> <p>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.</p></li> </ul> <h3><a name="LOCKING">LOCKING</a></h3> <ul> <li><a href="process/futexes.stp">process/futexes.stp</a> - System-Wide Futex Contention<br> -subsystems: locking, keywords: syscall locking futex<br> +keywords: syscall locking futex<br> <p>The script watches the futex syscall on the system. On exit the futexes address, the number of contentions, and the average time for each contention on the futex are printed from lowest pid number to highest.</p></li> </ul> <h3><a name="NETWORK">NETWORK</a></h3> <ul> <li><a href="network/nettop.stp">network/nettop.stp</a> - Periodic Listing of Processes Using Network Interfaces<br> -subsystems: network, keywords: network traffic per-process<br> +keywords: network traffic per-process<br> <p>Every five seconds the nettop.stp script prints out a list of processed (PID and command) with the number of packets sent/received and the amount of data sent/received by the process during that interval.</p></li> <li><a href="network/socket-trace.stp">network/socket-trace.stp</a> - Trace Functions called in Network Socket Code<br> -subsystems: network, keywords: network socket<br> +keywords: network socket<br> <p>The script instrument each of the functions inn the Linux kernel's net/socket.c file. The script prints out trace. The first element of a line is time delta in microseconds from the previous entry. This is followed by the command name and the PID. The "->" and "<-" indicates function entry and function exit, respectively. The last element of the line is the function name.</p></li> </ul> <h3><a name="PER-PROCESS">PER-PROCESS</a></h3> <ul> <li><a href="network/nettop.stp">network/nettop.stp</a> - Periodic Listing of Processes Using Network Interfaces<br> -subsystems: network, keywords: network traffic per-process<br> +keywords: network traffic per-process<br> <p>Every five seconds the nettop.stp script prints out a list of processed (PID and command) with the number of packets sent/received and the amount of data sent/received by the process during that interval.</p></li> </ul> <h3><a name="PROFILING">PROFILING</a></h3> <ul> <li><a href="process/pf2.stp">process/pf2.stp</a> - Profile kernel functions<br> -subsystems: kernel, keywords: profiling<br> +keywords: profiling<br> <p>The pf2.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top ten kernel functions with samples.</p></li> <li><a href="profiling/functioncallcount.stp">profiling/functioncallcount.stp</a> - Count Times Functions Called<br> -subsystems: kernel, keywords: profiling functions<br> +keywords: profiling functions<br> <p>The functioncallcount.stp script takes one argument, a list of functions to probe. The script will run and count the number of times that each of the functions on the list is called. On exit the script will print a sorted list from most frequently to least frequently called function.</p></li> <li><a href="profiling/thread-times.stp">profiling/thread-times.stp</a> - Profile kernel functions<br> -subsystems: kernel, keywords: profiling<br> +keywords: profiling<br> <p>The thread-times.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top twenty processes with samples broken down into percentage total time spent in user-space and kernel-space.</p></li> </ul> <h3><a name="READ">READ</a></h3> <ul> <li><a href="io/iotime.stp">io/iotime.stp</a> - Trace Time Spent in Read and Write for Files <br> -subsystems: syscall, keywords: syscall read write time io<br> +keywords: syscall read write time io<br> <p>The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the amount of wall clock time spend in read and write operations and the number of bytes read and written. When a file is closed the script prints out a pair of lines for the file. Both lines begin with a timestamp in microseconds, the PID number, and the executable name in parenthesese. The first line with the "access" keyword lists the file name, the attempted number of bytes for the read and write operations. The second line with the "iotime" keyword list the file name and the number of microseconds accumulated in the read and write syscalls.</p></li> </ul> <h3><a name="SCHEDULER">SCHEDULER</a></h3> <ul> <li><a href="process/sleepingBeauties.stp">process/sleepingBeauties.stp</a> - Generating Backtraces of Threads Waiting for IO Operations<br> -subsystems: scheduler, keywords: io scheduler backtrace<br> +keywords: io scheduler backtrace<br> <p>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.</p></li> </ul> <h3><a name="SIGNALS">SIGNALS</a></h3> <ul> <li><a href="process/sig_by_pid.stp">process/sig_by_pid.stp</a> - Signal Counts by Process ID<br> -subsystems: signals, keywords: signals<br> +keywords: signals<br> <p>Print signal counts by process ID in descending order.</p></li> <li><a href="process/sig_by_proc.stp">process/sig_by_proc.stp</a> - Signal Counts by Process Name<br> -subsystems: signals, keywords: signals<br> +keywords: signals<br> <p>Print signal counts by process name in descending order.</p></li> <li><a href="process/sigkill.stp">process/sigkill.stp</a> - Track SIGKILL Signals<br> -subsystems: signals, keywords: signals<br> +keywords: signals<br> <p>The script traces any SIGKILL signals. When that SIGKILL signal is sent to a process, the script prints out the signal name, the desination executable and process ID, the executable name user ID that sent the signal.</p></li> <li><a href="process/syscalls_by_pid.stp">process/syscalls_by_pid.stp</a> - System-Wide Count of Syscalls by PID<br> -subsystems: signals, keywords: signals<br> +keywords: signals<br> <p>The script watches for a particular signal sent to a specific process. When that signal is sent to the specified process, the script prints out the PID and executable of the process sending the signal, the PID and executable name of the process receiving the signal, and the signal number and name.</p></li> </ul> <h3><a name="SIMPLE">SIMPLE</a></h3> <ul> <li><a href="general/helloworld.stp">general/helloworld.stp</a> - SystemTap "Hello World" Program<br> -subsystems: none, keywords: simple<br> +keywords: simple<br> <p>A basic "Hello World" program implemented in SystemTap script. It prints out "hello world" message and then immediately exits.</p></li> </ul> <h3><a name="SLEEP">SLEEP</a></h3> <ul> <li><a href="process/sleeptime.stp">process/sleeptime.stp</a> - Trace Time Spent in nanosleep Syscalls<br> -subsystems: syscall, keywords: syscall sleep<br> +keywords: syscall sleep<br> <p>The script watches each nanosleep syscall on the system. At the end of each nanosleep syscall the script prints out a line with a timestamp in microseconds, the pid, the executable name in paretheses, the "nanosleep:" key, and the duration of the sleep in microseconds.</p></li> </ul> <h3><a name="SOCKET">SOCKET</a></h3> <ul> <li><a href="network/socket-trace.stp">network/socket-trace.stp</a> - Trace Functions called in Network Socket Code<br> -subsystems: network, keywords: network socket<br> +keywords: network socket<br> <p>The script instrument each of the functions inn the Linux kernel's net/socket.c file. The script prints out trace. The first element of a line is time delta in microseconds from the previous entry. This is followed by the command name and the PID. The "->" and "<-" indicates function entry and function exit, respectively. The last element of the line is the function name.</p></li> </ul> <h3><a name="SYSCALL">SYSCALL</a></h3> <ul> <li><a href="io/iotime.stp">io/iotime.stp</a> - Trace Time Spent in Read and Write for Files <br> -subsystems: syscall, keywords: syscall read write time io<br> +keywords: syscall read write time io<br> <p>The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the amount of wall clock time spend in read and write operations and the number of bytes read and written. When a file is closed the script prints out a pair of lines for the file. Both lines begin with a timestamp in microseconds, the PID number, and the executable name in parenthesese. The first line with the "access" keyword lists the file name, the attempted number of bytes for the read and write operations. The second line with the "iotime" keyword list the file name and the number of microseconds accumulated in the read and write syscalls.</p></li> <li><a href="process/futexes.stp">process/futexes.stp</a> - System-Wide Futex Contention<br> -subsystems: locking, keywords: syscall locking futex<br> +keywords: syscall locking futex<br> <p>The script watches the futex syscall on the system. On exit the futexes address, the number of contentions, and the average time for each contention on the futex are printed from lowest pid number to highest.</p></li> <li><a href="process/sleeptime.stp">process/sleeptime.stp</a> - Trace Time Spent in nanosleep Syscalls<br> -subsystems: syscall, keywords: syscall sleep<br> +keywords: syscall sleep<br> <p>The script watches each nanosleep syscall on the system. At the end of each nanosleep syscall the script prints out a line with a timestamp in microseconds, the pid, the executable name in paretheses, the "nanosleep:" key, and the duration of the sleep in microseconds.</p></li> <li><a href="process/syscalls_by_pid.stp">process/syscalls_by_pid.stp</a> - System-Wide Count of Syscalls by PID<br> -subsystems: syscall, keywords: syscall<br> +keywords: syscall<br> <p>The script watches all syscall on the system. On exit the script prints a list showing the number of systemcalls executed by each PID ordered from greatest to least number of syscalls.</p></li> <li><a href="process/syscalls_by_proc.stp">process/syscalls_by_proc.stp</a> - System-Wide Count of Syscalls by Executable<br> -subsystems: syscall, keywords: syscall<br> +keywords: syscall<br> <p>The script watches all syscall on the system. On exit the script prints a list showing the number of systemcalls executed by each executable ordered from greates to least number of syscalls.</p></li> <li><a href="process/wait4time.stp">process/wait4time.stp</a> - Trace Time Spent in wait4 Syscalls<br> -subsystems: syscall, keywords: syscall wait4<br> +keywords: syscall wait4<br> <p>The script watches each wait4 syscall on the system. At the end of each wait4 syscall the script prints out a line with a timestamp in microseconds, the pid, the executable name in paretheses, the "wait4:" key, the duration of the wait and the PID that the wait4 was waiting for. If the waited for PID is not specified , it is "-1".</p></li> </ul> <h3><a name="TIME">TIME</a></h3> <ul> <li><a href="io/iotime.stp">io/iotime.stp</a> - Trace Time Spent in Read and Write for Files <br> -subsystems: syscall, keywords: syscall read write time io<br> +keywords: syscall read write time io<br> <p>The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the amount of wall clock time spend in read and write operations and the number of bytes read and written. When a file is closed the script prints out a pair of lines for the file. Both lines begin with a timestamp in microseconds, the PID number, and the executable name in parenthesese. The first line with the "access" keyword lists the file name, the attempted number of bytes for the read and write operations. The second line with the "iotime" keyword list the file name and the number of microseconds accumulated in the read and write syscalls.</p></li> </ul> <h3><a name="TRACE">TRACE</a></h3> <ul> <li><a href="general/para-callgraph.stp">general/para-callgraph.stp</a> - Callgraph tracing with arguments<br> -subsystems: general, keywords: trace callgraph<br> +keywords: trace callgraph<br> <p>Print a timed per-thread callgraph, complete with function parameters and return values. The first parameter names the function probe points to trace. The optional second parameter names the probe points for trigger functions, which acts to enable tracing for only those functions that occur while the current thread is nested within the trigger.</p></li> </ul> <h3><a name="TRAFFIC">TRAFFIC</a></h3> <ul> <li><a href="network/nettop.stp">network/nettop.stp</a> - Periodic Listing of Processes Using Network Interfaces<br> -subsystems: network, keywords: network traffic per-process<br> +keywords: network traffic per-process<br> <p>Every five seconds the nettop.stp script prints out a list of processed (PID and command) with the number of packets sent/received and the amount of data sent/received by the process during that interval.</p></li> </ul> <h3><a name="USE">USE</a></h3> <ul> <li><a href="general/graphs.stp">general/graphs.stp</a> - Graphing Disk and CPU Utilization<br> -subsystems: disk cpu, keywords: disk cpu use graph<br> +keywords: disk cpu use graph<br> <p>The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk and CPU USE.</p></li> </ul> <h3><a name="WAIT4">WAIT4</a></h3> <ul> <li><a href="process/wait4time.stp">process/wait4time.stp</a> - Trace Time Spent in wait4 Syscalls<br> -subsystems: syscall, keywords: syscall wait4<br> +keywords: syscall wait4<br> <p>The script watches each wait4 syscall on the system. At the end of each wait4 syscall the script prints out a line with a timestamp in microseconds, the pid, the executable name in paretheses, the "wait4:" key, the duration of the wait and the PID that the wait4 was waiting for. If the waited for PID is not specified , it is "-1".</p></li> </ul> <h3><a name="WRITE">WRITE</a></h3> <ul> <li><a href="io/iotime.stp">io/iotime.stp</a> - Trace Time Spent in Read and Write for Files <br> -subsystems: syscall, keywords: syscall read write time io<br> +keywords: syscall read write time io<br> <p>The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the amount of wall clock time spend in read and write operations and the number of bytes read and written. When a file is closed the script prints out a pair of lines for the file. Both lines begin with a timestamp in microseconds, the PID number, and the executable name in parenthesese. The first line with the "access" keyword lists the file name, the attempted number of bytes for the read and write operations. The second line with the "iotime" keyword list the file name and the number of microseconds accumulated in the read and write syscalls.</p></li> </ul> </td> diff --git a/testsuite/systemtap.examples/keyword-index.txt b/testsuite/systemtap.examples/keyword-index.txt index 470e7c45..8cafd43f 100644 --- a/testsuite/systemtap.examples/keyword-index.txt +++ b/testsuite/systemtap.examples/keyword-index.txt @@ -1,10 +1,10 @@ SYSTEMTAP EXAMPLES INDEX BY KEYWORD -(see also index.txt, subsystem-index.txt) +(see also index.txt) = BACKTRACE = io/io_submit.stp - Tally Reschedule Reason During AIO io_submit Call -subsystems: io, keywords: io backtrace +keywords: io backtrace When a reschedule occurs during an AIO io_submit call, accumulate the traceback in a histogram. When the script exits prints out a sorted @@ -12,7 +12,7 @@ subsystems: io, keywords: io backtrace process/sleepingBeauties.stp - Generating Backtraces of Threads Waiting for IO Operations -subsystems: scheduler, keywords: io scheduler backtrace +keywords: io scheduler backtrace The script monitors the time that threads spend waiting for IO operations (in "D" state) in the wait_for_completion function. If a @@ -23,7 +23,7 @@ subsystems: scheduler, keywords: io scheduler backtrace = CALLGRAPH = general/para-callgraph.stp - Callgraph tracing with arguments -subsystems: general, keywords: trace callgraph +keywords: trace callgraph Print a timed per-thread callgraph, complete with function parameters and return values. The first parameter names the function probe @@ -36,7 +36,7 @@ subsystems: general, keywords: trace callgraph = CPU = general/graphs.stp - Graphing Disk and CPU Utilization -subsystems: disk cpu, keywords: disk cpu use graph +keywords: disk cpu use graph The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk @@ -46,7 +46,7 @@ subsystems: disk cpu, keywords: disk cpu use graph = DISK = general/graphs.stp - Graphing Disk and CPU Utilization -subsystems: disk cpu, keywords: disk cpu use graph +keywords: disk cpu use graph The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk @@ -54,7 +54,7 @@ subsystems: disk cpu, keywords: disk cpu use graph io/disktop.stp - Summarize Disk Read/Write Traffic -subsystems: disk, keywords: disk +keywords: disk Get the status of reading/writing disk every 5 seconds, output top ten entries during that period. @@ -63,7 +63,7 @@ subsystems: disk, keywords: disk = FUNCTIONS = profiling/functioncallcount.stp - Count Times Functions Called -subsystems: kernel, keywords: profiling functions +keywords: profiling functions The functioncallcount.stp script takes one argument, a list of functions to probe. The script will run and count the number of times @@ -75,7 +75,7 @@ subsystems: kernel, keywords: profiling functions = FUTEX = process/futexes.stp - System-Wide Futex Contention -subsystems: locking, keywords: syscall locking futex +keywords: syscall locking futex The script watches the futex syscall on the system. On exit the futexes address, the number of contentions, and the average time for @@ -86,7 +86,7 @@ subsystems: locking, keywords: syscall locking futex = GRAPH = general/graphs.stp - Graphing Disk and CPU Utilization -subsystems: disk cpu, keywords: disk cpu use graph +keywords: disk cpu use graph The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk @@ -96,7 +96,7 @@ subsystems: disk cpu, keywords: disk cpu use graph = IO = io/io_submit.stp - Tally Reschedule Reason During AIO io_submit Call -subsystems: io, keywords: io backtrace +keywords: io backtrace When a reschedule occurs during an AIO io_submit call, accumulate the traceback in a histogram. When the script exits prints out a sorted @@ -104,7 +104,7 @@ subsystems: io, keywords: io backtrace io/iotime.stp - Trace Time Spent in Read and Write for Files -subsystems: syscall, keywords: syscall read write time io +keywords: syscall read write time io The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the @@ -120,28 +120,28 @@ subsystems: syscall, keywords: syscall read write time io io/iotop.stp - Periodically Print I/O Activity by Process Name -subsystems: io, keywords: io +keywords: io Every five seconds print out the top ten executables generating I/O traffic during that interval sorted in descending order. io/traceio.stp - Track Cumulative I/O Activity by Process Name -subsystems: io, keywords: io +keywords: io Every second print out the top ten executables sorted in descending order based on cumulative I/O traffic observed. io/traceio2.stp - Watch I/O Activity on a Particular Device -subsystems: io, keywords: io +keywords: io Print out the executable name and process number as reads and writes to the specified device occur. process/sleepingBeauties.stp - Generating Backtraces of Threads Waiting for IO Operations -subsystems: scheduler, keywords: io scheduler backtrace +keywords: io scheduler backtrace The script monitors the time that threads spend waiting for IO operations (in "D" state) in the wait_for_completion function. If a @@ -152,7 +152,7 @@ subsystems: scheduler, keywords: io scheduler backtrace = LOCKING = process/futexes.stp - System-Wide Futex Contention -subsystems: locking, keywords: syscall locking futex +keywords: syscall locking futex The script watches the futex syscall on the system. On exit the futexes address, the number of contentions, and the average time for @@ -163,7 +163,7 @@ subsystems: locking, keywords: syscall locking futex = NETWORK = network/nettop.stp - Periodic Listing of Processes Using Network Interfaces -subsystems: network, keywords: network traffic per-process +keywords: network traffic per-process Every five seconds the nettop.stp script prints out a list of processed (PID and command) with the number of packets sent/received @@ -172,7 +172,7 @@ subsystems: network, keywords: network traffic per-process network/socket-trace.stp - Trace Functions called in Network Socket Code -subsystems: network, keywords: network socket +keywords: network socket The script instrument each of the functions inn the Linux kernel's net/socket.c file. The script prints out trace. The first element of @@ -185,7 +185,7 @@ subsystems: network, keywords: network socket = PER-PROCESS = network/nettop.stp - Periodic Listing of Processes Using Network Interfaces -subsystems: network, keywords: network traffic per-process +keywords: network traffic per-process Every five seconds the nettop.stp script prints out a list of processed (PID and command) with the number of packets sent/received @@ -196,7 +196,7 @@ subsystems: network, keywords: network traffic per-process = PROFILING = process/pf2.stp - Profile kernel functions -subsystems: kernel, keywords: profiling +keywords: profiling The pf2.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top ten kernel functions with @@ -204,7 +204,7 @@ subsystems: kernel, keywords: profiling profiling/functioncallcount.stp - Count Times Functions Called -subsystems: kernel, keywords: profiling functions +keywords: profiling functions The functioncallcount.stp script takes one argument, a list of functions to probe. The script will run and count the number of times @@ -214,7 +214,7 @@ subsystems: kernel, keywords: profiling functions profiling/thread-times.stp - Profile kernel functions -subsystems: kernel, keywords: profiling +keywords: profiling The thread-times.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top twenty processes @@ -225,7 +225,7 @@ subsystems: kernel, keywords: profiling = READ = io/iotime.stp - Trace Time Spent in Read and Write for Files -subsystems: syscall, keywords: syscall read write time io +keywords: syscall read write time io The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the @@ -243,7 +243,7 @@ subsystems: syscall, keywords: syscall read write time io = SCHEDULER = process/sleepingBeauties.stp - Generating Backtraces of Threads Waiting for IO Operations -subsystems: scheduler, keywords: io scheduler backtrace +keywords: io scheduler backtrace The script monitors the time that threads spend waiting for IO operations (in "D" state) in the wait_for_completion function. If a @@ -254,19 +254,19 @@ subsystems: scheduler, keywords: io scheduler backtrace = SIGNALS = process/sig_by_pid.stp - Signal Counts by Process ID -subsystems: signals, keywords: signals +keywords: signals Print signal counts by process ID in descending order. process/sig_by_proc.stp - Signal Counts by Process Name -subsystems: signals, keywords: signals +keywords: signals Print signal counts by process name in descending order. process/sigkill.stp - Track SIGKILL Signals -subsystems: signals, keywords: signals +keywords: signals The script traces any SIGKILL signals. When that SIGKILL signal is sent to a process, the script prints out the signal name, the @@ -275,7 +275,7 @@ subsystems: signals, keywords: signals process/syscalls_by_pid.stp - System-Wide Count of Syscalls by PID -subsystems: signals, keywords: signals +keywords: signals The script watches for a particular signal sent to a specific process. When that signal is sent to the specified process, the @@ -287,7 +287,7 @@ subsystems: signals, keywords: signals = SIMPLE = general/helloworld.stp - SystemTap "Hello World" Program -subsystems: none, keywords: simple +keywords: simple A basic "Hello World" program implemented in SystemTap script. It prints out "hello world" message and then immediately exits. @@ -296,7 +296,7 @@ subsystems: none, keywords: simple = SLEEP = process/sleeptime.stp - Trace Time Spent in nanosleep Syscalls -subsystems: syscall, keywords: syscall sleep +keywords: syscall sleep The script watches each nanosleep syscall on the system. At the end of each nanosleep syscall the script prints out a line with a @@ -308,7 +308,7 @@ subsystems: syscall, keywords: syscall sleep = SOCKET = network/socket-trace.stp - Trace Functions called in Network Socket Code -subsystems: network, keywords: network socket +keywords: network socket The script instrument each of the functions inn the Linux kernel's net/socket.c file. The script prints out trace. The first element of @@ -321,7 +321,7 @@ subsystems: network, keywords: network socket = SYSCALL = io/iotime.stp - Trace Time Spent in Read and Write for Files -subsystems: syscall, keywords: syscall read write time io +keywords: syscall read write time io The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the @@ -337,7 +337,7 @@ subsystems: syscall, keywords: syscall read write time io process/futexes.stp - System-Wide Futex Contention -subsystems: locking, keywords: syscall locking futex +keywords: syscall locking futex The script watches the futex syscall on the system. On exit the futexes address, the number of contentions, and the average time for @@ -346,7 +346,7 @@ subsystems: locking, keywords: syscall locking futex process/sleeptime.stp - Trace Time Spent in nanosleep Syscalls -subsystems: syscall, keywords: syscall sleep +keywords: syscall sleep The script watches each nanosleep syscall on the system. At the end of each nanosleep syscall the script prints out a line with a @@ -356,7 +356,7 @@ subsystems: syscall, keywords: syscall sleep process/syscalls_by_pid.stp - System-Wide Count of Syscalls by PID -subsystems: syscall, keywords: syscall +keywords: syscall The script watches all syscall on the system. On exit the script prints a list showing the number of systemcalls executed by each PID @@ -364,7 +364,7 @@ subsystems: syscall, keywords: syscall process/syscalls_by_proc.stp - System-Wide Count of Syscalls by Executable -subsystems: syscall, keywords: syscall +keywords: syscall The script watches all syscall on the system. On exit the script prints a list showing the number of systemcalls executed by each @@ -372,7 +372,7 @@ subsystems: syscall, keywords: syscall process/wait4time.stp - Trace Time Spent in wait4 Syscalls -subsystems: syscall, keywords: syscall wait4 +keywords: syscall wait4 The script watches each wait4 syscall on the system. At the end of each wait4 syscall the script prints out a line with a timestamp in @@ -384,7 +384,7 @@ subsystems: syscall, keywords: syscall wait4 = TIME = io/iotime.stp - Trace Time Spent in Read and Write for Files -subsystems: syscall, keywords: syscall read write time io +keywords: syscall read write time io The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the @@ -402,7 +402,7 @@ subsystems: syscall, keywords: syscall read write time io = TRACE = general/para-callgraph.stp - Callgraph tracing with arguments -subsystems: general, keywords: trace callgraph +keywords: trace callgraph Print a timed per-thread callgraph, complete with function parameters and return values. The first parameter names the function probe @@ -415,7 +415,7 @@ subsystems: general, keywords: trace callgraph = TRAFFIC = network/nettop.stp - Periodic Listing of Processes Using Network Interfaces -subsystems: network, keywords: network traffic per-process +keywords: network traffic per-process Every five seconds the nettop.stp script prints out a list of processed (PID and command) with the number of packets sent/received @@ -426,7 +426,7 @@ subsystems: network, keywords: network traffic per-process = USE = general/graphs.stp - Graphing Disk and CPU Utilization -subsystems: disk cpu, keywords: disk cpu use graph +keywords: disk cpu use graph The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk @@ -436,7 +436,7 @@ subsystems: disk cpu, keywords: disk cpu use graph = WAIT4 = process/wait4time.stp - Trace Time Spent in wait4 Syscalls -subsystems: syscall, keywords: syscall wait4 +keywords: syscall wait4 The script watches each wait4 syscall on the system. At the end of each wait4 syscall the script prints out a line with a timestamp in @@ -448,7 +448,7 @@ subsystems: syscall, keywords: syscall wait4 = WRITE = io/iotime.stp - Trace Time Spent in Read and Write for Files -subsystems: syscall, keywords: syscall read write time io +keywords: syscall read write time io The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the diff --git a/testsuite/systemtap.examples/subsystem-index.html b/testsuite/systemtap.examples/subsystem-index.html deleted file mode 100644 index ef07ccec..00000000 --- a/testsuite/systemtap.examples/subsystem-index.html +++ /dev/null @@ -1,165 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> - -<html> -<head> - <title>SystemTap Examples</title> - <link rel="stylesheet" href="html/systemtap.css" type="text/css"> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> - <meta http-equiv="Content-Style-Type" content="text/css"> -</head> - -<body> - <table cellspacing="2" cellpadding="2" border="0" width="100%"> - <tr> - <td valign="bottom" height="80"><img src="html/systemtaplogo.png" - alt="SystemTap logo" width="165" height="25"></td> - <td valign="bottom" class="topnavright" align="right"> - <a href="http://sourceware.org/systemtap/">SystemTap</a> | - </td> - </tr> - </table> - - <div class="mainbackground"> - <div class="maintextregion"> - <img src="html/systemtapcorner.gif"> - <table cellspacing="2" cellpadding="4" border="0" width="99%" - style="margin-top:17;"> - <tr> - <td width="200"> </td> - <td valign="bottom"><h1>Examples</h1></td> - </tr> - <tr> - <td> </td> - <td valign="top"> - - <h2>Example Indexes</h2> - <ul> - <li><a href="index.html">All Examples</a></li> - <li><a href="subsystem-index.html">By Subsystem</a></li> - <li><a href="keyword-index.html">By Keyword</a></li> - </ul> - -<h2>Examples by Subsystem</h2> -<p><tt><a href="#CPU">CPU</a> <a href="#DISK">DISK</a> <a href="#GENERAL">GENERAL</a> <a href="#IO">IO</a> <a href="#KERNEL">KERNEL</a> <a href="#LOCKING">LOCKING</a> <a href="#NETWORK">NETWORK</a> <a href="#NONE">NONE</a> <a href="#SCHEDULER">SCHEDULER</a> <a href="#SIGNALS">SIGNALS</a> <a href="#SYSCALL">SYSCALL</a> </tt></p> -<h3><a name="CPU">CPU</a></h3> -<ul> -<li><a href="general/graphs.stp">general/graphs.stp</a> - Graphing Disk and CPU Utilization<br> -subsystems: disk cpu, keywords: disk cpu use graph<br> -<p>The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk and CPU USE.</p></li> -</ul> -<h3><a name="DISK">DISK</a></h3> -<ul> -<li><a href="general/graphs.stp">general/graphs.stp</a> - Graphing Disk and CPU Utilization<br> -subsystems: disk cpu, keywords: disk cpu use graph<br> -<p>The script tracks the disk and CPU utilization. The resulting output of the script can be piped into gnuplot to generate a graph of disk and CPU USE.</p></li> -<li><a href="io/disktop.stp">io/disktop.stp</a> - Summarize Disk Read/Write Traffic<br> -subsystems: disk, keywords: disk<br> -<p>Get the status of reading/writing disk every 5 seconds, output top ten entries during that period.</p></li> -</ul> -<h3><a name="GENERAL">GENERAL</a></h3> -<ul> -<li><a href="general/para-callgraph.stp">general/para-callgraph.stp</a> - Callgraph tracing with arguments<br> -subsystems: general, keywords: trace callgraph<br> -<p>Print a timed per-thread callgraph, complete with function parameters and return values. The first parameter names the function probe points to trace. The optional second parameter names the probe points for trigger functions, which acts to enable tracing for only those functions that occur while the current thread is nested within the trigger.</p></li> -</ul> -<h3><a name="IO">IO</a></h3> -<ul> -<li><a href="io/io_submit.stp">io/io_submit.stp</a> - Tally Reschedule Reason During AIO io_submit Call<br> -subsystems: io, keywords: io backtrace<br> -<p>When a reschedule occurs during an AIO io_submit call, accumulate the traceback in a histogram. When the script exits prints out a sorted list from most common to least common backtrace.</p></li> -<li><a href="io/iotop.stp">io/iotop.stp</a> - Periodically Print I/O Activity by Process Name<br> -subsystems: io, keywords: io<br> -<p>Every five seconds print out the top ten executables generating I/O traffic during that interval sorted in descending order.</p></li> -<li><a href="io/traceio.stp">io/traceio.stp</a> - Track Cumulative I/O Activity by Process Name<br> -subsystems: io, keywords: io<br> -<p>Every second print out the top ten executables sorted in descending order based on cumulative I/O traffic observed.</p></li> -<li><a href="io/traceio2.stp">io/traceio2.stp</a> - Watch I/O Activity on a Particular Device<br> -subsystems: io, keywords: io<br> -<p>Print out the executable name and process number as reads and writes to the specified device occur.</p></li> -</ul> -<h3><a name="KERNEL">KERNEL</a></h3> -<ul> -<li><a href="process/pf2.stp">process/pf2.stp</a> - Profile kernel functions<br> -subsystems: kernel, keywords: profiling<br> -<p>The pf2.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top ten kernel functions with samples.</p></li> -<li><a href="profiling/functioncallcount.stp">profiling/functioncallcount.stp</a> - Count Times Functions Called<br> -subsystems: kernel, keywords: profiling functions<br> -<p>The functioncallcount.stp script takes one argument, a list of functions to probe. The script will run and count the number of times that each of the functions on the list is called. On exit the script will print a sorted list from most frequently to least frequently called function.</p></li> -<li><a href="profiling/thread-times.stp">profiling/thread-times.stp</a> - Profile kernel functions<br> -subsystems: kernel, keywords: profiling<br> -<p>The thread-times.stp script sets up time-based sampling. Every five seconds it prints out a sorted list with the top twenty processes with samples broken down into percentage total time spent in user-space and kernel-space.</p></li> -</ul> -<h3><a name="LOCKING">LOCKING</a></h3> -<ul> -<li><a href="process/futexes.stp">process/futexes.stp</a> - System-Wide Futex Contention<br> -subsystems: locking, keywords: syscall locking futex<br> -<p>The script watches the futex syscall on the system. On exit the futexes address, the number of contentions, and the average time for each contention on the futex are printed from lowest pid number to highest.</p></li> -</ul> -<h3><a name="NETWORK">NETWORK</a></h3> -<ul> -<li><a href="network/nettop.stp">network/nettop.stp</a> - Periodic Listing of Processes Using Network Interfaces<br> -subsystems: network, keywords: network traffic per-process<br> -<p>Every five seconds the nettop.stp script prints out a list of processed (PID and command) with the number of packets sent/received and the amount of data sent/received by the process during that interval.</p></li> -<li><a href="network/socket-trace.stp">network/socket-trace.stp</a> - Trace Functions called in Network Socket Code<br> -subsystems: network, keywords: network socket<br> -<p>The script instrument each of the functions inn the Linux kernel's net/socket.c file. The script prints out trace. The first element of a line is time delta in microseconds from the previous entry. This is followed by the command name and the PID. The "->" and "<-" indicates function entry and function exit, respectively. The last element of the line is the function name.</p></li> -</ul> -<h3><a name="NONE">NONE</a></h3> -<ul> -<li><a href="general/helloworld.stp">general/helloworld.stp</a> - SystemTap "Hello World" Program<br> -subsystems: none, keywords: simple<br> -<p>A basic "Hello World" program implemented in SystemTap script. It prints out "hello world" message and then immediately exits.</p></li> -</ul> -<h3><a name="SCHEDULER">SCHEDULER</a></h3> -<ul> -<li><a href="process/sleepingBeauties.stp">process/sleepingBeauties.stp</a> - Generating Backtraces of Threads Waiting for IO Operations<br> -subsystems: scheduler, keywords: io scheduler backtrace<br> -<p>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.</p></li> -</ul> -<h3><a name="SIGNALS">SIGNALS</a></h3> -<ul> -<li><a href="process/sig_by_pid.stp">process/sig_by_pid.stp</a> - Signal Counts by Process ID<br> -subsystems: signals, keywords: signals<br> -<p>Print signal counts by process ID in descending order.</p></li> -<li><a href="process/sig_by_proc.stp">process/sig_by_proc.stp</a> - Signal Counts by Process Name<br> -subsystems: signals, keywords: signals<br> -<p>Print signal counts by process name in descending order.</p></li> -<li><a href="process/sigkill.stp">process/sigkill.stp</a> - Track SIGKILL Signals<br> -subsystems: signals, keywords: signals<br> -<p>The script traces any SIGKILL signals. When that SIGKILL signal is sent to a process, the script prints out the signal name, the desination executable and process ID, the executable name user ID that sent the signal.</p></li> -<li><a href="process/syscalls_by_pid.stp">process/syscalls_by_pid.stp</a> - System-Wide Count of Syscalls by PID<br> -subsystems: signals, keywords: signals<br> -<p>The script watches for a particular signal sent to a specific process. When that signal is sent to the specified process, the script prints out the PID and executable of the process sending the signal, the PID and executable name of the process receiving the signal, and the signal number and name.</p></li> -</ul> -<h3><a name="SYSCALL">SYSCALL</a></h3> -<ul> -<li><a href="io/iotime.stp">io/iotime.stp</a> - Trace Time Spent in Read and Write for Files <br> -subsystems: syscall, keywords: syscall read write time io<br> -<p>The script watches each open, close, read, and write syscalls on the system. For each file the scripts observes opened it accumulates the amount of wall clock time spend in read and write operations and the number of bytes read and written. When a file is closed the script prints out a pair of lines for the file. Both lines begin with a timestamp in microseconds, the PID number, and the executable name in parenthesese. The first line with the "access" keyword lists the file name, the attempted number of bytes for the read and write operations. The second line with the "iotime" keyword list the file name and the number of microseconds accumulated in the read and write syscalls.</p></li> -<li><a href="process/sleeptime.stp">process/sleeptime.stp</a> - Trace Time Spent in nanosleep Syscalls<br> -subsystems: syscall, keywords: syscall sleep<br> -<p>The script watches each nanosleep syscall on the system. At the end of each nanosleep syscall the script prints out a line with a timestamp in microseconds, the pid, the executable name in paretheses, the "nanosleep:" key, and the duration of the sleep in microseconds.</p></li> -<li><a href="process/syscalls_by_pid.stp">process/syscalls_by_pid.stp</a> - System-Wide Count of Syscalls by PID<br> -subsystems: syscall, keywords: syscall<br> -<p>The script watches all syscall on the system. On exit the script prints a list showing the number of systemcalls executed by each PID ordered from greatest to least number of syscalls.</p></li> -<li><a href="process/syscalls_by_proc.stp">process/syscalls_by_proc.stp</a> - System-Wide Count of Syscalls by Executable<br> -subsystems: syscall, keywords: syscall<br> -<p>The script watches all syscall on the system. On exit the script prints a list showing the number of systemcalls executed by each executable ordered from greates to least number of syscalls.</p></li> -<li><a href="process/wait4time.stp">process/wait4time.stp</a> - Trace Time Spent in wait4 Syscalls<br> -subsystems: syscall, keywords: syscall wait4<br> -<p>The script watches each wait4 syscall on the system. At the end of each wait4 syscall the script prints out a line with a timestamp in microseconds, the pid, the executable name in paretheses, the "wait4:" key, the duration of the wait and the PID that the wait4 was waiting for. If the waited for PID is not specified , it is "-1".</p></li> -</ul> - </td> - </tr> - </table> - </div> - </div> - - <table cellspacing="2" cellpadding="2" border="0" width="100%"> - <tr> - <td align="center" class="footer"><a href= - "http://sourceware.org/systemtap">SystemTap</a></td> - </tr> - </table> -</body> -</html> diff --git a/testsuite/systemtap.examples/subsystem-index.txt b/testsuite/systemtap.examples/subsystem-index.txt deleted file mode 100644 index 0e116a60..00000000 --- a/testsuite/systemtap.examples/subsystem-index.txt +++ /dev/null @@ -1,243 +0,0 @@ -SYSTEMTAP EXAMPLES INDEX BY SUBSYSTEM -(see also index.txt, keyword-index.txt) - -= CPU = - -general/graphs.stp - Graphing Disk and CPU Utilization -subsystems: disk cpu, keywords: disk cpu use graph - - The script tracks the disk and CPU utilization. The resulting output - of the script can be piped into gnuplot to generate a graph of disk - and CPU USE. - - -= DISK = - -general/graphs.stp - Graphing Disk and CPU Utilization -subsystems: disk cpu, keywords: disk cpu use graph - - The script tracks the disk and CPU utilization. The resulting output - of the script can be piped into gnuplot to generate a graph of disk - and CPU USE. - - -io/disktop.stp - Summarize Disk Read/Write Traffic -subsystems: disk, keywords: disk - - Get the status of reading/writing disk every 5 seconds, output top - ten entries during that period. - - -= GENERAL = - -general/para-callgraph.stp - Callgraph tracing with arguments -subsystems: general, keywords: trace callgraph - - Print a timed per-thread callgraph, complete with function parameters - and return values. The first parameter names the function probe - points to trace. The optional second parameter names the probe - points for trigger functions, which acts to enable tracing for only - those functions that occur while the current thread is nested within - the trigger. - - -= IO = - -io/io_submit.stp - Tally Reschedule Reason During AIO io_submit Call -subsystems: io, keywords: io backtrace - - When a reschedule occurs during an AIO io_submit call, accumulate the - traceback in a histogram. When the script exits prints out a sorted - list from most common to least common backtrace. - - -io/iotop.stp - Periodically Print I/O Activity by Process Name -subsystems: io, keywords: io - - Every five seconds print out the top ten executables generating I/O - traffic during that interval sorted in descending order. - - -io/traceio.stp - Track Cumulative I/O Activity by Process Name -subsystems: io, keywords: io - - Every second print out the top ten executables sorted in descending - order based on cumulative I/O traffic observed. - - -io/traceio2.stp - Watch I/O Activity on a Particular Device -subsystems: io, keywords: io - - Print out the executable name and process number as reads and writes - to the specified device occur. - - -= KERNEL = - -process/pf2.stp - Profile kernel functions -subsystems: kernel, keywords: profiling - - The pf2.stp script sets up time-based sampling. Every five seconds it - prints out a sorted list with the top ten kernel functions with - samples. - - -profiling/functioncallcount.stp - Count Times Functions Called -subsystems: kernel, keywords: profiling functions - - The functioncallcount.stp script takes one argument, a list of - functions to probe. The script will run and count the number of times - that each of the functions on the list is called. On exit the script - will print a sorted list from most frequently to least frequently - called function. - - -profiling/thread-times.stp - Profile kernel functions -subsystems: kernel, keywords: profiling - - The thread-times.stp script sets up time-based sampling. Every five - seconds it prints out a sorted list with the top twenty processes - with samples broken down into percentage total time spent in - user-space and kernel-space. - - -= LOCKING = - -process/futexes.stp - System-Wide Futex Contention -subsystems: locking, keywords: syscall locking futex - - The script watches the futex syscall on the system. On exit the - futexes address, the number of contentions, and the average time for - each contention on the futex are printed from lowest pid number to - highest. - - -= NETWORK = - -network/nettop.stp - Periodic Listing of Processes Using Network Interfaces -subsystems: network, keywords: network traffic per-process - - Every five seconds the nettop.stp script prints out a list of - processed (PID and command) with the number of packets sent/received - and the amount of data sent/received by the process during that - interval. - - -network/socket-trace.stp - Trace Functions called in Network Socket Code -subsystems: network, keywords: network socket - - The script instrument each of the functions inn the Linux kernel's - net/socket.c file. The script prints out trace. The first element of - a line is time delta in microseconds from the previous entry. This - is followed by the command name and the PID. The "->" and "<-" - indicates function entry and function exit, respectively. The last - element of the line is the function name. - - -= NONE = - -general/helloworld.stp - SystemTap "Hello World" Program -subsystems: none, keywords: simple - - A basic "Hello World" program implemented in SystemTap script. It - prints out "hello world" message and then immediately exits. - - -= SCHEDULER = - -process/sleepingBeauties.stp - Generating Backtraces of Threads Waiting for IO Operations -subsystems: scheduler, keywords: io scheduler backtrace - - 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. - - -= SIGNALS = - -process/sig_by_pid.stp - Signal Counts by Process ID -subsystems: signals, keywords: signals - - Print signal counts by process ID in descending order. - - -process/sig_by_proc.stp - Signal Counts by Process Name -subsystems: signals, keywords: signals - - Print signal counts by process name in descending order. - - -process/sigkill.stp - Track SIGKILL Signals -subsystems: signals, keywords: signals - - The script traces any SIGKILL signals. When that SIGKILL signal is - sent to a process, the script prints out the signal name, the - desination executable and process ID, the executable name user ID - that sent the signal. - - -process/syscalls_by_pid.stp - System-Wide Count of Syscalls by PID -subsystems: signals, keywords: signals - - The script watches for a particular signal sent to a specific - process. When that signal is sent to the specified process, the - script prints out the PID and executable of the process sending the - signal, the PID and executable name of the process receiving the - signal, and the signal number and name. - - -= SYSCALL = - -io/iotime.stp - Trace Time Spent in Read and Write for Files -subsystems: syscall, keywords: syscall read write time io - - The script watches each open, close, read, and write syscalls on the - system. For each file the scripts observes opened it accumulates the - amount of wall clock time spend in read and write operations and the - number of bytes read and written. When a file is closed the script - prints out a pair of lines for the file. Both lines begin with a - timestamp in microseconds, the PID number, and the executable name in - parenthesese. The first line with the "access" keyword lists the file - name, the attempted number of bytes for the read and write - operations. The second line with the "iotime" keyword list the file - name and the number of microseconds accumulated in the read and write - syscalls. - - -process/sleeptime.stp - Trace Time Spent in nanosleep Syscalls -subsystems: syscall, keywords: syscall sleep - - The script watches each nanosleep syscall on the system. At the end - of each nanosleep syscall the script prints out a line with a - timestamp in microseconds, the pid, the executable name in - paretheses, the "nanosleep:" key, and the duration of the sleep in - microseconds. - - -process/syscalls_by_pid.stp - System-Wide Count of Syscalls by PID -subsystems: syscall, keywords: syscall - - The script watches all syscall on the system. On exit the script - prints a list showing the number of systemcalls executed by each PID - ordered from greatest to least number of syscalls. - - -process/syscalls_by_proc.stp - System-Wide Count of Syscalls by Executable -subsystems: syscall, keywords: syscall - - The script watches all syscall on the system. On exit the script - prints a list showing the number of systemcalls executed by each - executable ordered from greates to least number of syscalls. - - -process/wait4time.stp - Trace Time Spent in wait4 Syscalls -subsystems: syscall, keywords: syscall wait4 - - The script watches each wait4 syscall on the system. At the end of - each wait4 syscall the script prints out a line with a timestamp in - microseconds, the pid, the executable name in paretheses, the - "wait4:" key, the duration of the wait and the PID that the wait4 was - waiting for. If the waited for PID is not specified , it is "-1". - - |