This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH v2] Tracepoint Tapset for Memory Subsystem
> [...]
>> +#Function to get the call_site for kprobe based kfree probe.
>> +
>> +function call_site:long ()
>> +%{
>> + int *ptr ;
>> + ptr = __builtin_return_address(0);
>> + THIS->__retvalue = *ptr;
>> +%}
> [...]
This is not reliable and should be avoided. When PR6961 & PR6580 are
figured out, this should be directly available as caller_addr() or
perhaps stack(2).
- FChE