|
From: <sv...@va...> - 2008-05-01 12:23:45
|
Author: bart
Date: 2008-05-01 13:23:48 +0100 (Thu, 01 May 2008)
New Revision: 7969
Log:
Added documentation for PRINT() macro in syscall wrappers.
Modified:
trunk/README_MISSING_SYSCALL_OR_IOCTL
Modified: trunk/README_MISSING_SYSCALL_OR_IOCTL
===================================================================
--- trunk/README_MISSING_SYSCALL_OR_IOCTL 2008-05-01 10:08:39 UTC (rev 7968)
+++ trunk/README_MISSING_SYSCALL_OR_IOCTL 2008-05-01 12:23:48 UTC (rev 7969)
@@ -63,10 +63,12 @@
}
}
-The first thing we do happens before the syscall occurs, in the PRE() function:
-tell the tool the return type of the syscall, that the syscall has one
-argument, the type of the argument and that the argument is being read from a
-register:
+The first thing we do happens before the syscall occurs, in the PRE() function.
+The PRE() function typically starts with invoking to the PRINT() macro. This
+PRINT() macro implements support for the --trace-syscalls command line option.
+Next, the tool is told the return type of the syscall, that the syscall has
+one argument, the type of the syscall argument and that the argument is being
+read from a register:
PRE_REG_READ1(long, "time", int *, t);
|