This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Defintion of CONTEXT
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: Domenico Di Leo <domenico dot dileo at unina dot it>
- Cc: systemtap at sourceware dot org
- Date: Fri, 03 Aug 2012 12:49:54 -0400
- Subject: Re: Defintion of CONTEXT
- References: <501BFC07.6010403@unina.it>
Domenico Di Leo <domenico.dileo@unina.it> writes:
> in several stp scripts, files .c and .h appear the variable CONTEXT,
> I would like to take at look at its definition,
> I guess it is a struct, but where is it defined?
CONTEXT is a pointer into a "struct context[]" array, which is a place
to store sizeable local variables for the currently running
probe/function. Such locals are stored on the heap rather than on the
(scarce) kernel stack.
- FChE