diff options
Diffstat (limited to 'testsuite/systemtap.examples/profiling')
-rwxr-xr-x | testsuite/systemtap.examples/profiling/functioncallcount.stp | 1 | ||||
-rwxr-xr-x | testsuite/systemtap.examples/profiling/thread-times.stp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/systemtap.examples/profiling/functioncallcount.stp b/testsuite/systemtap.examples/profiling/functioncallcount.stp index e393b612..9e9ec3fd 100755 --- a/testsuite/systemtap.examples/profiling/functioncallcount.stp +++ b/testsuite/systemtap.examples/profiling/functioncallcount.stp @@ -1,3 +1,4 @@ +#! /usr/bin/env stap # The following line command will probe all the functions # in kernel's memory management code: # diff --git a/testsuite/systemtap.examples/profiling/thread-times.stp b/testsuite/systemtap.examples/profiling/thread-times.stp index 007e23ed..cbe4118e 100755 --- a/testsuite/systemtap.examples/profiling/thread-times.stp +++ b/testsuite/systemtap.examples/profiling/thread-times.stp @@ -16,7 +16,8 @@ global tids probe timer.s(5), end { allticks = @count(ticks) - printf ("%5s %7s %7s (of %d ticks)\n", "tid", "%user", "%kernel", allticks) + 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 |