- SystemTap colors can now be turned off by simply setting
SYSTEMTAP_COLORS to be empty, rather than having to make it invalid.
-- There is a new context tapset function, pplabel(), which returns the
+- There is a new context tapset function, pnlabel(), which returns the
name of the label which fired.
* What's new in version 2.4, 2013-11-06
%}
/**
- * sfunction pplabel - Returns the label name parsed from the probe name
+ * sfunction pnlabel - Returns the label name parsed from the probe name
*
- * Description: This returns the label name from the active probe name.
- * Context: The current probe name.
+ * Description: This returns the label name as parsed from the
+ * script-level probe point. This function will only work if called
+ * directly from the body of a '.label' probe point (i.e. no aliases).
+ * Context: The current probe point.
*/
-function pplabel:string ()
+function pnlabel:string ()
%{ /* pure */ /* unprivileged */
char *ptr, *start;
probe process(\"labels.x\").function(\"main@labels.c\").label(\"init_*\") {printf (\"VARS %s\\n\",\$\$vars)}
probe process(\"labels.x\").function(\"main@labels.c\").label(\"ptr_inited\") {printf (\"VARS %s\\n\",\$\$vars)}
probe process(\"labels.x\").function(\"main@labels.c\").label(\"init_an_int\") {printf (\"init_an_int\\n\")}
-probe process(\"labels.x\").function(\"*\").label(\"*\") {printf (\"label=%s\\n\", pplabel())}
+probe process(\"labels.x\").function(\"*\").label(\"*\") {printf (\"label=%s\\n\", pnlabel())}
"
close $fp