Understanding Code with Valgrind - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

Understanding Code with Valgrind

Description:

Made with OpenOffice.org. 1. Understanding Code with Valgrind 'Beware ... Multiple other patches. Open file descriptors. Suppressions. Selective understanding ... – PowerPoint PPT presentation

Number of Views:119
Avg rating:3.0/5.0
Slides: 9
Provided by: kur67
Category:

less

Transcript and Presenter's Notes

Title: Understanding Code with Valgrind


1
Understanding Code with Valgrind
  • Beware of bugs in the above code
  • I have only proved it correct, not tried it.
  • Donald E Knuth
  • Madhu M Kurup
  • technical yahoo!
  • Yahoo! Inc.
  • mmk at yahoo dash inc dot com

2
What is Valgrind
  • Linux, x86, program analyzer
  • Advantages
  • powerful
  • no recompiles, just binaries
  • any language (!)
  • extensible, configurable
  • free, GPL'd goodness
  • Speed slowdown

3
How does it work
  • Synthetic CPU
  • Per instruction execution
  • Host System
  • Controlled
  • Memory
  • leaks, overflows, et all
  • Threading
  • posix library
  • Caching
  • L1/L2 cache info (!)

4
What are the existing skins
  • MemCheck
  • Heavy duty memory checker
  • AddrCheck
  • Faster, cheaper
  • Cachegrind
  • Caching info
  • Helgrind
  • Thread semantics
  • Others

5
Live Example
  • Where and what do you want to fix today?

6
Other features
  • Callgraphs
  • Multiple other patches
  • Open file descriptors
  • Suppressions
  • Selective understanding
  • Ignore System libs
  • Yes, bugs
  • /dev/random

7
Future Thoughts
  • GUIs
  • Simulation
  • instructions
  • ioctls
  • bugs, more bugs
  • Net/FreeBSD
  • Moore's Law

8
End of Transmission
  • Thanks Questions?
  • URLs and Lists
  • Main http//valgrind.kde.org/
  • Code http//webcvs.kde.org/cgi-bin/cvsweb.cgi/val
    grind/
  • GUI's http//valgrind.kde.org/related.html
  • Dev http//lists.sourceforge.net/lists/listinfo/v
    algrind-developers
  • Users http//lists.sourceforge.net/lists/listinfo
    /valgrind-users
  • http//ooextras.sourceforge.net/
Write a Comment
User Comments (0)
About PowerShow.com