From the course: Linux Device Drivers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use tracing and debugging

Use tracing and debugging - Linux Tutorial

From the course: Linux Device Drivers

Start my 1-month free trial

Use tracing and debugging

- [Instructor] Let's talk tracing and debugging, getting information about our motor code, our driver code. We want to talk about the debug file system, so we could talk about tracing, also briefly talk about BPF, BPF trace tool in particular, and we'll talk about the crash tool. The debug file system is yet another virtual file system. It's usually mounted on your system at sys, kernel, debug. There's lots of stuff there. You can use it for your own code. Essentially it's a place to put virtual files that can be helpful with debugging. And there's a bunch of standard stuff there. There's lots and lots of stuff, thousands of things there. So you can look around and find some stuff that you might find helpful and we're going to look at tracing that's under there. And in the kernel source tree, you can look at the debugfs.text file to get more information about it. To do tracing of functions in the kernel, we'll use…

Contents