summaryrefslogtreecommitdiffstats
path: root/tapset/timestamp.stp
diff options
context:
space:
mode:
authorEugeniy Meshcheryakov <eugen@debian.org>2009-02-24 15:48:31 +0100
committerEugeniy Meshcheryakov <eugen@debian.org>2009-02-24 15:48:31 +0100
commitab421f562d14d1322b9197d9e23fcfbaf809fba3 (patch)
treea75fe2b3174ea14dd2538c075de13db898eb3fdf /tapset/timestamp.stp
parent4176d5b1f4bf25adb8e44eaae9e6ab1de5a2c806 (diff)
parentcfba34fccd99924a47622c5082706867f0a34b12 (diff)
downloadsystemtap-steved-ab421f562d14d1322b9197d9e23fcfbaf809fba3.tar.gz
systemtap-steved-ab421f562d14d1322b9197d9e23fcfbaf809fba3.tar.xz
systemtap-steved-ab421f562d14d1322b9197d9e23fcfbaf809fba3.zip
Merge branch 'master' of git+ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapset/timestamp.stp')
-rw-r--r--tapset/timestamp.stp43
1 files changed, 0 insertions, 43 deletions
diff --git a/tapset/timestamp.stp b/tapset/timestamp.stp
index 29763cb9..ce8f7558 100644
--- a/tapset/timestamp.stp
+++ b/tapset/timestamp.stp
@@ -7,10 +7,6 @@
// Public License (GPL); either version 2, or (at your option) any
// later version.
-%{
-#include <linux/time.h>
-%}
-
/**
* sfunction get_cycles - Processor cycle count.
*
@@ -21,43 +17,4 @@ function get_cycles:long () %{ /* pure */
THIS->__retvalue = (int64_t) c;
%}
-
-/**
- * sfunction gettimeofday_ns - Number of nanoseconds since UNIX epoch.
- *
- * Return the number of nanoseconds since the UNIX epoch.
- */
-function gettimeofday_ns:long () %{ /* pure */
- /* NOTE: we can't use do_gettimeofday because we could be called from a
- * context where xtime_lock is already held. See bug #2525. */
- THIS->__retvalue = _stp_gettimeofday_ns();
-%}
-
-/**
- * sfunction gettimeofday_us - Number of microseconds since UNIX epoch.
- *
- * Return the number of microseconds since the UNIX epoch.
- */
-function gettimeofday_us:long () {
- return gettimeofday_ns() / 1000;
-}
-
-/**
- * sfunction gettimeofday_ms - Number of milliseconds since UNIX epoch.
- *
- * Return the number of milliseconds since the UNIX epoch.
- */
-function gettimeofday_ms:long () {
- return gettimeofday_ns() / 1000000;
-}
-
-/**
- * sfunction gettimeofday_s - Number of seconds since UNIX epoch.
- *
- * Return the number of seconds since the UNIX epoch.
- */
-function gettimeofday_s:long () {
- return gettimeofday_ns() / 1000000000;
-}
-
// likewise jiffies, monotonic_clock ...