]> sourceware.org Git - systemtap.git/commitdiff
probe timer.profile: document new timer.profile.tick, new behavour of timer.profile
authorSerguei Makarov <smakarov@redhat.com>
Fri, 10 May 2013 20:48:06 +0000 (16:48 -0400)
committerSerguei Makarov <smakarov@redhat.com>
Fri, 10 May 2013 20:49:04 +0000 (16:49 -0400)
doc/langref.tex
man/stapprobes.3stap
tapset/timers.stp

index 9494c5a768cc914c3e52fea66fd37edafab52a0d..8145dda2b35481c2cabd558ab951e182188d04c1 100644 (file)
@@ -1646,12 +1646,18 @@ at each system tick. This probe takes no parameters, as follows.
 
 \begin{vindent}
 \begin{verbatim}
-timer.profile
+timer.profile.tick
 \end{verbatim}
 \end{vindent}
 Full context information of the interrupted process is available, making
 this probe suitable for implementing a time-based sampling profiler.
 
+It is recommended to use the tapset probe \verb+timer.profile+ rather
+than \verb+timer.profile.tick+. This probe point behaves identically
+to \verb+timer.profile.tick+ when the underlying functionality is
+available, and falls back to using \verb+perf.sw.cpu_clock+ on some
+recent kernels which lack the profile timer facility entirely.
+
 The following is an example of timer usage.
 
 \begin{vindent}
index 6e2d1bbc851403652610d215fab856cdc9a43af8..3969093416bae3892b4f4fa30b11f49f3dab1c77 100644 (file)
@@ -293,11 +293,18 @@ disabled facility, resulting in error \-16 (EBUSY) during probe
 registration.
 
 .SAMPLE
-timer.profile
+timer.profile.tick
 .ESAMPLE
 
 Full context information of the interrupted process is available, making
 this probe suitable for a time-based sampling profiler.
+.PP
+It is recommended to use the tapset probe
+.IR timer.profile
+rather than timer.profile.tick. This probe point behaves identically
+to timer.profile.tick when the underlying functionality is available,
+and falls back to using perf.sw.cpu_clock on some recent kernels which
+lack the corresponding profile timer facility.
 
 .SS DWARF
 
index 770a40ee4ff45465064f0d4cf1be464e3c0ffa05..8b397bdeaf673f45177e3d916201101460db958a 100644 (file)
 // however, timer.profile needs to fall back to perf in certain
 // circumstances.
 
+/**
+ * probe timer.profile - timer.profile.tick with a perf fallback on recent kernels
+ *
+ * This probe behaves identically to timer.profile.tick, except on
+ * some recent kernels which lack the underlying profile timer
+ * functionality. In those cases, timer.profile falls back to using
+ * perf.sw.cpu_clock. */
 probe timer.profile = timer.profile.tick ! , perf.sw.cpu_clock.sample(1000000) {}
This page took 0.035442 seconds and 5 git commands to generate.