diff options
author | fche <fche> | 2008-02-27 23:11:19 +0000 |
---|---|---|
committer | fche <fche> | 2008-02-27 23:11:19 +0000 |
commit | a20617af34e3dbeba682cfa6bf6366f3fc0f8e14 (patch) | |
tree | cd840323c6adb32af3f5fa8136a396a3a4f8562b /doc/tutorial/timer-jiffies.stp | |
parent | 9a5de18784b77de82e5121861fac892c2d4d2630 (diff) | |
download | systemtap-steved-a20617af34e3dbeba682cfa6bf6366f3fc0f8e14.tar.gz systemtap-steved-a20617af34e3dbeba682cfa6bf6366f3fc0f8e14.tar.xz systemtap-steved-a20617af34e3dbeba682cfa6bf6366f3fc0f8e14.zip |
PR5697: include tutorial & language reference guide
Diffstat (limited to 'doc/tutorial/timer-jiffies.stp')
-rw-r--r-- | doc/tutorial/timer-jiffies.stp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/tutorial/timer-jiffies.stp b/doc/tutorial/timer-jiffies.stp new file mode 100644 index 00000000..d5e92e4a --- /dev/null +++ b/doc/tutorial/timer-jiffies.stp @@ -0,0 +1,10 @@ +global count_jiffies, count_ms +probe timer.jiffies(100) { count_jiffies ++ } +probe timer.ms(100) { count_ms ++ } +probe timer.ms(12345) +{ + hz=(1000*count_jiffies) / count_ms + printf ("jiffies:ms ratio %d:%d => CONFIG_HZ=%d\n", + count_jiffies, count_ms, hz) + exit () +} |