diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2008-09-09 16:02:21 -0400 |
---|---|---|
committer | Masami Hiramatsu <mhiramat@redhat.com> | 2008-09-09 16:02:21 -0400 |
commit | bc54e71c6747fa2c234737d3a715b0decc3663b2 (patch) | |
tree | e522016f68ceadb254583de1a6d90391411f3508 /tapset/marker.stp | |
parent | 901a409a01da22778ea15f7b9f938885bdc38847 (diff) | |
download | systemtap-steved-bc54e71c6747fa2c234737d3a715b0decc3663b2.tar.gz systemtap-steved-bc54e71c6747fa2c234737d3a715b0decc3663b2.tar.xz systemtap-steved-bc54e71c6747fa2c234737d3a715b0decc3663b2.zip |
Add $name context variable support on marker probes
Diffstat (limited to 'tapset/marker.stp')
-rw-r--r-- | tapset/marker.stp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tapset/marker.stp b/tapset/marker.stp new file mode 100644 index 00000000..593ffaea --- /dev/null +++ b/tapset/marker.stp @@ -0,0 +1,22 @@ +// +// kernel marker tapset +// +// This file is part of systemtap, and is free software. You can +// redistribute it and/or modify it under the terms of the GNU General +// Public License (GPL); either version 2, or (at your option) any +// later version. + +/* marker-only context accessors */ + + +function _mark_name_get:string () %{ + strlcpy (THIS->__retvalue, + (CONTEXT->marker_name)?CONTEXT->marker_name:"", + MAXSTRINGLEN); /* pure */ +%} + +function _mark_format_get:string () %{ + strlcpy (THIS->__retvalue, + (CONTEXT->marker_format)?CONTEXT->marker_format:"", + MAXSTRINGLEN); /* pure */ +%} |