This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]