From 04844b33aa61f84c90b14be204f3a3d70a914e0c Mon Sep 17 00:00:00 2001 From: William Cohen Date: Wed, 10 Dec 2008 15:05:00 -0500 Subject: Format tweaks. --- testsuite/systemtap.examples/ChangeLog | 5 +++++ testsuite/systemtap.examples/process/futexes.stp | 2 +- testsuite/systemtap.examples/profiling/thread-times.stp | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'testsuite/systemtap.examples') diff --git a/testsuite/systemtap.examples/ChangeLog b/testsuite/systemtap.examples/ChangeLog index 810df78c..5b5aced3 100644 --- a/testsuite/systemtap.examples/ChangeLog +++ b/testsuite/systemtap.examples/ChangeLog @@ -1,3 +1,8 @@ +2008-12-10 William Cohen + + * process/futexes.stp: + * profiling/thread-times.stp: Tweak formatting. + 2008-12-10 Tim Moore * profiling/latencytap.stp: Probe scheduler to identify processes diff --git a/testsuite/systemtap.examples/process/futexes.stp b/testsuite/systemtap.examples/process/futexes.stp index 0bd63262..d10a6a0b 100755 --- a/testsuite/systemtap.examples/process/futexes.stp +++ b/testsuite/systemtap.examples/process/futexes.stp @@ -11,7 +11,7 @@ global lock_waits # long-lived stats on (tid,lock) blockage elapsed time global process_names # long-lived pid-to-execname mapping probe syscall.futex { - if (op != FUTEX_WAIT) next # we don't care about originators of WAKE events + if (op != FUTEX_WAIT) next # don't care about WAKE event originator t = tid () process_names[pid()] = execname() thread_thislock[t] = $uaddr 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 -- cgit From 54c3cf05a6e0c377973bd75ed97bd71eb8586577 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 2 Jan 2009 10:38:49 +0100 Subject: PR9693. Add #! /usr/bin/env stap line for traceio2 and functioncallcount. --- testsuite/systemtap.examples/ChangeLog | 6 ++++++ testsuite/systemtap.examples/io/traceio2.stp | 2 ++ testsuite/systemtap.examples/profiling/functioncallcount.stp | 1 + 3 files changed, 9 insertions(+) (limited to 'testsuite/systemtap.examples') diff --git a/testsuite/systemtap.examples/ChangeLog b/testsuite/systemtap.examples/ChangeLog index 5b5aced3..253e1a76 100644 --- a/testsuite/systemtap.examples/ChangeLog +++ b/testsuite/systemtap.examples/ChangeLog @@ -1,3 +1,9 @@ +2009-01-02 Mark Wielaard + + PR9693. Reported by Eugeniy Meshcheryakov + * io/traceio2.stp: Add proper #! /usr/bin/env stap line. + * profiling/functioncallcount.stp: Likewise. + 2008-12-10 William Cohen * process/futexes.stp: diff --git a/testsuite/systemtap.examples/io/traceio2.stp b/testsuite/systemtap.examples/io/traceio2.stp index 032edcd9..1abea45d 100755 --- a/testsuite/systemtap.examples/io/traceio2.stp +++ b/testsuite/systemtap.examples/io/traceio2.stp @@ -1,3 +1,5 @@ +#! /usr/bin/env stap + global device_of_interest, dev probe begin { 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: # -- cgit