From 602149dadba5e74e6de8b5a172a64b13dcce6f1d Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 22 Feb 2006 18:19:11 +0000 Subject: 2006-02-22 Frank Ch. Eigler * stapfuncs.5.in: Document get_cycles(). * testsuite/buildok/timestamp.stp: Build it and its friends. 2006-02-22 Frank Ch. Eigler * timestamp.stp (get_cycles): New function. --- testsuite/buildok/timestamp.stp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 testsuite/buildok/timestamp.stp (limited to 'testsuite/buildok/timestamp.stp') diff --git a/testsuite/buildok/timestamp.stp b/testsuite/buildok/timestamp.stp new file mode 100755 index 00000000..f273262f --- /dev/null +++ b/testsuite/buildok/timestamp.stp @@ -0,0 +1,6 @@ +#! stap -p4 + +probe begin { + log(string(get_cycles() + gettimeofday_us() + + gettimeofday_ms() + gettimeofday_s())) +} -- cgit