summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples
diff options
context:
space:
mode:
authordsmith <dsmith>2007-06-14 14:48:56 +0000
committerdsmith <dsmith>2007-06-14 14:48:56 +0000
commit9861ce16e993592ca39095a6884e775917e3cd1a (patch)
tree7bec65bc4e0f1f016c1fa5eda999a0e340e5fde6 /testsuite/systemtap.samples
parent0cb57f93085877aee6fc4464f401018709eb4646 (diff)
downloadsystemtap-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.
Diffstat (limited to 'testsuite/systemtap.samples')
-rw-r--r--testsuite/systemtap.samples/profile.stp6
1 files changed, 3 insertions, 3 deletions
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
}
}