<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>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:::<br><br>we called the function<br>ptrace(PTRACE_PEEKUSER, pid, 4*ARM_ORIG_r0, NULL);<br><br>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.....<br>we get the message<br>'uregs' undeclared &lt;first use in this function&gt;<br>Now we didnt use uregs in our code...<br>this is in ptrace.h which was available in the kernel source code downloaded from kernel.org<br><br>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<br><br>Regards,<br>Syed Bilal Mehdi<br></td></tr></table><br>