summaryrefslogtreecommitdiffstats
path: root/stapfuncs.5.in
diff options
context:
space:
mode:
authorjistone <jistone>2006-09-20 21:01:56 +0000
committerjistone <jistone>2006-09-20 21:01:56 +0000
commitfaaa0db717917bd09a3c21baf71af40a2cc52738 (patch)
tree01e4c47f1650b9d0af3684e7b34f61128652245f /stapfuncs.5.in
parent18c785eef991aae229e7416d1b5edfc9306fa3a7 (diff)
downloadsystemtap-steved-faaa0db717917bd09a3c21baf71af40a2cc52738.tar.gz
systemtap-steved-faaa0db717917bd09a3c21baf71af40a2cc52738.tar.xz
systemtap-steved-faaa0db717917bd09a3c21baf71af40a2cc52738.zip
2006-09-20 Josh Stone <joshua.i.stone@intel.com>
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.
Diffstat (limited to 'stapfuncs.5.in')
-rw-r--r--stapfuncs.5.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/stapfuncs.5.in b/stapfuncs.5.in
index 51cdddd8..bde9729b 100644
--- a/stapfuncs.5.in
+++ b/stapfuncs.5.in
@@ -90,6 +90,9 @@ Return 1 if string s1 contains string s2, returns 0 otherwise.
get_cycles:long ()
Return the processor cycle counter value, or 0 if unavailable.
.TP
+gettimeofday_ns:long ()
+Return the number of nanoseconds since the UNIX epoch.
+.TP
gettimeofday_us:long ()
Return the number of microseconds since the UNIX epoch.
.TP