summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.examples/profiling
diff options
context:
space:
mode:
authorWilliam Cohen <wcohen@redhat.com>2008-12-09 11:20:11 -0500
committerWilliam Cohen <wcohen@redhat.com>2008-12-09 11:20:11 -0500
commit4ffc629674ac7d1d84b93cb7fdca71953983f762 (patch)
treedca338602903ba87b69592b40faa35ca74b7966e /testsuite/systemtap.examples/profiling
parent73dc0c77745ee09db15542c14f7e048f91e121e6 (diff)
downloadsystemtap-steved-4ffc629674ac7d1d84b93cb7fdca71953983f762.tar.gz
systemtap-steved-4ffc629674ac7d1d84b93cb7fdca71953983f762.tar.xz
systemtap-steved-4ffc629674ac7d1d84b93cb7fdca71953983f762.zip
Tweak formatting, indent two space.
Diffstat (limited to 'testsuite/systemtap.examples/profiling')
-rwxr-xr-xtestsuite/systemtap.examples/profiling/thread-times.stp40
1 files changed, 20 insertions, 20 deletions
diff --git a/testsuite/systemtap.examples/profiling/thread-times.stp b/testsuite/systemtap.examples/profiling/thread-times.stp
index 1aeb2037..007e23ed 100755
--- a/testsuite/systemtap.examples/profiling/thread-times.stp
+++ b/testsuite/systemtap.examples/profiling/thread-times.stp
@@ -1,13 +1,13 @@
#! /usr/bin/stap
probe timer.profile {
- tid=tid()
- if (!user_mode())
- kticks[tid] <<< 1
- else
- uticks[tid] <<< 1
- ticks <<< 1
- tids[tid] <<< 1
+ tid=tid()
+ if (!user_mode())
+ kticks[tid] <<< 1
+ else
+ uticks[tid] <<< 1
+ ticks <<< 1
+ tids[tid] <<< 1
}
global uticks, kticks, ticks
@@ -15,18 +15,18 @@ global uticks, kticks, ticks
global tids
probe timer.s(5), end {
- allticks = @count(ticks)
- printf ("%5s %7s %7s (of %d ticks)\n", "tid", "%user", "%kernel", allticks)
- foreach (tid in tids- limit 20) {
- uscaled = @count(uticks[tid])*10000/allticks
- kscaled = @count(kticks[tid])*10000/allticks
- printf ("%5d %3d.%02d%% %3d.%02d%%\n",
- tid, uscaled/100, uscaled%100, kscaled/100, kscaled%100)
- }
- printf("\n")
+ allticks = @count(ticks)
+ printf ("%5s %7s %7s (of %d ticks)\n", "tid", "%user", "%kernel", allticks)
+ foreach (tid in tids- limit 20) {
+ uscaled = @count(uticks[tid])*10000/allticks
+ kscaled = @count(kticks[tid])*10000/allticks
+ printf ("%5d %3d.%02d%% %3d.%02d%%\n",
+ tid, uscaled/100, uscaled%100, kscaled/100, kscaled%100)
+ }
+ printf("\n")
- delete uticks
- delete kticks
- delete ticks
- delete tids
+ delete uticks
+ delete kticks
+ delete ticks
+ delete tids
}