From 209fbe6069a50c70f31858aececf37eb263ec5ac Mon Sep 17 00:00:00 2001 From: mmason Date: Thu, 31 May 2007 05:24:10 +0000 Subject: More renames --- examples/sig_by_pid.txt | 24 ++++++++++++++++++++++++ examples/sig_by_proc.stp | 36 ++++++++++++++++++++++++++++++++++++ examples/sig_by_proc.txt | 20 ++++++++++++++++++++ examples/sig_count_by_pid.txt | 24 ------------------------ examples/sig_count_by_proc.stp | 36 ------------------------------------ examples/sig_count_by_proc.txt | 20 -------------------- 6 files changed, 80 insertions(+), 80 deletions(-) create mode 100644 examples/sig_by_pid.txt create mode 100755 examples/sig_by_proc.stp create mode 100644 examples/sig_by_proc.txt delete mode 100644 examples/sig_count_by_pid.txt delete mode 100755 examples/sig_count_by_proc.stp delete mode 100644 examples/sig_count_by_proc.txt (limited to 'examples') diff --git a/examples/sig_by_pid.txt b/examples/sig_by_pid.txt new file mode 100644 index 00000000..4d5a84c8 --- /dev/null +++ b/examples/sig_by_pid.txt @@ -0,0 +1,24 @@ +# stap sig_count_by_pid.stp +Collecting data... Type Ctrl-C to exit and display results +^C +Collecting data... Type Ctrl-C to exit and display results +SPID SENDER RPID RECEIVER SIGNAME COUNT +0 swapper 25273 Xvnc SIGALRM 1576 +25273 Xvnc 25273 Xvnc SIGALRM 17 +29219 firefox-bin 25273 Xvnc SIGALRM 12 +0 swapper 2442 automount SIGALRM 12 +26754 xterm 26756 bash SIGWINCH 9 +0 swapper 2199 syslogd SIGALRM 6 +25345 metacity 25273 Xvnc SIGALRM 3 +2791 wclientd 2791 wclientd SIGUSR1 2 +30385 ifconfig 30384 sh SIGCHLD 1 +30384 sh 2802 wcstatusd SIGCHLD 1 +30387 mii-tool 30386 sh SIGCHLD 1 +30386 sh 2802 wcstatusd SIGCHLD 1 +30388 lspci 2802 wcstatusd SIGCHLD 1 +30389 sh 2802 wcstatusd SIGCHLD 1 +30391 ifconfig 25273 Xvnc SIGALRM 1 +30391 ifconfig 30390 sh SIGCHLD 1 +30390 sh 2802 wcstatusd SIGCHLD 1 +30393 mii-tool 30392 sh SIGCHLD 1 +30392 sh 2802 wcstatusd SIGCHLD 1 diff --git a/examples/sig_by_proc.stp b/examples/sig_by_proc.stp new file mode 100755 index 00000000..15c31a63 --- /dev/null +++ b/examples/sig_by_proc.stp @@ -0,0 +1,36 @@ +#! stap + +# Copyright (C) 2006 IBM Corp. +# +# This file is part of systemtap, and is free software. You can +# redistribute it and/or modify it under the terms of the GNU General +# Public License (GPL); either version 2, or (at your option) any +# later version. + +# +# Print signal counts by process name in descending order. +# + +global sigcnt, pid2name, sig2name + +probe begin { + print("Collecting data... Type Ctrl-C to exit and display results\n") +} + +probe signal.send +{ + sigcnt[execname(), pid_name, sig]++ + + if (!(sig in sig2name)) sig2name[sig] = sig_name +} + +probe end +{ + printf("%-16s %-16s %-16s %s\n", + "SENDER", "RECEIVER", "SIGNAL", "COUNT") + + foreach ([snd_name, rcv_name, sig_num] in sigcnt-) + printf("%-16s %-16s %-16s %d\n", + snd_name, rcv_name, sig2name[sig_num], + sigcnt[snd_name, rcv_name, sig_num]) +} diff --git a/examples/sig_by_proc.txt b/examples/sig_by_proc.txt new file mode 100644 index 00000000..1c9078e6 --- /dev/null +++ b/examples/sig_by_proc.txt @@ -0,0 +1,20 @@ +# stap sig_count_by_proc.stp +Collecting data... Type Ctrl-C to exit and display results +^C +SENDER RECEIVER SIGNAL COUNT +swapper Xvnc SIGALRM 448 +sh wcstatusd SIGCHLD 318 +ifconfig sh SIGCHLD 106 +mii-tool sh SIGCHLD 106 +lspci wcstatusd SIGCHLD 106 +automount automount SIGCHLD 14 +swapper automount SIGALRM 13 +swapper syslogd SIGALRM 7 +swapper sendmail SIGALRM 2 +sendmail sendmail SIGCHLD 2 +lspci Xvnc SIGALRM 2 +ifconfig automount SIGALRM 1 +sh Xvnc SIGALRM 1 +xterm staprun SIGINT 1 +xterm stap SIGINT 1 + diff --git a/examples/sig_count_by_pid.txt b/examples/sig_count_by_pid.txt deleted file mode 100644 index 4d5a84c8..00000000 --- a/examples/sig_count_by_pid.txt +++ /dev/null @@ -1,24 +0,0 @@ -# stap sig_count_by_pid.stp -Collecting data... Type Ctrl-C to exit and display results -^C -Collecting data... Type Ctrl-C to exit and display results -SPID SENDER RPID RECEIVER SIGNAME COUNT -0 swapper 25273 Xvnc SIGALRM 1576 -25273 Xvnc 25273 Xvnc SIGALRM 17 -29219 firefox-bin 25273 Xvnc SIGALRM 12 -0 swapper 2442 automount SIGALRM 12 -26754 xterm 26756 bash SIGWINCH 9 -0 swapper 2199 syslogd SIGALRM 6 -25345 metacity 25273 Xvnc SIGALRM 3 -2791 wclientd 2791 wclientd SIGUSR1 2 -30385 ifconfig 30384 sh SIGCHLD 1 -30384 sh 2802 wcstatusd SIGCHLD 1 -30387 mii-tool 30386 sh SIGCHLD 1 -30386 sh 2802 wcstatusd SIGCHLD 1 -30388 lspci 2802 wcstatusd SIGCHLD 1 -30389 sh 2802 wcstatusd SIGCHLD 1 -30391 ifconfig 25273 Xvnc SIGALRM 1 -30391 ifconfig 30390 sh SIGCHLD 1 -30390 sh 2802 wcstatusd SIGCHLD 1 -30393 mii-tool 30392 sh SIGCHLD 1 -30392 sh 2802 wcstatusd SIGCHLD 1 diff --git a/examples/sig_count_by_proc.stp b/examples/sig_count_by_proc.stp deleted file mode 100755 index 15c31a63..00000000 --- a/examples/sig_count_by_proc.stp +++ /dev/null @@ -1,36 +0,0 @@ -#! stap - -# Copyright (C) 2006 IBM Corp. -# -# This file is part of systemtap, and is free software. You can -# redistribute it and/or modify it under the terms of the GNU General -# Public License (GPL); either version 2, or (at your option) any -# later version. - -# -# Print signal counts by process name in descending order. -# - -global sigcnt, pid2name, sig2name - -probe begin { - print("Collecting data... Type Ctrl-C to exit and display results\n") -} - -probe signal.send -{ - sigcnt[execname(), pid_name, sig]++ - - if (!(sig in sig2name)) sig2name[sig] = sig_name -} - -probe end -{ - printf("%-16s %-16s %-16s %s\n", - "SENDER", "RECEIVER", "SIGNAL", "COUNT") - - foreach ([snd_name, rcv_name, sig_num] in sigcnt-) - printf("%-16s %-16s %-16s %d\n", - snd_name, rcv_name, sig2name[sig_num], - sigcnt[snd_name, rcv_name, sig_num]) -} diff --git a/examples/sig_count_by_proc.txt b/examples/sig_count_by_proc.txt deleted file mode 100644 index 1c9078e6..00000000 --- a/examples/sig_count_by_proc.txt +++ /dev/null @@ -1,20 +0,0 @@ -# stap sig_count_by_proc.stp -Collecting data... Type Ctrl-C to exit and display results -^C -SENDER RECEIVER SIGNAL COUNT -swapper Xvnc SIGALRM 448 -sh wcstatusd SIGCHLD 318 -ifconfig sh SIGCHLD 106 -mii-tool sh SIGCHLD 106 -lspci wcstatusd SIGCHLD 106 -automount automount SIGCHLD 14 -swapper automount SIGALRM 13 -swapper syslogd SIGALRM 7 -swapper sendmail SIGALRM 2 -sendmail sendmail SIGCHLD 2 -lspci Xvnc SIGALRM 2 -ifconfig automount SIGALRM 1 -sh Xvnc SIGALRM 1 -xterm staprun SIGINT 1 -xterm stap SIGINT 1 - -- cgit