Using kernel global variables

Frank Ch. Eigler fche@redhat.com
Mon Aug 6 19:58:00 GMT 2007


Mike Mason <mmlnx@us.ibm.com> writes:

> I believe the variable must be within the *scope* of the probed
> function.  The function doesn't necessarily have to use the variable
> for it to be within scope.  A global defined in the same file as the
> function is automatically within scope.

Or even *declared* in the same compilation unit - that should work too.

> I don't think exported symbols are within a function's scope from
> SystemTap's perspective [...]

We could change things to search for globals in other compilation
units too - exported ones first, static ones next (with the obvious
risk of name collisions).

- FChE



More information about the Systemtap mailing list