This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CMSC 714 Lecture 16 Valgrind and DynInst Alan Sussman 2 Notes ! Midterm exam scheduled for Nov. 17 – move to Tues, Nov. 22? – sample exam questions posted soon ! Talk to me after class if you want access to GPU cluster for your project 3 Valgrind ! Framework for building dynamic binary analysis tools – works on program binaries – instrumentation inserted before the program runs – provides basic services that a tool writer can use to perform dynamic analyses – basic mechanism is shadow values ! Shadow values – heavyweight instrumentation – basic idea is to maintain a copy of all program state for an analysis tool to use (and tool can add more state needed for its analysis) – 9 requirements, 3 classes • shadow state – registers and memory • read/write operations – instrument instructions (loads and stores) and system calls – arguments and return values to/ from registers/memory, and via pointers • allocation/deallocation operations – start-up (registers, static...
View Full Document
This note was uploaded on 01/12/2012 for the course CMSC 714 taught by Professor Staff during the Fall '07 term at Maryland.
- Fall '07