Defintion of CONTEXT

Frank Ch. Eigler fche@redhat.com
Fri Aug 3 16:50:00 GMT 2012


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



More information about the Systemtap mailing list