diff options
author | William Cohen <wcohen@redhat.com> | 2008-12-09 11:20:11 -0500 |
---|---|---|
committer | William Cohen <wcohen@redhat.com> | 2008-12-09 11:20:11 -0500 |
commit | 4ffc629674ac7d1d84b93cb7fdca71953983f762 (patch) | |
tree | dca338602903ba87b69592b40faa35ca74b7966e /testsuite/systemtap.examples/process/sig_by_pid.stp | |
parent | 73dc0c77745ee09db15542c14f7e048f91e121e6 (diff) | |
download | systemtap-steved-4ffc629674ac7d1d84b93cb7fdca71953983f762.tar.gz systemtap-steved-4ffc629674ac7d1d84b93cb7fdca71953983f762.tar.xz systemtap-steved-4ffc629674ac7d1d84b93cb7fdca71953983f762.zip |
Tweak formatting, indent two space.
Diffstat (limited to 'testsuite/systemtap.examples/process/sig_by_pid.stp')
-rwxr-xr-x | testsuite/systemtap.examples/process/sig_by_pid.stp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/testsuite/systemtap.examples/process/sig_by_pid.stp b/testsuite/systemtap.examples/process/sig_by_pid.stp index 9c1493f5..80bf6294 100755 --- a/testsuite/systemtap.examples/process/sig_by_pid.stp +++ b/testsuite/systemtap.examples/process/sig_by_pid.stp @@ -14,29 +14,29 @@ global sigcnt, pid2name, sig2name probe begin { - print("Collecting data... Type Ctrl-C to exit and display results\n") + print("Collecting data... Type Ctrl-C to exit and display results\n") } probe signal.send { - snd_pid = pid() - rcv_pid = sig_pid + snd_pid = pid() + rcv_pid = sig_pid - sigcnt[snd_pid, rcv_pid, sig]++ + sigcnt[snd_pid, rcv_pid, sig]++ - if (!(snd_pid in pid2name)) pid2name[snd_pid] = execname() - if (!(rcv_pid in pid2name)) pid2name[rcv_pid] = pid_name - if (!(sig in sig2name)) sig2name[sig] = sig_name + if (!(snd_pid in pid2name)) pid2name[snd_pid] = execname() + if (!(rcv_pid in pid2name)) pid2name[rcv_pid] = pid_name + if (!(sig in sig2name)) sig2name[sig] = sig_name } probe end { - printf("%-8s %-16s %-5s %-16s %-16s %s\n", - "SPID", "SENDER", "RPID", "RECEIVER", "SIGNAME", "COUNT") - - foreach ([snd_pid, rcv_pid, sig_num] in sigcnt-) { - printf("%-8d %-16s %-5d %-16s %-16s %d\n", - snd_pid, pid2name[snd_pid], rcv_pid, pid2name[rcv_pid], - sig2name[sig_num], sigcnt[snd_pid, rcv_pid, sig_num]) - } + printf("%-8s %-16s %-5s %-16s %-16s %s\n", + "SPID", "SENDER", "RPID", "RECEIVER", "SIGNAME", "COUNT") + + foreach ([snd_pid, rcv_pid, sig_num] in sigcnt-) { + printf("%-8d %-16s %-5d %-16s %-16s %d\n", + snd_pid, pid2name[snd_pid], rcv_pid, pid2name[rcv_pid], + sig2name[sig_num], sigcnt[snd_pid, rcv_pid, sig_num]) + } } |