diff options
author | dsmith <dsmith> | 2007-06-14 14:48:56 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2007-06-14 14:48:56 +0000 |
commit | 9861ce16e993592ca39095a6884e775917e3cd1a (patch) | |
tree | 7bec65bc4e0f1f016c1fa5eda999a0e340e5fde6 | |
parent | 0cb57f93085877aee6fc4464f401018709eb4646 (diff) | |
download | systemtap-steved-9861ce16e993592ca39095a6884e775917e3cd1a.tar.gz systemtap-steved-9861ce16e993592ca39095a6884e775917e3cd1a.tar.xz systemtap-steved-9861ce16e993592ca39095a6884e775917e3cd1a.zip |
2007-06-14 David Smith <dsmith@redhat.com>
* systemtap.samples/profile.stp: Change output to avoid problems
when kernel source path is long.
-rw-r--r-- | testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | testsuite/systemtap.samples/profile.stp | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index 7f6eadb3..2cc3b0ba 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-06-14 David Smith <dsmith@redhat.com> + + * systemtap.samples/profile.stp: Change output to avoid problems + when kernel source path is long. + 2007-06-05 Frank Ch. Eigler <fche@elastic.org> PR 3331. diff --git a/testsuite/systemtap.samples/profile.stp b/testsuite/systemtap.samples/profile.stp index d8d5b7c5..880bd14a 100644 --- a/testsuite/systemtap.samples/profile.stp +++ b/testsuite/systemtap.samples/profile.stp @@ -30,9 +30,9 @@ probe timer.ms(5000) { } probe end { foreach ([pid,syscall] in syscall_count-) { - log (command[pid] . "(" . sprint(pid) . ") " . syscall . - " count=" . sprint(syscall_count[pid,syscall]) . - " ttime=" . sprint(syscall_times[pid,syscall])) + printf("%s(%d) %s count=%d ttime=%d\n", command[pid], pid, syscall, + syscall_count[pid,syscall], syscall_times[pid,syscall]) + if (count++ > 30) next } } |