summaryrefslogtreecommitdiffstats
path: root/tapset/marker.stp
blob: 593ffaeaf76e0016765950bb99092d362c8db1fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 */
%}