Using kernel global variables
David Wilder
dwilder@us.ibm.com
Thu Aug 9 07:03:00 GMT 2007
Frank Ch. Eigler wrote:
> 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
>
If we could specify that the variable was global it would eliminate the
chance of name collision.
More information about the Systemtap
mailing list