From 2cb3fe2688a7713dc7d5a396a4d31ab65f99513c Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Mon, 4 Aug 2008 16:24:12 -0400 Subject: Add $$vars, $$parms, $$locals --- doc/langref.tex | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/langref.tex') diff --git a/doc/langref.tex b/doc/langref.tex index e2c630d4..a1b694f6 100644 --- a/doc/langref.tex +++ b/doc/langref.tex @@ -779,6 +779,17 @@ may be repeated to follow additional levels of pointers. \texttt{\$var{[}N]} indexes into an array. The index is given with a literal number. +\texttt{\$\$vars} expands to a character string that is equivalent to +sprintf("parm1=\%x ... parmN=\%x var1=\%x ... varN=\%x", parm1, ..., parmN, +var1, ..., varN) + +\texttt{\$\$locals} expands to a character string that is equivalent to +sprintf("var1=\%x ... varN=\%x", var1, ..., varN) + +\texttt{\$\$parms} expands to a character string that is equivalent to +sprintf("parm1=\%x ... parmN=\%x", parm1, ..., parmN) + + \subsubsection{kernel.function, module().function} \index{kernel.function} \index{module().function} -- cgit From a4cc1d081ede55ed6c743147d62fcc3519f73a71 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 5 Aug 2008 11:24:27 -0400 Subject: typographical tweaks for embedded script code --- doc/langref.tex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/langref.tex') diff --git a/doc/langref.tex b/doc/langref.tex index a1b694f6..413ece4d 100644 --- a/doc/langref.tex +++ b/doc/langref.tex @@ -771,7 +771,7 @@ pointers, and arrays. \texttt{\$var} refers to an in-scope variable var. If it is a type similar to an integer, it will be cast to a 64-bit integer for script use. Pointers similar to a string (char {*}) are copied to SystemTap string values by the -kernel\_string() or user\_string functions(). +\texttt{kernel\_string()} or \texttt{user\_string()} functions. \texttt{\$var->field} traverses a structure's field. The indirection operator may be repeated to follow additional levels of pointers. @@ -780,14 +780,14 @@ may be repeated to follow additional levels of pointers. number. \texttt{\$\$vars} expands to a character string that is equivalent to -sprintf("parm1=\%x ... parmN=\%x var1=\%x ... varN=\%x", parm1, ..., parmN, -var1, ..., varN) +\texttt{sprintf("parm1=\%x ... parmN=\%x var1=\%x ... varN=\%x", \$parm1, ..., \$parmN, +\$var1, ..., \$varN)} \texttt{\$\$locals} expands to a character string that is equivalent to -sprintf("var1=\%x ... varN=\%x", var1, ..., varN) +\texttt{sprintf("var1=\%x ... varN=\%x", \$var1, ..., \$varN)} \texttt{\$\$parms} expands to a character string that is equivalent to -sprintf("parm1=\%x ... parmN=\%x", parm1, ..., parmN) +\texttt{sprintf("parm1=\%x ... parmN=\%x", \$parm1, ..., \$parmN)} \subsubsection{kernel.function, module().function} -- cgit