From faaa0db717917bd09a3c21baf71af40a2cc52738 Mon Sep 17 00:00:00 2001 From: jistone Date: Wed, 20 Sep 2006 21:01:56 +0000 Subject: 2006-09-20 Josh Stone PR 3233 ./ * stapfuncs.5.in: Document new gettimeofday_ns. runtime/ * time.c (stp_time_t): Use ns for the base time, and freq is now kHz. (__stp_estimate_cpufreq): Compute kHz instead of MHz. (__stp_time_timer_callback, __stp_init_time): Compute base in ns. (__stp_time_cpufreq_callback): Record kHz instead of MHz. (_stp_init_time): Record kHz, and disable preemption to avoid a race in the cpufreq notifier. (_stp_gettimeofday_ns): Converted from _stp_gettimeofday_us. tapset/ * timestamp.stp (gettimeofday_ns): New function (gettimeofday_us, gettimeofday_ms, gettimeofday_s): Use gettimeofday_ns as the base unit. testsuite/ * buildok/timestamp.stp: add gettimeofday_ns test. --- testsuite/ChangeLog | 5 +++++ testsuite/buildok/timestamp.stp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'testsuite') diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index ed66dded..57f1b29d 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-09-20 Josh Stone + + PR 3233 + * buildok/timestamp.stp: add gettimeofday_ns test. + 2006-09-12 David Smith * Added .cvsignore file. diff --git a/testsuite/buildok/timestamp.stp b/testsuite/buildok/timestamp.stp index e071e781..4d6b8532 100755 --- a/testsuite/buildok/timestamp.stp +++ b/testsuite/buildok/timestamp.stp @@ -1,6 +1,6 @@ #! stap -p4 probe begin { - log(sprint(get_cycles() + gettimeofday_us() + + log(sprint(get_cycles() + gettimeofday_ns() + gettimeofday_us() + gettimeofday_ms() + gettimeofday_s())) } -- cgit