From d9b47a1d2744d0c8f2a3f74ea3705b9d10916b5b Mon Sep 17 00:00:00 2001 From: William Cohen Date: Fri, 9 May 2008 16:36:13 -0400 Subject: [PATCH] Add syscalls_by_pid.meta, syscalls_by_proc.meta, sigmon.meta, sig_by_pid.meta, sig_by_proc.meta, and socket-trace.meta. --- testsuite/systemtap.examples/sig_by_pid.meta | 13 +++++++++++++ testsuite/systemtap.examples/sig_by_proc.meta | 13 +++++++++++++ testsuite/systemtap.examples/sigmon.meta | 14 ++++++++++++++ testsuite/systemtap.examples/socket-trace.meta | 13 +++++++++++++ testsuite/systemtap.examples/syscalls_by_pid.meta | 13 +++++++++++++ testsuite/systemtap.examples/syscalls_by_proc.meta | 13 +++++++++++++ 6 files changed, 79 insertions(+) create mode 100644 testsuite/systemtap.examples/sig_by_pid.meta create mode 100644 testsuite/systemtap.examples/sig_by_proc.meta create mode 100644 testsuite/systemtap.examples/sigmon.meta create mode 100644 testsuite/systemtap.examples/socket-trace.meta create mode 100644 testsuite/systemtap.examples/syscalls_by_pid.meta create mode 100644 testsuite/systemtap.examples/syscalls_by_proc.meta diff --git a/testsuite/systemtap.examples/sig_by_pid.meta b/testsuite/systemtap.examples/sig_by_pid.meta new file mode 100644 index 000000000..03b02fba1 --- /dev/null +++ b/testsuite/systemtap.examples/sig_by_pid.meta @@ -0,0 +1,13 @@ +title: Signal Counts by Process ID +name: sig_by_pid.stp +version: 1.0 +author: IBM +keywords: signals +subsystem: signals +status: experimental +exit: user-controlled +output: sorted-list on-exit +scope: system-wide +description: Print signal counts by process ID in descending order. +test_check: stap -p4 sig_by_pid.stp +test_installcheck: stap sig_by_pid.stp -c "sleep 1" diff --git a/testsuite/systemtap.examples/sig_by_proc.meta b/testsuite/systemtap.examples/sig_by_proc.meta new file mode 100644 index 000000000..eea42be46 --- /dev/null +++ b/testsuite/systemtap.examples/sig_by_proc.meta @@ -0,0 +1,13 @@ +title: Signal Counts by Process Name +name: sig_by_proc.stp +version: 1.0 +author: IBM +keywords: signals +subsystem: signals +status: experimental +exit: user-controlled +output: sorted-list on-exit +scope: system-wide +description: Print signal counts by process name in descending order. +test_check: stap -p4 sig_by_proc.stp +test_installcheck: stap sig_by_proc.stp -c "sleep 1" diff --git a/testsuite/systemtap.examples/sigmon.meta b/testsuite/systemtap.examples/sigmon.meta new file mode 100644 index 000000000..188349978 --- /dev/null +++ b/testsuite/systemtap.examples/sigmon.meta @@ -0,0 +1,14 @@ +title: System-Wide Count of Syscalls by PID +name: syscalls_by_pid.stp +version: 1.0 +author: IBM +keywords: signals +subsystem: signals +status: experimental +exit: user-controlled +output: trace +scope: pid +description: 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. +arg_1: The name of the signal to look for on selected process. +test_check: stap -p4 sigmon.stp SIGKILL +test_installcheck: stap sigmon.stp -c "sleep 1" SIGKILL diff --git a/testsuite/systemtap.examples/socket-trace.meta b/testsuite/systemtap.examples/socket-trace.meta new file mode 100644 index 000000000..0b26f2fe6 --- /dev/null +++ b/testsuite/systemtap.examples/socket-trace.meta @@ -0,0 +1,13 @@ +title: Trace Functions called in Network Socket Code +name: socket-trace.stp +version: 1.0 +author: anonymous +keywords: network socket +subsystem: network +status: production +exit: user-controlled +output: trace +scope: system-wide +description: 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. +test_check: stap -p4 socket-trace.stp +test_installcheck: stap socket-trace.stp -c "sleep 1" diff --git a/testsuite/systemtap.examples/syscalls_by_pid.meta b/testsuite/systemtap.examples/syscalls_by_pid.meta new file mode 100644 index 000000000..590652b3f --- /dev/null +++ b/testsuite/systemtap.examples/syscalls_by_pid.meta @@ -0,0 +1,13 @@ +title: System-Wide Count of Syscalls by PID +name: syscalls_by_pid.stp +version: 1.0 +author: anonymous +keywords: syscall +subsystem: syscall +status: production +exit: user-controlled +output: sorted-list on-exit +scope: system-wide +description: 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. +test_check: stap -p4 syscalls_by_pid.stp +test_installcheck: stap syscalls_by_pid.stp -c "sleep 1" diff --git a/testsuite/systemtap.examples/syscalls_by_proc.meta b/testsuite/systemtap.examples/syscalls_by_proc.meta new file mode 100644 index 000000000..79aa3e879 --- /dev/null +++ b/testsuite/systemtap.examples/syscalls_by_proc.meta @@ -0,0 +1,13 @@ +title: System-Wide Count of Syscalls by Executable +name: syscalls_by_proc.stp +version: 1.0 +author: anonymous +keywords: syscall +subsystem: syscall +status: production +exit: user-controlled +output: sorted-list on-exit +scope: system-wide +description: 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. +test_check: stap -p4 syscalls_by_proc.stp +test_installcheck: stap syscalls_by_proc.stp -c "sleep 1" -- 2.43.5