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



      
_______________________________________________
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support

Reply via email to