|
From: Philippe W. <phi...@sk...> - 2014-01-09 21:26:27
|
On Thu, 2014-01-09 at 19:40 +0530, Subhashish Pradhan wrote: > Hello! > > > I have some theoretical queries. What does "teaching valgrind some > syscalls" mean? > > > What are the read and write primitives of valgrind and where are they > handled? Basically, 'teaching a (new) syscall to valgrind' means to write a wrapper for this syscall. The wrapper describes the effect of the syscall (typically, for memcheck, describes what memory is read by the syscall, and what memory is written by the syscall). The easiest to undersatnd all that is to look at some existing wrappers e.g. in coregrind/m_syswrap/syswrap-generic.c Philippe NB: valgrind-developers might have been a better mailing list for this question, as writing a syscall wrapper is more a valgrind dev activity. |