summaryrefslogtreecommitdiffstats
path: root/tapset/timestamp.stp
diff options
context:
space:
mode:
authorfche <fche>2005-09-03 16:52:41 +0000
committerfche <fche>2005-09-03 16:52:41 +0000
commit6a505121fc997e6f21d26f8c8656f99e58faaaab (patch)
treea40bb598454cf046c55c54ddfb46f83492fbdcb9 /tapset/timestamp.stp
parentd9e1dc7a03b0341bc924ba4a008a31676dbc9510 (diff)
downloadsystemtap-steved-6a505121fc997e6f21d26f8c8656f99e58faaaab.tar.gz
systemtap-steved-6a505121fc997e6f21d26f8c8656f99e58faaaab.tar.xz
systemtap-steved-6a505121fc997e6f21d26f8c8656f99e58faaaab.zip
2005-09-03 Frank Ch. Eigler <fche@elastic.org>
PR 1292, by popular request. * parse.cxx (parse_functiondecl): Allow optional value/param type declarations. * stap.1.in: Document this. * tapset/*.stp: Convert most functions accordingly. * testsuite/parseok/twelve.stp, semok/seven.stp, semko/twenty.stp: Test this.
Diffstat (limited to 'tapset/timestamp.stp')
-rw-r--r--tapset/timestamp.stp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset/timestamp.stp b/tapset/timestamp.stp
index f8e1ea4e..b71841d4 100644
--- a/tapset/timestamp.stp
+++ b/tapset/timestamp.stp
@@ -3,14 +3,14 @@
%}
// return in milliseconds since epoch
-function gettimeofday_ms () %{
+function gettimeofday_ms:long () %{
struct timeval tm;
do_gettimeofday (& tm);
THIS->__retvalue = (tm.tv_sec * 1000) + (tm.tv_usec / 1000);
%}
// return in seconds since epoch
-function gettimeofday_s () %{
+function gettimeofday_s:long () %{
struct timeval tm;
do_gettimeofday (& tm);
THIS->__retvalue = tm.tv_sec;