Trouble with ptrace

Bilal Mehdi bilal.mehdi at yahoo.com
Thu Jan 15 15:03:35 CET 2009


Hi,

I have been trying to build a system call tracer pretty much similar to ftrace but with a little bit of modifications. I am having problems in cross-compiling the application.. Here is the exact problem:::

we called the function
ptrace(PTRACE_PEEKUSER, pid, 4*ARM_ORIG_r0, NULL);

now we used the argument "4*ORIG_r0" as a hit and trial shot. But the error we got was stranger than what we thought would be.....
we get the message
'uregs' undeclared <first use in this function>
Now we didnt use uregs in our code...
this is in ptrace.h which was available in the kernel source code downloaded from kernel.org

Please tell me if you know how to use ptrace for arm architecture ... and if you know any other way to use ptrace ... please tell

Regards,
Syed Bilal Mehdi



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/support/attachments/20090115/b373daa0/attachment.htm 


More information about the support mailing list