about syscallent.h and syscall.h
Dmitry V. Levin
ldv at altlinux.org
Mon Feb 13 12:38:02 UTC 2006
On Mon, Feb 13, 2006 at 06:26:36PM +0000, sean yang wrote:
> I am very interested in strace and want to modify it a bit(to investigate a
> little more information when intercept a system call) for my own debugging
> purpose. I am looking at the code in strace-4.5.14. I found there are two
> files syscall.h and syscallent.h under strace-4.5.14/linux. system calls in
> syscallent.h are a subset of system calls in syscall.h
> I understood that syscallent.h gives the system calls being "intercepted
> and processed". However, what does strace do to the system calls not
> included in syscallent.h but included in syscall.h? For example,
> sys_gethostname? I can see the processing routine for sys_gethostname in
The syscall.h file just contains function prototypes.
It defines no syscall processing.
syscallent*.h files define translation tables, see syscall.c for details.
There is a raw deparser, printargs(), which is used e.g. in raw mode and
for some syscalls.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the Strace-devel