]> sourceware.org Git - systemtap.git/blame - testsuite/systemtap.examples/keyword-index.txt
Semantic errors during listing mode are suppressed.
[systemtap.git] / testsuite / systemtap.examples / keyword-index.txt
CommitLineData
210ff7bf 1SYSTEMTAP EXAMPLES INDEX BY KEYWORD
09a98ae0 2(see also index.txt)
210ff7bf 3
42c55668
MW
4= ALLOCATOR =
5
6memory/vm.tracepoints.stp - Collect slab allocation statistics
7keywords: memory slab allocator
8
9 The script will probe all memory slab/slub allocations and collects
10 information about the size of the object (bytes requested) and
11 user-space process in execution. When run over a period of time, it
12 helps to correlate kernel-space memory consumption owing to
13 user-space processes.
14
15
8b88e771
FCE
16= AUTOFS =
17
18network/autofs4.stp - Watch autofs4 operations
19keywords: network autofs nfs
20
21 Trace key autofs4 operations such as mounting or unmounting remote
22 filesystems.
23
24
210ff7bf
FCE
25= BACKTRACE =
26
1cc8a4c7
WC
27interrupt/scf.stp - Tally Backtraces for Inter-Processor Interrupt (IPI)
28keywords: interrupt backtrace
29
30 The Linux kernel function smp_call_function causes expensive
31 inter-processor interrupts (IPIs). The scf.stp script tallies the
32 processes and backtraces causing the interprocessor interrupts to
33 identify the cause of the expensive IPI. On exit the script prints
34 the tallies in descending frequency.
35
36
210ff7bf 37io/io_submit.stp - Tally Reschedule Reason During AIO io_submit Call
09a98ae0 38keywords: io backtrace
210ff7bf
FCE
39
40 When a reschedule occurs during an AIO io_submit call, accumulate the
41 traceback in a histogram. When the script exits prints out a sorted
42 list from most common to least common backtrace.
43
44
42d42e06
JS
45process/dumpstack.stp - Print the kernel stack of a hung task
46keywords: process backtrace
47
48 The script prints the kernel stack of any non-running pid in the
49 system. This is useful for diagnosing the reason that a task is
50 hung.
51
52
cae71dd3 53process/sleepingBeauties.stp - Generating Backtraces of Threads Waiting for IO Operations
09a98ae0 54keywords: io scheduler backtrace
cae71dd3 55
f3c4da44 56 The script monitors the time that threads spend in waiting for IO
cae71dd3
FCE
57 operations (in "D" state) in the wait_for_completion function. If a
58 thread spends over 10ms, its name and backtrace is printed, and later
59 so is the total delay.
60
61
0e4901b0
WC
62= BUFFER =
63
64network/dropwatch.stp - Watch Where Socket Buffers are Freed in the Kernel
65keywords: network tracepoint buffer free
66
67 Every five seconds the dropwatch.stp script lists the number of
68 socket buffers freed at locations in the kernel.
69
70
905728a0
WC
71network/sk_stream_wait_memory.stp - Track Start and Stop of Processes Due to Network Buffer Space
72keywords: network tcp buffer memory
73
74 The sk_stream-wait_memory.stp prints a time stamp, executable, and
75 pid each time a process blocks due to the send buffer being full. A
76 similar entry is printed each time a process continues because there
77 is room in the buffer.
78
79
210ff7bf
FCE
80= CALLGRAPH =
81
aa15b9f0 82general/para-callgraph.stp - Callgraph tracing with arguments
09a98ae0 83keywords: trace callgraph
210ff7bf 84
aa15b9f0
FCE
85 Print a timed per-thread callgraph, complete with function parameters
86 and return values. The first parameter names the function probe
87 points to trace. The optional second parameter names the probe
88 points for trigger functions, which acts to enable tracing for only
89 those functions that occur while the current thread is nested within
90 the trigger.
210ff7bf
FCE
91
92
93= CPU =
94
95general/graphs.stp - Graphing Disk and CPU Utilization
09a98ae0 96keywords: disk cpu use graph
210ff7bf
FCE
97
98 The script tracks the disk and CPU utilization. The resulting output
99 of the script can be piped into gnuplot to generate a graph of disk
100 and CPU USE.
101
102
53e5699f
JS
103= DEVICE =
104
105network/netdev.stp - Trace Activity on Network Devices
106keywords: network device traffic
107
108 The netdev.stp script traces configuration and transmit/receive
109 activity on network devices.
110
111
210ff7bf
FCE
112= DISK =
113
114general/graphs.stp - Graphing Disk and CPU Utilization
09a98ae0 115keywords: disk cpu use graph
210ff7bf
FCE
116
117 The script tracks the disk and CPU utilization. The resulting output
118 of the script can be piped into gnuplot to generate a graph of disk
119 and CPU USE.
120
121
122io/disktop.stp - Summarize Disk Read/Write Traffic
09a98ae0 123keywords: disk
210ff7bf
FCE
124
125 Get the status of reading/writing disk every 5 seconds, output top
126 ten entries during that period.
127
128
ecf33ff4
ET
129= FILES =
130
131process/pfiles.stp - print process file descriptors
132keywords: process files
133
134 Run pfiles.stp to produce a human-readable summary of all open file
135 descriptors of a given process. Specify the process-id as -x PID for
136 fastest performance.
137
138
ac505f97
JS
139= FILESYSTEM =
140
141general/badname.stp - Bad Filename Filter
142keywords: filesystem hack
143
144 The badname.stp script shows how one could prevent the creation of
6287a9e6 145 files with undesirable names using guru mode.
ac505f97
JS
146
147
0e0b566a
WC
148= FORMAT =
149
150general/ansi_colors.stp - Color Table for ansi_set_color2() and ansi_set_color3()
151keywords: format
152
153 The script prints a table showing the available color combinations
154 for the ansi_set_color2() and ans_set_color3() functions in the
155 ansi.stp tapset.
156
157
158general/ansi_colors2.stp - Show Attribues in Table for ansi_set_color3()
159keywords: format
160
161 The script prints a table showing the available attributes (bold,
162 underline, and inverse) with color combinations for the
163 ans_set_color3() function in the ansi.stp tapset.
164
165
0e4901b0
WC
166= FREE =
167
168network/dropwatch.stp - Watch Where Socket Buffers are Freed in the Kernel
169keywords: network tracepoint buffer free
170
171 Every five seconds the dropwatch.stp script lists the number of
172 socket buffers freed at locations in the kernel.
173
174
210ff7bf
FCE
175= FUNCTIONS =
176
177profiling/functioncallcount.stp - Count Times Functions Called
09a98ae0 178keywords: profiling functions
210ff7bf
FCE
179
180 The functioncallcount.stp script takes one argument, a list of
181 functions to probe. The script will run and count the number of times
182 that each of the functions on the list is called. On exit the script
183 will print a sorted list from most frequently to least frequently
184 called function.
185
186
0449af03
JS
187profiling/sched_switch.stp - Display the task switches happening in the scheduler
188keywords: profiling functions
189
190 The sched_switch.stp script takes two arguments, first argument can
191 be "pid" or "name" to indicate what is being passed as second
192 argument. The script will trace the process based on pid/name and
193 print the scheduler switches happening with the process. If no
194 arguments are passed, it displays all the scheduler switches. This
195 can be used to understand which tasks schedule out the current
196 process being traced, and when it gets scheduled in again.
197
198
210ff7bf
FCE
199= FUTEX =
200
201process/futexes.stp - System-Wide Futex Contention
09a98ae0 202keywords: syscall locking futex
210ff7bf
FCE
203
204 The script watches the futex syscall on the system. On exit the
205 futexes address, the number of contentions, and the average time for
206 each contention on the futex are printed from lowest pid number to
207 highest.
208
209
210= GRAPH =
211
212general/graphs.stp - Graphing Disk and CPU Utilization
09a98ae0 213keywords: disk cpu use graph
210ff7bf
FCE
214
215 The script tracks the disk and CPU utilization. The resulting output
216 of the script can be piped into gnuplot to generate a graph of disk
217 and CPU USE.
218
219
ac505f97
JS
220= HACK =
221
222general/badname.stp - Bad Filename Filter
223keywords: filesystem hack
224
225 The badname.stp script shows how one could prevent the creation of
6287a9e6 226 files with undesirable names using guru mode.
ac505f97
JS
227
228
1cc8a4c7
WC
229= INTERRUPT =
230
6b95efe9
JS
231interrupt/interrupts-by-dev.stp - Record interrupts on a per-device basis.
232keywords: interrupt
233
234 The interrupts-by-dev.stp script profiles interrupts received by each
235 device per 100 ms.
236
237
1cc8a4c7
WC
238interrupt/scf.stp - Tally Backtraces for Inter-Processor Interrupt (IPI)
239keywords: interrupt backtrace
240
241 The Linux kernel function smp_call_function causes expensive
242 inter-processor interrupts (IPIs). The scf.stp script tallies the
243 processes and backtraces causing the interprocessor interrupts to
244 identify the cause of the expensive IPI. On exit the script prints
245 the tallies in descending frequency.
246
247
e01bc08e
WC
248process/cycle_thief.stp - Track IRQs and Other Processes Stealing Cycles from a Task
249keywords: process scheduler time tracepoint interrupt
250
251 The cycle_thief.stp script instruments the scheduler and IRQ handler
252 to determine which processes and interrupts are competing with the
253 specified task for the cpu cycles. This script uses the '-c' or '-x'
254 options to focus on a specific task. The script output the number of
255 times the task migrates between processors, histograms showing the
256 length of time on and off processor, lists of processes running while
257 the task is off the processor, and the interrupts that occurred while
258 the task was running.
259
260
210ff7bf
FCE
261= IO =
262
263io/io_submit.stp - Tally Reschedule Reason During AIO io_submit Call
09a98ae0 264keywords: io backtrace
210ff7bf
FCE
265
266 When a reschedule occurs during an AIO io_submit call, accumulate the
267 traceback in a histogram. When the script exits prints out a sorted
268 list from most common to least common backtrace.
269
270
67f8611b
WC
271io/ioblktime.stp - Average Time Block IO Requests Spend in Queue
272keywords: io
273
274 The ioblktime.stp script tracks the amount of time that each block IO
cc20d853 275 requests spend waiting for completion. The script computes the
f3c4da44
MW
276 average waiting time for block IO per device and prints list every 10
277 seconds. In some cases there can be too many outstanding block IO
278 operations and the script may exceed the default number of
67f8611b
WC
279 MAXMAPENTRIES allowed. In this case the allowed number can be
280 increased with "-DMAXMAPENTRIES=10000" option on the stap command
281 line.
282
283
a4f3198f
WC
284io/iodevstats.stp - List Executables Reading and Writing the Most Data by Device
285keywords: io profiling
286
287 The iodevstats.stp script measures the amount of data successfully
288 read and written by all the executables for each io device on the
289 system. The output is sorted from greatest sum of bytes read and
290 written to a device by an executable to the least. The output
291 contains device major/minor number, the count of operations (reads
292 and writes), the totals and averages for the number of bytes read and
293 written.
294
295
54ff5e0c
FCE
296io/iostat-scsi.stp - iostat for SCSI Devices
297keywords: io profiling scsi
298
299 The iostat-scsi.stp script provides a breakdown of the number of blks
ad7e33d7 300 read and written on the machine's various SCSI devices. The script
54ff5e0c
FCE
301 takes one argument which is the number of seconds between reports.
302
303
3e4444ed
WC
304io/iostats.stp - List Executables Reading and Writing the Most Data
305keywords: io profiling
306
307 The iostat.stp script measures the amount of data successfully read
308 and written by all the executables on the system. The output is
309 sorted from most greatest sum of bytes read and written by an
310 executable to the least. The output contains the count of operations
311 (opens, reads, and writes), the totals and averages for the number of
312 bytes read and written.
313
314
210ff7bf 315io/iotime.stp - Trace Time Spent in Read and Write for Files
09a98ae0 316keywords: syscall read write time io
210ff7bf
FCE
317
318 The script watches each open, close, read, and write syscalls on the
319 system. For each file the scripts observes opened it accumulates the
f3c4da44 320 amount of wall clock time spent in read and write operations and the
210ff7bf
FCE
321 number of bytes read and written. When a file is closed the script
322 prints out a pair of lines for the file. Both lines begin with a
323 timestamp in microseconds, the PID number, and the executable name in
ad7e33d7 324 parentheses. The first line with the "access" keyword lists the file
210ff7bf
FCE
325 name, the attempted number of bytes for the read and write
326 operations. The second line with the "iotime" keyword list the file
327 name and the number of microseconds accumulated in the read and write
328 syscalls.
329
330
331io/iotop.stp - Periodically Print I/O Activity by Process Name
09a98ae0 332keywords: io
210ff7bf
FCE
333
334 Every five seconds print out the top ten executables generating I/O
335 traffic during that interval sorted in descending order.
336
337
1beb5089
FCE
338io/mbrwatch.stp - Monitor read/write of MBR (boot sector) area of block devices
339keywords: io monitoring
340
341 The mbrwatch.stp script reports any attempted reads/writes of the
342 first few sectors of a raw block device.
343
344
111dd9ac
WC
345io/nfs_func_users.stp - Tally the Number of NFS Functions Used by Each Process
346keywords: io profiling
347
348 The nfs_func_users.stp script counts the uses of NFS functions in the
349 kernel on a per process bases. The output is sorted from the process
350 with the greatest number of NFS functions called to the least. The
351 output contains the executable name, the process number, and the
352 total number of NFS functions called by the process.
353
354
210ff7bf 355io/traceio.stp - Track Cumulative I/O Activity by Process Name
09a98ae0 356keywords: io
210ff7bf
FCE
357
358 Every second print out the top ten executables sorted in descending
359 order based on cumulative I/O traffic observed.
360
361
362io/traceio2.stp - Watch I/O Activity on a Particular Device
09a98ae0 363keywords: io
210ff7bf
FCE
364
365 Print out the executable name and process number as reads and writes
366 to the specified device occur.
367
368
b7f6cfc5 369io/ttyspy.stp - Monitor tty typing.
14f0bb18 370keywords: io tty per-process monitoring
b7f6cfc5
FCE
371
372 The ttyspy.stp script uses tty_audit hooks to monitor recent typing
373 activity on the system, printing a scrolling record of recent
374 keystrokes, on a per-tty basis.
375
376
210ff7bf 377process/sleepingBeauties.stp - Generating Backtraces of Threads Waiting for IO Operations
09a98ae0 378keywords: io scheduler backtrace
210ff7bf 379
f3c4da44 380 The script monitors the time that threads spend in waiting for IO
cae71dd3
FCE
381 operations (in "D" state) in the wait_for_completion function. If a
382 thread spends over 10ms, its name and backtrace is printed, and later
383 so is the total delay.
210ff7bf
FCE
384
385
386= LOCKING =
387
cf5023fb
WC
388locks/bkl.stp - Tracing Contention on Big Kernel Lock (BKL)
389keywords: locking
390
391 The bkl.stp script can help determine whether the Big Kernel Lock
392 (BKL) is causing serialization on a multiprocessor system due to
393 excessive contention of the BKL. The bkl.stp script takes one
394 argument which is the number of processes waiting for the Big Kernel
395 Lock (BKL). When the number of processes waiting for the BKL is
396 reached or exceeded, the script will print a time stamp, the number
397 of processes waiting for the BKL, the holder of the BKL, and the
398 amount of time the BKL was held.
399
400
401locks/bkl_stats.stp - Per Process Statistics on Big Kernel Lock (BKL) Use
402keywords: locking
403
404 The bkl_stats.stp script can indicate which processes have excessive
405 waits for the Big Kernel Lock (BKL) and which processes are taking
406 the BKL for long periods of time. The bkl_stats.stp script prints
407 lists of all the processes that require the BKL. Every five seconds
408 two tables are printed out. The first table lists the processes that
409 waited for the BKL followed by the number of times that the process
410 waited, the minimum time of the wait, the average and the maximum
411 time waited. The second table lists has similar information for the
f3c4da44 412 time spent in holding the lock for each of the processes.
cf5023fb
WC
413
414
210ff7bf 415process/futexes.stp - System-Wide Futex Contention
09a98ae0 416keywords: syscall locking futex
210ff7bf
FCE
417
418 The script watches the futex syscall on the system. On exit the
419 futexes address, the number of contentions, and the average time for
420 each contention on the futex are printed from lowest pid number to
421 highest.
422
423
22f971e8
WC
424= MEMORY =
425
426memory/kmalloc-top - Show Paths to Kernel Malloc (kmalloc) Invocations
427keywords: memory
428
429 The kmalloc-top perl program runs a small systemtap script to collect
430 stack traces for each call to the kmalloc function and counts the
431 time that each stack trace is observed. When kmalloc-top exits it
f3c4da44
MW
432 prints out sorted list. The output can be filtered to print only the
433 first N stack traces (-t), stack traces with a minimum counts (-m),
434 or exclude certain stack traces (-e).
22f971e8
WC
435
436
0dc23d1d
WC
437memory/mmanonpage.stp - Track Virtual Memory System Actions on Anonymous Pages
438keywords: memory
439
440 The mmanonpage.stp script uses the virtual memory tracepoints
441 available in some kernels to track the number of faults, user space
442 frees, page ins, copy on writes and unmaps for anonymous pages. When
443 the script is terminated the counts are printed for each process that
444 allocated pages while the script was running. This script displays
445 the anonymous page statistics for each process that ran while the
f3c4da44 446 script is active. It's useful in debugging leaks in the anonymous
0dc23d1d
WC
447 regions of a process.
448
449
450memory/mmfilepage.stp - Track Virtual Memory System Actions on File Backed Pages
451keywords: memory
452
453 The mmfilepage.stp script uses the virtual memory tracepoints
454 available in some kernels to track the number of faults, copy on
455 writes mapping, and unmapping operations for file backed pages. When
456 the script is terminated the counts are printed for each process that
457 allocated pages while the script was running. The mmfilepage.stp
458 script is useful in debugging leaks in the mapped file regions of a
459 process.
460
461
462memory/mmreclaim.stp - Track Virtual Memory System Page Reclamation
463keywords: memory
464
465 The mmreclaim.stp script uses the virtual memory tracepoints
ad7e33d7 466 available in some kernels to track page reclaim activity that
f3c4da44 467 occurred while the script was running. It's useful in debugging
ad7e33d7 468 performance problems that occur due to page reclamation.
0dc23d1d
WC
469
470
471memory/mmwriteback.stp - Track Virtual Memory System Writing to Disk
472keywords: memory
473
474 The mmwriteback.stp script uses the virtual memory tracepoints
475 available in some kernels to report all of the file writebacks that
476 occur form kupdate, pdflush and kjournald while the script is
f3c4da44
MW
477 running. It's useful in determining where writes are coming from on
478 a supposedly idle system that is experiencing unexpected IO.
0dc23d1d
WC
479
480
c728b7da
WC
481memory/numa_faults.stp - Summarize Process Misses across NUMA Nodes
482keywords: memory numa
483
484 The numa_faults.stp script tracks the read and write pages faults for
485 each process. When the script exits it prints out the total read and
ad7e33d7 486 write pages faults for each process. The script also provide a break
c728b7da
WC
487 down of page faults per node for each process. This script is useful
488 for determining whether the program has good locality (page faults
489 limited to a single node) on a NUMA computer.
490
491
1ff1a65d
FCE
492memory/overcommit.stp - Log failed process memory allocation due to overcommit limits
493keywords: memory process
494
495 The overcommit.stp script prints a line each time the kernel refuses
496 a memory allocation request from a process because of
497 /proc/sys/vm/overcommit* limits.
498
499
413996e0
WC
500memory/pfaults.stp - Generate Log of Major and Minor Page Faults
501keywords: memory
502
503 The pfaults.stp script generates a simple log for each major and
504 minor page fault that occurs on the system. Each line contains a
505 timestamp (in microseconds) when the page fault servicing was
506 completed, the pid of the process, the address of the page fault, the
507 type of access (read or write), the type of fault (major or minor),
508 and the elapsed time for page fault. This log can be examined to
ad7e33d7 509 determine where the page faults are occurring.
413996e0
WC
510
511
42c55668
MW
512memory/vm.tracepoints.stp - Collect slab allocation statistics
513keywords: memory slab allocator
514
515 The script will probe all memory slab/slub allocations and collects
516 information about the size of the object (bytes requested) and
517 user-space process in execution. When run over a period of time, it
518 helps to correlate kernel-space memory consumption owing to
519 user-space processes.
520
521
905728a0
WC
522network/sk_stream_wait_memory.stp - Track Start and Stop of Processes Due to Network Buffer Space
523keywords: network tcp buffer memory
524
525 The sk_stream-wait_memory.stp prints a time stamp, executable, and
526 pid each time a process blocks due to the send buffer being full. A
527 similar entry is printed each time a process continues because there
528 is room in the buffer.
529
530
14f0bb18 531= MONITORING =
b7f6cfc5 532
14f0bb18
FCE
533general/varwatch.stp - Watch a variable changing value in a thread.
534keywords: monitoring
b7f6cfc5 535
14f0bb18
FCE
536 This script places a set of probes (specified by $1), each of which
537 monitors the state of some context $variable expression (specified by
538 $2). Whenever the value changes, with respect to the active thread,
539 the event is traced.
b7f6cfc5 540
1beb5089
FCE
541
542io/mbrwatch.stp - Monitor read/write of MBR (boot sector) area of block devices
543keywords: io monitoring
544
545 The mbrwatch.stp script reports any attempted reads/writes of the
546 first few sectors of a raw block device.
547
548
14f0bb18
FCE
549io/ttyspy.stp - Monitor tty typing.
550keywords: io tty per-process monitoring
551
552 The ttyspy.stp script uses tty_audit hooks to monitor recent typing
553 activity on the system, printing a scrolling record of recent
554 keystrokes, on a per-tty basis.
555
556
210ff7bf
FCE
557= NETWORK =
558
8b88e771
FCE
559network/autofs4.stp - Watch autofs4 operations
560keywords: network autofs nfs
561
562 Trace key autofs4 operations such as mounting or unmounting remote
563 filesystems.
564
565
0e4901b0
WC
566network/dropwatch.stp - Watch Where Socket Buffers are Freed in the Kernel
567keywords: network tracepoint buffer free
568
569 Every five seconds the dropwatch.stp script lists the number of
570 socket buffers freed at locations in the kernel.
571
572
53e5699f
JS
573network/netdev.stp - Trace Activity on Network Devices
574keywords: network device traffic
575
576 The netdev.stp script traces configuration and transmit/receive
577 activity on network devices.
578
579
210ff7bf 580network/nettop.stp - Periodic Listing of Processes Using Network Interfaces
09a98ae0 581keywords: network traffic per-process
210ff7bf
FCE
582
583 Every five seconds the nettop.stp script prints out a list of
584 processed (PID and command) with the number of packets sent/received
585 and the amount of data sent/received by the process during that
586 interval.
587
588
905728a0
WC
589network/sk_stream_wait_memory.stp - Track Start and Stop of Processes Due to Network Buffer Space
590keywords: network tcp buffer memory
591
592 The sk_stream-wait_memory.stp prints a time stamp, executable, and
593 pid each time a process blocks due to the send buffer being full. A
594 similar entry is printed each time a process continues because there
595 is room in the buffer.
596
597
210ff7bf 598network/socket-trace.stp - Trace Functions called in Network Socket Code
09a98ae0 599keywords: network socket
210ff7bf 600
f3c4da44
MW
601 The script instruments each of the functions in the Linux kernel's
602 net/socket.c file. The script prints out trace data. The first
603 element of a line is time delta in microseconds from the previous
604 entry. This is followed by the command name and the PID. The "->" and
605 "<-" indicates function entry and function exit, respectively. The
606 last element of the line is the function name.
210ff7bf
FCE
607
608
492d227f
WC
609network/tcp_connections.stp - Track Creation of Incoming TCP Connections
610keywords: network tcp socket
611
612 The tcp_connections.stp script prints information for each new
613 incoming TCP connection accepted by the computer. The information
614 includes the UID, the command accepting the connection, the PID of
615 the command, the port the connection is on, and the IP address of the
616 originator of the request.
617
618
2e251678
DW
619network/tcp_trace.stp - Tcp connection tracing utility.
620keywords: network trace
621
622 This scripts traces a given tcp connection based on the filter
623 parameters given by the user. The indexing is done by the 4 tuples
624 local address, remote address, local port, remote port.
625
626
7a51212c
WC
627network/tcpdumplike.stp - Dump of Received TCP Packets
628keywords: network traffic
629
630 The tcpdumplike.stp prints out a line for each TCP packet received.
631 Each line includes the source and destination IP addresses, the
632 source and destination ports, and flags.
633
634
4bb6522c
WC
635network/tcpipstat.stp - Display network statistics for individual TCP sockets.
636keywords: network statistics
637
f3c4da44 638 tcpipstat collects and displays network statistics related to
4bb6522c 639 individual TCP sockets or groups of sockets. The statistics that are
f3c4da44 640 collected are simular to that of the command netstat -s, only sorted
4bb6522c
WC
641 and grouped by individual sockets.
642
643
8b88e771
FCE
644= NFS =
645
646network/autofs4.stp - Watch autofs4 operations
647keywords: network autofs nfs
648
649 Trace key autofs4 operations such as mounting or unmounting remote
650 filesystems.
651
652
c728b7da
WC
653= NUMA =
654
655memory/numa_faults.stp - Summarize Process Misses across NUMA Nodes
656keywords: memory numa
657
658 The numa_faults.stp script tracks the read and write pages faults for
659 each process. When the script exits it prints out the total read and
ad7e33d7 660 write pages faults for each process. The script also provide a break
c728b7da
WC
661 down of page faults per node for each process. This script is useful
662 for determining whether the program has good locality (page faults
663 limited to a single node) on a NUMA computer.
664
665
210ff7bf
FCE
666= PER-PROCESS =
667
b7f6cfc5 668io/ttyspy.stp - Monitor tty typing.
14f0bb18 669keywords: io tty per-process monitoring
b7f6cfc5
FCE
670
671 The ttyspy.stp script uses tty_audit hooks to monitor recent typing
672 activity on the system, printing a scrolling record of recent
673 keystrokes, on a per-tty basis.
674
675
210ff7bf 676network/nettop.stp - Periodic Listing of Processes Using Network Interfaces
09a98ae0 677keywords: network traffic per-process
210ff7bf
FCE
678
679 Every five seconds the nettop.stp script prints out a list of
680 processed (PID and command) with the number of packets sent/received
681 and the amount of data sent/received by the process during that
682 interval.
683
684
cc20d853
ET
685= PROCESS =
686
1ff1a65d
FCE
687memory/overcommit.stp - Log failed process memory allocation due to overcommit limits
688keywords: memory process
689
690 The overcommit.stp script prints a line each time the kernel refuses
691 a memory allocation request from a process because of
692 /proc/sys/vm/overcommit* limits.
693
694
e01bc08e
WC
695process/cycle_thief.stp - Track IRQs and Other Processes Stealing Cycles from a Task
696keywords: process scheduler time tracepoint interrupt
697
698 The cycle_thief.stp script instruments the scheduler and IRQ handler
699 to determine which processes and interrupts are competing with the
700 specified task for the cpu cycles. This script uses the '-c' or '-x'
701 options to focus on a specific task. The script output the number of
702 times the task migrates between processors, histograms showing the
703 length of time on and off processor, lists of processes running while
704 the task is off the processor, and the interrupts that occurred while
705 the task was running.
706
707
42d42e06
JS
708process/dumpstack.stp - Print the kernel stack of a hung task
709keywords: process backtrace
710
711 The script prints the kernel stack of any non-running pid in the
712 system. This is useful for diagnosing the reason that a task is
713 hung.
714
715
cc20d853
ET
716process/errsnoop.stp - tabulate system call errors
717keywords: process syscall
718
719 The script prints a periodic tabular report about failing system
720 calls, by process and by syscall failure. The first optional
721 argument specifies the reporting interval (in seconds, default 5);
722 the second optional argument gives a screen height (number of lines
723 in the report, default 20).
724
725
e6b653c8
WC
726process/forktracker.stp - Trace Creation of Processes
727keywords: process scheduler
728
729 The forktracker.stp script prints out a time-stamped entry showing
f3c4da44 730 each fork and exec operation on the machine. This can be useful to
e6b653c8
WC
731 determine what process is creating a flurry of short-lived processes.
732
733
ecf33ff4
ET
734process/pfiles.stp - print process file descriptors
735keywords: process files
736
737 Run pfiles.stp to produce a human-readable summary of all open file
738 descriptors of a given process. Specify the process-id as -x PID for
739 fastest performance.
740
741
5b8642a2
FCE
742process/plimit.stp - print resource limits
743keywords: process
744
745 The script prints a variety of resource limits for a given pid, like
746 /proc/$$/limits on recent kernels.
747
748
34029cd3
WC
749process/schedtimes.stp - Track Time Processes Spend in Various States using Tracepoints
750keywords: process scheduler time tracepoint
751
752 The schedtimes.stp script instruments the scheduler to track the
f3c4da44
MW
753 amount of time that each process spends in running, sleeping,
754 queuing, and waiting for io. On exit the script prints out the
755 accumulated time for each state of processes observed. Optionally,
756 this script can be used with the '-c' or '-x' options to focus on a
757 specific PID.
34029cd3
WC
758
759
210ff7bf
FCE
760= PROFILING =
761
a4f3198f
WC
762io/iodevstats.stp - List Executables Reading and Writing the Most Data by Device
763keywords: io profiling
764
765 The iodevstats.stp script measures the amount of data successfully
766 read and written by all the executables for each io device on the
767 system. The output is sorted from greatest sum of bytes read and
768 written to a device by an executable to the least. The output
769 contains device major/minor number, the count of operations (reads
770 and writes), the totals and averages for the number of bytes read and
771 written.
772
773
54ff5e0c
FCE
774io/iostat-scsi.stp - iostat for SCSI Devices
775keywords: io profiling scsi
776
777 The iostat-scsi.stp script provides a breakdown of the number of blks
ad7e33d7 778 read and written on the machine's various SCSI devices. The script
54ff5e0c
FCE
779 takes one argument which is the number of seconds between reports.
780
781
3e4444ed
WC
782io/iostats.stp - List Executables Reading and Writing the Most Data
783keywords: io profiling
784
785 The iostat.stp script measures the amount of data successfully read
786 and written by all the executables on the system. The output is
787 sorted from most greatest sum of bytes read and written by an
788 executable to the least. The output contains the count of operations
789 (opens, reads, and writes), the totals and averages for the number of
790 bytes read and written.
791
792
111dd9ac
WC
793io/nfs_func_users.stp - Tally the Number of NFS Functions Used by Each Process
794keywords: io profiling
795
796 The nfs_func_users.stp script counts the uses of NFS functions in the
797 kernel on a per process bases. The output is sorted from the process
798 with the greatest number of NFS functions called to the least. The
799 output contains the executable name, the process number, and the
800 total number of NFS functions called by the process.
801
802
210ff7bf 803process/pf2.stp - Profile kernel functions
09a98ae0 804keywords: profiling
210ff7bf
FCE
805
806 The pf2.stp script sets up time-based sampling. Every five seconds it
807 prints out a sorted list with the top ten kernel functions with
808 samples.
809
810
f503d3c0
FCE
811profiling/fntimes.stp - Show functions taking longer than usual
812keywords: profiling
813
814 The fntimes.stp script monitors the execution time history of a given
815 function family (assumed non-recursive). Each time (beyond a warmup
816 interval) is then compared to the historical maximum. If it exceeds
817 a certain threshold (250%), a message is printed.
818
819
210ff7bf 820profiling/functioncallcount.stp - Count Times Functions Called
09a98ae0 821keywords: profiling functions
210ff7bf
FCE
822
823 The functioncallcount.stp script takes one argument, a list of
824 functions to probe. The script will run and count the number of times
825 that each of the functions on the list is called. On exit the script
826 will print a sorted list from most frequently to least frequently
827 called function.
828
829
0449af03
JS
830profiling/sched_switch.stp - Display the task switches happening in the scheduler
831keywords: profiling functions
832
833 The sched_switch.stp script takes two arguments, first argument can
834 be "pid" or "name" to indicate what is being passed as second
835 argument. The script will trace the process based on pid/name and
836 print the scheduler switches happening with the process. If no
837 arguments are passed, it displays all the scheduler switches. This
838 can be used to understand which tasks schedule out the current
839 process being traced, and when it gets scheduled in again.
840
841
210ff7bf 842profiling/thread-times.stp - Profile kernel functions
09a98ae0 843keywords: profiling
210ff7bf 844
1ae72757
JS
845 The thread-times.stp script sets up time-based sampling. Every five
846 seconds it prints out a sorted list with the top twenty threads
847 occupying the CPUs, broken down as a percentage of user and kernel
848 time.
210ff7bf
FCE
849
850
ff90b297
WC
851profiling/timeout.stp - Show Processes Doing Polling Operations
852keywords: profiling
853
854 The timeout.stp script is based on a blog entry
855 (http://udrepper.livejournal.com/19041.html) mentioning a need for a
856 tool to help developers find applications that are polling. The
857 timeout.stp script monitors systemcall used for polling and records
858 the systemcalls that timed out rather than returned because some
859 action occurred. The script updates the screen once a second with the
860 top twenty processes.
861
862
1bf72dfe
WC
863profiling/topsys.stp - Show Processes Doing Polling Operations
864keywords: profiling
865
866 The topsys.stp script lists out the top twenty systemcalls for the
867 previous 5 seconds. The output is sorted from most frequent to least
868 frequent.
869
870
210ff7bf
FCE
871= READ =
872
873io/iotime.stp - Trace Time Spent in Read and Write for Files
09a98ae0 874keywords: syscall read write time io
210ff7bf
FCE
875
876 The script watches each open, close, read, and write syscalls on the
877 system. For each file the scripts observes opened it accumulates the
f3c4da44 878 amount of wall clock time spent in read and write operations and the
210ff7bf
FCE
879 number of bytes read and written. When a file is closed the script
880 prints out a pair of lines for the file. Both lines begin with a
881 timestamp in microseconds, the PID number, and the executable name in
ad7e33d7 882 parentheses. The first line with the "access" keyword lists the file
210ff7bf
FCE
883 name, the attempted number of bytes for the read and write
884 operations. The second line with the "iotime" keyword list the file
885 name and the number of microseconds accumulated in the read and write
886 syscalls.
887
888
889= SCHEDULER =
890
deb63545
WC
891process/chng_cpu.stp - Monitor Changes in Processor Executing a Task
892keywords: scheduler
893
894 The chng_cpu.stp script takes an argument which is the executable
895 name of the task it should monitor. Each time a task with that
896 executable name is found running on a different processor, the script
897 prints out the thread id (tid), the executable name, the processor
898 now running the task, the thread state, and a backtrace showing the
899 kernel functions that triggered the running of the task on the
900 processor.
901
902
e01bc08e
WC
903process/cycle_thief.stp - Track IRQs and Other Processes Stealing Cycles from a Task
904keywords: process scheduler time tracepoint interrupt
905
906 The cycle_thief.stp script instruments the scheduler and IRQ handler
907 to determine which processes and interrupts are competing with the
908 specified task for the cpu cycles. This script uses the '-c' or '-x'
909 options to focus on a specific task. The script output the number of
910 times the task migrates between processors, histograms showing the
911 length of time on and off processor, lists of processes running while
912 the task is off the processor, and the interrupts that occurred while
913 the task was running.
914
915
e6b653c8
WC
916process/forktracker.stp - Trace Creation of Processes
917keywords: process scheduler
918
919 The forktracker.stp script prints out a time-stamped entry showing
f3c4da44 920 each fork and exec operation on the machine. This can be useful to
e6b653c8
WC
921 determine what process is creating a flurry of short-lived processes.
922
923
deb63545
WC
924process/migrate.stp - Track the Migration of Specific Executables
925keywords: scheduler
926
927 The migrate.stp script takes an argument which is the executable name
928 of the task it should monitor. Each time a task with that executable
929 name migrates between processors an entry is printed with the process
930 id (pid), the executable name, the processor off loading the task,
931 and the process taking the task. Note that the task may or may not be
932 executing at the time of the migration.
933
934
34029cd3
WC
935process/schedtimes.stp - Track Time Processes Spend in Various States using Tracepoints
936keywords: process scheduler time tracepoint
937
938 The schedtimes.stp script instruments the scheduler to track the
f3c4da44
MW
939 amount of time that each process spends in running, sleeping,
940 queuing, and waiting for io. On exit the script prints out the
941 accumulated time for each state of processes observed. Optionally,
942 this script can be used with the '-c' or '-x' options to focus on a
943 specific PID.
34029cd3
WC
944
945
210ff7bf 946process/sleepingBeauties.stp - Generating Backtraces of Threads Waiting for IO Operations
09a98ae0 947keywords: io scheduler backtrace
cae71dd3 948
f3c4da44 949 The script monitors the time that threads spend in waiting for IO
cae71dd3
FCE
950 operations (in "D" state) in the wait_for_completion function. If a
951 thread spends over 10ms, its name and backtrace is printed, and later
952 so is the total delay.
210ff7bf
FCE
953
954
54ff5e0c
FCE
955= SCSI =
956
957io/iostat-scsi.stp - iostat for SCSI Devices
958keywords: io profiling scsi
959
960 The iostat-scsi.stp script provides a breakdown of the number of blks
ad7e33d7 961 read and written on the machine's various SCSI devices. The script
54ff5e0c
FCE
962 takes one argument which is the number of seconds between reports.
963
964
210ff7bf
FCE
965= SIGNALS =
966
967process/sig_by_pid.stp - Signal Counts by Process ID
09a98ae0 968keywords: signals
210ff7bf
FCE
969
970 Print signal counts by process ID in descending order.
971
972
973process/sig_by_proc.stp - Signal Counts by Process Name
09a98ae0 974keywords: signals
210ff7bf
FCE
975
976 Print signal counts by process name in descending order.
977
978
979process/sigkill.stp - Track SIGKILL Signals
09a98ae0 980keywords: signals
210ff7bf
FCE
981
982 The script traces any SIGKILL signals. When that SIGKILL signal is
983 sent to a process, the script prints out the signal name, the
f3c4da44
MW
984 destination executable and process ID, the executable name and user
985 ID that sents the signal.
210ff7bf
FCE
986
987
3a748561 988process/sigmon.stp - Track a particular signal to a specific process
09a98ae0 989keywords: signals
210ff7bf
FCE
990
991 The script watches for a particular signal sent to a specific
992 process. When that signal is sent to the specified process, the
993 script prints out the PID and executable of the process sending the
994 signal, the PID and executable name of the process receiving the
995 signal, and the signal number and name.
996
997
998= SIMPLE =
999
1000general/helloworld.stp - SystemTap "Hello World" Program
09a98ae0 1001keywords: simple
210ff7bf
FCE
1002
1003 A basic "Hello World" program implemented in SystemTap script. It
1004 prints out "hello world" message and then immediately exits.
1005
1006
42c55668
MW
1007= SLAB =
1008
1009memory/vm.tracepoints.stp - Collect slab allocation statistics
1010keywords: memory slab allocator
1011
1012 The script will probe all memory slab/slub allocations and collects
1013 information about the size of the object (bytes requested) and
1014 user-space process in execution. When run over a period of time, it
1015 helps to correlate kernel-space memory consumption owing to
1016 user-space processes.
1017
1018
210ff7bf
FCE
1019= SLEEP =
1020
1021process/sleeptime.stp - Trace Time Spent in nanosleep Syscalls
09a98ae0 1022keywords: syscall sleep
210ff7bf
FCE
1023
1024 The script watches each nanosleep syscall on the system. At the end
1025 of each nanosleep syscall the script prints out a line with a
1026 timestamp in microseconds, the pid, the executable name in
ad7e33d7 1027 parentheses, the "nanosleep:" key, and the duration of the sleep in
210ff7bf
FCE
1028 microseconds.
1029
1030
1031= SOCKET =
1032
1033network/socket-trace.stp - Trace Functions called in Network Socket Code
09a98ae0 1034keywords: network socket
210ff7bf 1035
f3c4da44
MW
1036 The script instruments each of the functions in the Linux kernel's
1037 net/socket.c file. The script prints out trace data. The first
1038 element of a line is time delta in microseconds from the previous
1039 entry. This is followed by the command name and the PID. The "->" and
1040 "<-" indicates function entry and function exit, respectively. The
1041 last element of the line is the function name.
210ff7bf
FCE
1042
1043
492d227f
WC
1044network/tcp_connections.stp - Track Creation of Incoming TCP Connections
1045keywords: network tcp socket
1046
1047 The tcp_connections.stp script prints information for each new
1048 incoming TCP connection accepted by the computer. The information
1049 includes the UID, the command accepting the connection, the PID of
1050 the command, the port the connection is on, and the IP address of the
1051 originator of the request.
1052
1053
4bb6522c
WC
1054= STATISTICS =
1055
1056network/tcpipstat.stp - Display network statistics for individual TCP sockets.
1057keywords: network statistics
1058
f3c4da44 1059 tcpipstat collects and displays network statistics related to
4bb6522c 1060 individual TCP sockets or groups of sockets. The statistics that are
f3c4da44 1061 collected are simular to that of the command netstat -s, only sorted
4bb6522c
WC
1062 and grouped by individual sockets.
1063
1064
210ff7bf
FCE
1065= SYSCALL =
1066
1067io/iotime.stp - Trace Time Spent in Read and Write for Files
09a98ae0 1068keywords: syscall read write time io
210ff7bf
FCE
1069
1070 The script watches each open, close, read, and write syscalls on the
1071 system. For each file the scripts observes opened it accumulates the
f3c4da44 1072 amount of wall clock time spent in read and write operations and the
210ff7bf
FCE
1073 number of bytes read and written. When a file is closed the script
1074 prints out a pair of lines for the file. Both lines begin with a
1075 timestamp in microseconds, the PID number, and the executable name in
ad7e33d7 1076 parentheses. The first line with the "access" keyword lists the file
210ff7bf
FCE
1077 name, the attempted number of bytes for the read and write
1078 operations. The second line with the "iotime" keyword list the file
1079 name and the number of microseconds accumulated in the read and write
1080 syscalls.
1081
1082
cc20d853
ET
1083process/errsnoop.stp - tabulate system call errors
1084keywords: process syscall
1085
1086 The script prints a periodic tabular report about failing system
1087 calls, by process and by syscall failure. The first optional
1088 argument specifies the reporting interval (in seconds, default 5);
1089 the second optional argument gives a screen height (number of lines
1090 in the report, default 20).
1091
1092
210ff7bf 1093process/futexes.stp - System-Wide Futex Contention
09a98ae0 1094keywords: syscall locking futex
210ff7bf
FCE
1095
1096 The script watches the futex syscall on the system. On exit the
1097 futexes address, the number of contentions, and the average time for
1098 each contention on the futex are printed from lowest pid number to
1099 highest.
1100
1101
1102process/sleeptime.stp - Trace Time Spent in nanosleep Syscalls
09a98ae0 1103keywords: syscall sleep
210ff7bf
FCE
1104
1105 The script watches each nanosleep syscall on the system. At the end
1106 of each nanosleep syscall the script prints out a line with a
1107 timestamp in microseconds, the pid, the executable name in
ad7e33d7 1108 parentheses, the "nanosleep:" key, and the duration of the sleep in
210ff7bf
FCE
1109 microseconds.
1110
1111
1112process/syscalls_by_pid.stp - System-Wide Count of Syscalls by PID
09a98ae0 1113keywords: syscall
210ff7bf
FCE
1114
1115 The script watches all syscall on the system. On exit the script
1116 prints a list showing the number of systemcalls executed by each PID
1117 ordered from greatest to least number of syscalls.
1118
1119
1120process/syscalls_by_proc.stp - System-Wide Count of Syscalls by Executable
09a98ae0 1121keywords: syscall
210ff7bf
FCE
1122
1123 The script watches all syscall on the system. On exit the script
1124 prints a list showing the number of systemcalls executed by each
ad7e33d7 1125 executable ordered from greatest to least number of syscalls.
210ff7bf
FCE
1126
1127
1128process/wait4time.stp - Trace Time Spent in wait4 Syscalls
09a98ae0 1129keywords: syscall wait4
210ff7bf
FCE
1130
1131 The script watches each wait4 syscall on the system. At the end of
1132 each wait4 syscall the script prints out a line with a timestamp in
ad7e33d7 1133 microseconds, the pid, the executable name in parentheses, the
210ff7bf
FCE
1134 "wait4:" key, the duration of the wait and the PID that the wait4 was
1135 waiting for. If the waited for PID is not specified , it is "-1".
1136
1137
492d227f
WC
1138= TCP =
1139
905728a0
WC
1140network/sk_stream_wait_memory.stp - Track Start and Stop of Processes Due to Network Buffer Space
1141keywords: network tcp buffer memory
1142
1143 The sk_stream-wait_memory.stp prints a time stamp, executable, and
1144 pid each time a process blocks due to the send buffer being full. A
1145 similar entry is printed each time a process continues because there
1146 is room in the buffer.
1147
1148
492d227f
WC
1149network/tcp_connections.stp - Track Creation of Incoming TCP Connections
1150keywords: network tcp socket
1151
1152 The tcp_connections.stp script prints information for each new
1153 incoming TCP connection accepted by the computer. The information
1154 includes the UID, the command accepting the connection, the PID of
1155 the command, the port the connection is on, and the IP address of the
1156 originator of the request.
1157
1158
210ff7bf
FCE
1159= TIME =
1160
1161io/iotime.stp - Trace Time Spent in Read and Write for Files
09a98ae0 1162keywords: syscall read write time io
210ff7bf
FCE
1163
1164 The script watches each open, close, read, and write syscalls on the
1165 system. For each file the scripts observes opened it accumulates the
f3c4da44 1166 amount of wall clock time spent in read and write operations and the
210ff7bf
FCE
1167 number of bytes read and written. When a file is closed the script
1168 prints out a pair of lines for the file. Both lines begin with a
1169 timestamp in microseconds, the PID number, and the executable name in
ad7e33d7 1170 parentheses. The first line with the "access" keyword lists the file
210ff7bf
FCE
1171 name, the attempted number of bytes for the read and write
1172 operations. The second line with the "iotime" keyword list the file
1173 name and the number of microseconds accumulated in the read and write
1174 syscalls.
1175
1176
e01bc08e
WC
1177process/cycle_thief.stp - Track IRQs and Other Processes Stealing Cycles from a Task
1178keywords: process scheduler time tracepoint interrupt
1179
1180 The cycle_thief.stp script instruments the scheduler and IRQ handler
1181 to determine which processes and interrupts are competing with the
1182 specified task for the cpu cycles. This script uses the '-c' or '-x'
1183 options to focus on a specific task. The script output the number of
1184 times the task migrates between processors, histograms showing the
1185 length of time on and off processor, lists of processes running while
1186 the task is off the processor, and the interrupts that occurred while
1187 the task was running.
1188
1189
34029cd3
WC
1190process/schedtimes.stp - Track Time Processes Spend in Various States using Tracepoints
1191keywords: process scheduler time tracepoint
1192
1193 The schedtimes.stp script instruments the scheduler to track the
f3c4da44
MW
1194 amount of time that each process spends in running, sleeping,
1195 queuing, and waiting for io. On exit the script prints out the
1196 accumulated time for each state of processes observed. Optionally,
1197 this script can be used with the '-c' or '-x' options to focus on a
1198 specific PID.
34029cd3
WC
1199
1200
210ff7bf
FCE
1201= TRACE =
1202
aa15b9f0 1203general/para-callgraph.stp - Callgraph tracing with arguments
09a98ae0 1204keywords: trace callgraph
210ff7bf 1205
aa15b9f0
FCE
1206 Print a timed per-thread callgraph, complete with function parameters
1207 and return values. The first parameter names the function probe
1208 points to trace. The optional second parameter names the probe
1209 points for trigger functions, which acts to enable tracing for only
1210 those functions that occur while the current thread is nested within
1211 the trigger.
210ff7bf
FCE
1212
1213
2e251678
DW
1214network/tcp_trace.stp - Tcp connection tracing utility.
1215keywords: network trace
1216
1217 This scripts traces a given tcp connection based on the filter
1218 parameters given by the user. The indexing is done by the 4 tuples
1219 local address, remote address, local port, remote port.
1220
1221
0e4901b0
WC
1222= TRACEPOINT =
1223
1224network/dropwatch.stp - Watch Where Socket Buffers are Freed in the Kernel
1225keywords: network tracepoint buffer free
1226
1227 Every five seconds the dropwatch.stp script lists the number of
1228 socket buffers freed at locations in the kernel.
1229
1230
e01bc08e
WC
1231process/cycle_thief.stp - Track IRQs and Other Processes Stealing Cycles from a Task
1232keywords: process scheduler time tracepoint interrupt
1233
1234 The cycle_thief.stp script instruments the scheduler and IRQ handler
1235 to determine which processes and interrupts are competing with the
1236 specified task for the cpu cycles. This script uses the '-c' or '-x'
1237 options to focus on a specific task. The script output the number of
1238 times the task migrates between processors, histograms showing the
1239 length of time on and off processor, lists of processes running while
1240 the task is off the processor, and the interrupts that occurred while
1241 the task was running.
1242
1243
34029cd3
WC
1244process/schedtimes.stp - Track Time Processes Spend in Various States using Tracepoints
1245keywords: process scheduler time tracepoint
1246
1247 The schedtimes.stp script instruments the scheduler to track the
f3c4da44
MW
1248 amount of time that each process spends in running, sleeping,
1249 queuing, and waiting for io. On exit the script prints out the
1250 accumulated time for each state of processes observed. Optionally,
1251 this script can be used with the '-c' or '-x' options to focus on a
1252 specific PID.
34029cd3
WC
1253
1254
210ff7bf
FCE
1255= TRAFFIC =
1256
53e5699f
JS
1257network/netdev.stp - Trace Activity on Network Devices
1258keywords: network device traffic
1259
1260 The netdev.stp script traces configuration and transmit/receive
1261 activity on network devices.
1262
1263
210ff7bf 1264network/nettop.stp - Periodic Listing of Processes Using Network Interfaces
09a98ae0 1265keywords: network traffic per-process
210ff7bf
FCE
1266
1267 Every five seconds the nettop.stp script prints out a list of
1268 processed (PID and command) with the number of packets sent/received
1269 and the amount of data sent/received by the process during that
1270 interval.
1271
1272
7a51212c
WC
1273network/tcpdumplike.stp - Dump of Received TCP Packets
1274keywords: network traffic
1275
1276 The tcpdumplike.stp prints out a line for each TCP packet received.
1277 Each line includes the source and destination IP addresses, the
1278 source and destination ports, and flags.
1279
1280
b7f6cfc5
FCE
1281= TTY =
1282
1283io/ttyspy.stp - Monitor tty typing.
14f0bb18 1284keywords: io tty per-process monitoring
b7f6cfc5
FCE
1285
1286 The ttyspy.stp script uses tty_audit hooks to monitor recent typing
1287 activity on the system, printing a scrolling record of recent
1288 keystrokes, on a per-tty basis.
1289
1290
210ff7bf
FCE
1291= USE =
1292
1293general/graphs.stp - Graphing Disk and CPU Utilization
09a98ae0 1294keywords: disk cpu use graph
210ff7bf
FCE
1295
1296 The script tracks the disk and CPU utilization. The resulting output
1297 of the script can be piped into gnuplot to generate a graph of disk
1298 and CPU USE.
1299
1300
1301= WAIT4 =
1302
1303process/wait4time.stp - Trace Time Spent in wait4 Syscalls
09a98ae0 1304keywords: syscall wait4
210ff7bf
FCE
1305
1306 The script watches each wait4 syscall on the system. At the end of
1307 each wait4 syscall the script prints out a line with a timestamp in
ad7e33d7 1308 microseconds, the pid, the executable name in parentheses, the
210ff7bf
FCE
1309 "wait4:" key, the duration of the wait and the PID that the wait4 was
1310 waiting for. If the waited for PID is not specified , it is "-1".
1311
1312
1313= WRITE =
1314
1315io/iotime.stp - Trace Time Spent in Read and Write for Files
09a98ae0 1316keywords: syscall read write time io
210ff7bf
FCE
1317
1318 The script watches each open, close, read, and write syscalls on the
1319 system. For each file the scripts observes opened it accumulates the
f3c4da44 1320 amount of wall clock time spent in read and write operations and the
210ff7bf
FCE
1321 number of bytes read and written. When a file is closed the script
1322 prints out a pair of lines for the file. Both lines begin with a
1323 timestamp in microseconds, the PID number, and the executable name in
ad7e33d7 1324 parentheses. The first line with the "access" keyword lists the file
210ff7bf
FCE
1325 name, the attempted number of bytes for the read and write
1326 operations. The second line with the "iotime" keyword list the file
1327 name and the number of microseconds accumulated in the read and write
1328 syscalls.
1329
1330
This page took 0.214463 seconds and 5 git commands to generate.