From 9861ce16e993592ca39095a6884e775917e3cd1a Mon Sep 17 00:00:00 2001 From: dsmith Date: Thu, 14 Jun 2007 14:48:56 +0000 Subject: 2007-06-14 David Smith * systemtap.samples/profile.stp: Change output to avoid problems when kernel source path is long. --- testsuite/ChangeLog | 5 +++++ 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 + + * systemtap.samples/profile.stp: Change output to avoid problems + when kernel source path is long. + 2007-06-05 Frank Ch. Eigler 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 } } -- cgit