Don't forget the nice hexdump macros. Write python scripts for parsing buffer content (when debugging a serial protocol).
-e
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
LD_PRELOAD
Add some prints:
dev_info(&pdev->dev, "Why are we here? \n");
now dmesg
Catching device events:
cat /proc/interrupts
udevadm info -a -n /dev/sda | less
The /sys
:
Attach debugger: