summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobb Romans <robb@linux.vnet.ibm.com>2009-09-09 11:49:19 -0500
committerRobb Romans <robb@linux.vnet.ibm.com>2009-09-09 15:24:49 -0500
commiteaec8e2b4cf10fc293a0cb2524692ae25a810ec9 (patch)
tree0270d9f2e4d7e6c65e7af518ada0aee9ba125c68
parent0f99bb4fc41f9b81f2bea9cf637d942898d3d3af (diff)
downloadsystemtap-steved-eaec8e2b4cf10fc293a0cb2524692ae25a810ec9.tar.gz
systemtap-steved-eaec8e2b4cf10fc293a0cb2524692ae25a810ec9.tar.xz
systemtap-steved-eaec8e2b4cf10fc293a0cb2524692ae25a810ec9.zip
Update marker probe information in Language Reference.
Signed-off-by: Robb Romans <robb@linux.vnet.ibm.com>
-rw-r--r--doc/langref.tex56
1 files changed, 38 insertions, 18 deletions
diff --git a/doc/langref.tex b/doc/langref.tex
index 92081730..aa583c2e 100644
--- a/doc/langref.tex
+++ b/doc/langref.tex
@@ -911,26 +911,46 @@ function, use \textbf{.statement} probes. Do not use wildcards in
to not register. Also, run statement probes in guru mode only.
-\begin{comment}
\subsection{Marker probes}
+\index{marker probes}
+This family of probe points connects to static probe markers inserted
+into the kernel or a module. These markers are special macro calls in
+the kernel that make probing faster and more reliable than with
+DWARF-based probes. DWARF debugging information is not required to
+use probe markers.
+
+Marker probe points begin with a \texttt{kernel} prefix which
+identifies the source of the symbol table used for finding
+markers. The suffix names the marker itself:
+\texttt{mark.("MARK")}. The marker name string, which can contain
+wildcard characters, is matched against the names given to the marker
+macros when the kernel or module is compiled. Optionally, you can
+specify \texttt{format("FORMAT")}. Specifying the marker format
+string allows differentiation between two markers with the same name
+but different marker format strings.
+
+The handler associated with a marker probe reads any optional
+parameters specified at the macro call site named \texttt{\$arg1}
+through \texttt{\$argNN}, where \texttt{NN} is the number of
+parameters supplied by the macro. Number and string parameters are
+passed in a type-safe manner.
+
+The marker format string associated with a marker is available in
+\texttt{\$format}. The marker name string is available in
+\texttt{\$name}.
+
+Here are the marker probe constructs:
+\begin{vindent}
+\begin{verbatim}
+kernel.mark("MARK")
+kernel.mark("MARK").format("FORMAT")
+\end{verbatim}
+\end{vindent}
+
+For more information about marker probes, see
+\url{http://sourceware.org/systemtap/wiki/UsingMarkers}.
+
-This family of probe points connects to static probe markers inserted into
-the kernel or a module. These markers are special macro calls in the kernel
-that make probing faster and more reliable than with DWARF-based probes.
-DWARF debugging information is not required to use probe markers.
-
-Marker probe points begin with a kernel or module(\char`\"{}\emph{name}\char`\"{})
-prefix, the same as DWARF probes. This prefix identifies the source of the
-symbol table used for finding markers. The suffix names the marker itself:
-mark(\char`\"{}\emph{name}\char`\"{}). The marker name string, which may
-contain wildcard characters, is matched against the names given to the marker
-macros when the kernel or module was compiled.
-
-The handler associated with a marker probe reads any optional parameters
-specified at the macro call site named \$arg1 through \$argNN, where NN is
-the number of parameters supplied by the macro. Number and string parameters
-are passed in a type-safe manner.
-\end{comment}
\subsection{Timer probes}
\index{timer probes}