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: How do I trap the return of a function in a user space process?


Hello!

On Thu, Sep 5, 2013 at 1:36 PM, Martin Martin wrote:
> The following systemtap script fails to compile:
>
> probe process("myexe").function("myFun").return { print("hi mom\n") }
>
[...]
>
> I'm on Ubuntu 13.04, Linux 3.8.0-29-generic, system tap 2.1/0.153.
>

The Linux kernel 3.8 does not support uretprobes. I think you need to
use kernel 3.10+ for that or downgrade to older kernels with the
utrace patch applied.

Regards,
-agentzh


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