On 24/05/17 16:55, Rukhsana Ansari wrote: > Is there a mechanism in valgrind to entirely skip memcheck on a > particular function?
No, because it doesn't make any sense. In order for memcheck to work it needs to track the status of every individual bit of memory - as soon as code was allowed to run outside of memcheck changes could be made to memory that memcheck wouldn't know about and from then on all it's reports would be worthless. You would get false alerts about uninitialised memory where that memory had in fact been initialised while memcheck was disabled and wouldn't get alerts about memory that, for example, was freed during that period. Tom -- Tom Hughes (t...@compton.nu) http://compton.nu/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users