mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
Added documentation for PRINT() macro in syscall wrappers.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7969
This commit is contained in:
parent
829c08bedc
commit
60210b24d7
@ -63,10 +63,12 @@ The wrapper for the time system call looks like this:
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user