12.07.2015 Views

Linux on System z Current & Future Technology - z/VM - IBM

Linux on System z Current & Future Technology - z/VM - IBM

Linux on System z Current & Future Technology - z/VM - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>IBM</strong> <str<strong>on</strong>g>Linux</str<strong>on</strong>g> and <strong>Technology</strong> CenterValgrind <strong>System</strong> z support• valgrind –tool=memcheck [--leak-check=full] [--track-origins] – Detects if your program accesses memory it shouldn't– Detects dangerous uses of uninitialized values <strong>on</strong> a per-bit basis– Detects leaked memory, double frees and mismatched frees• valgrind –tool=cachegrind– Profile cache usage, simulates instructi<strong>on</strong> and data cache of the cpu– Identifies the number of cache misses• valgrind –tool=massif– Profile heap usage, takes regular snapshots of program's heap– Produces a graph showing heap usage over timeBinary80000554 :stmg %r14,%r15,112(%r15)larl %r2,80000698 aghi %r15,-160brasl %r14,800003f4 lmg %r14,%r15,272(%r15)lghi %r2,0br %r14replacesome ofthe librarycallstranslati<strong>on</strong>into IRvalgrindinstrumentati<strong>on</strong>translati<strong>on</strong>tomachinecodeNewbinarysystem callskernel39© 2012 <strong>IBM</strong> Corporati<strong>on</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!