From: John R. <jr...@bi...> - 2020-01-26 02:49:37
|
On 1/25/20 5:28 PM, Ausitn Gadient wrote: > Hello! > > Is there a clean way to prevent Valgrind from adding instrumentation to wrapped functions? For example, if I have a wrapper for the libc function “read()”, I do not want to instrument “read()’s” code. Which tool(s) do you mean? valgrind is an "umbrella" program which runs several tools including memcheck (the default tool), helgrind, cachegrind, drd, lackey, massif, and a few experimental tools such as exp-bbv and others. What you are asking depends on the tool. In general, the answer is "No", but there may be exceptions depending on the tool. By its very nature, memcheck requires instrumenting EVERY SINGLE INSTRUCTION, and this is IMPOSSIBLE to change. |