How does valgrind work?

后端 未结 5 1116
日久生厌
日久生厌 2020-11-30 18:45

Can someone provide a quick top level explanation of how Valgrind works? An example: how does it know when memory is allocated and freed?

5条回答
  •  有刺的猬
    2020-11-30 18:58

    Here you can find some nice info:

    • Valgrind: A Framework for Heavyweight Dynamic Binary Instrumentation
    • http://valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.wrapping

    Besides familiarize yourself with LD_PRELOAD.

提交回复
热议问题