diff options
author | hiramatu <hiramatu> | 2007-09-27 16:28:28 +0000 |
---|---|---|
committer | hiramatu <hiramatu> | 2007-09-27 16:28:28 +0000 |
commit | ff0dba8fb7c752a10d64258d3cc1350893139929 (patch) | |
tree | f80ecb5a1ab79d46ad9c18ad42abd1f473026f16 /testsuite/systemtap.samples/gtod.stp | |
parent | 5e4c160908b88e1272ec09f2c88d7612ce82b7c8 (diff) | |
download | systemtap-steved-ff0dba8fb7c752a10d64258d3cc1350893139929.tar.gz systemtap-steved-ff0dba8fb7c752a10d64258d3cc1350893139929.tar.xz systemtap-steved-ff0dba8fb7c752a10d64258d3cc1350893139929.zip |
2007-09-27 Masami Hiramatsu <mhiramat@redhat.com>
PR3916
* systemtap.sample/gtod.*: New test for gettimeofday accuracy.
Diffstat (limited to 'testsuite/systemtap.samples/gtod.stp')
-rw-r--r-- | testsuite/systemtap.samples/gtod.stp | 8 |
1 files changed, 8 insertions, 0 deletions
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 ++; + } +} |