Chapter 5

Getting geeky – tracing and debugging applications

Abstract

In this chapter, we will be doing some proper investigative work, like the best of private investigators. We will learn how to trace programs and the kernel, and finally use an application debugger to walk through the execution of a code all the way to assembly instructions.

Keywords

strace
ltrace
lsof
vmstat
iostat
perf
gdb

Working with strace and ltrace

Sometimes, the process of investigating problems by reading logs and examining the overall behavior of the system will not yield fruitful results. The root cause of the issue affecting your customer base or your applications will remain a mystery. At this stage, you will need to dig in deeper, and this means analyzing what ...

Get Problem-solving in High Performance Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.