On Tue, 28 Sep 2004 23:07:51 -0700 (PDT), cvraman <cvr250@xxxxxxxxx> wrote: > I came to know that eax register contains the system call number when it > is calling system call but when I am printing the eax register using ptrace > utility by monitoring another process, I am getting some random numbers in > sequence like 107603 107603 107603 2 2 2 2 3 3 3 111111...... Just to clarify (since nobody else did) it looks like you're trying to print eax from userspace and expecting that to contain a value put there by the kernel's system call handler. The correct approach here is to use strace to trace system calls used. Cheers, Jon. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/