diff options
author | William Cohen <wcohen@redhat.com> | 2009-05-20 19:03:34 -0400 |
---|---|---|
committer | William Cohen <wcohen@redhat.com> | 2009-05-20 19:03:34 -0400 |
commit | c14aff52d5ec1f8a1326060b6378a973d3bb5b2a (patch) | |
tree | a6c5f4ce56a8367153cd2ed6399275fa0029422d /tapset | |
parent | 34029cd3afe690f8481f8921047ec39dc325d945 (diff) | |
parent | 4acb6884cdfa8205a60b203aa9e48ab79efd9ea2 (diff) | |
download | systemtap-steved-c14aff52d5ec1f8a1326060b6378a973d3bb5b2a.tar.gz systemtap-steved-c14aff52d5ec1f8a1326060b6378a973d3bb5b2a.tar.xz systemtap-steved-c14aff52d5ec1f8a1326060b6378a973d3bb5b2a.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapset')
-rw-r--r-- | tapset/timestamp_gtod.stp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/tapset/timestamp_gtod.stp b/tapset/timestamp_gtod.stp index 43b127dc..b916a3b1 100644 --- a/tapset/timestamp_gtod.stp +++ b/tapset/timestamp_gtod.stp @@ -7,23 +7,10 @@ // Public License (GPL); either version 2, or (at your option) any // later version. -function _gettimeofday_init:long() %{ - THIS->__retvalue = _stp_init_time(); /* Kick off the Big Bang. */ +%{ +#define STAP_NEED_GETTIMEOFDAY 1 %} -probe begin(-0x8000000000000000) { - if (_gettimeofday_init() != 0) - error("couldn't initialize gettimeofday") -} - -function _gettimeofday_kill() %{ - _stp_kill_time(); /* Go to a beach. Drink a beer. */ -%} - -probe end(0x7FFFFFFFFFFFFFFF), error(0x7FFFFFFFFFFFFFFF) { - _gettimeofday_kill() -} - /** * sfunction gettimeofday_ns - Number of nanoseconds since UNIX epoch. |