From ff0dba8fb7c752a10d64258d3cc1350893139929 Mon Sep 17 00:00:00 2001 From: hiramatu Date: Thu, 27 Sep 2007 16:28:28 +0000 Subject: 2007-09-27 Masami Hiramatsu PR3916 * systemtap.sample/gtod.*: New test for gettimeofday accuracy. --- testsuite/systemtap.samples/gtod.stp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testsuite/systemtap.samples/gtod.stp (limited to 'testsuite/systemtap.samples/gtod.stp') diff --git a/testsuite/systemtap.samples/gtod.stp b/testsuite/systemtap.samples/gtod.stp new file mode 100644 index 00000000..f252dc0a --- /dev/null +++ b/testsuite/systemtap.samples/gtod.stp @@ -0,0 +1,8 @@ +global count = 0 + +probe syscall.setsid { + if (pid() == target()) { + printf("%014d :%02d kern\n", gettimeofday_us(), count); + count ++; + } +} -- cgit