When we have source code

Don't forget the nice hexdump macros. Write python scripts for parsing buffer content (when debugging a serial protocol).

We don't have source code, ask the OS

Latency, from a general point of view, is a time delay between the cause and the effect of some physical change in the system being observed. - wiki

We don't have source code, look at the binary

When we debug the OS

Add some prints:

dev_info(&pdev->dev, "Why are we here? \n");

now dmesg

Catching device events:

The /sys:

Attach debugger:

Updated 02 January 2023