Re: Fwd: valgrind/memcheck support for skipping a function
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.