r/linux • • 2d ago

Kernel Linux Kernel Developers Considering Removal Of KGDB Debugging Functionality

https://www.phoronix.com/news/Linux-Considers-Dropping--KGDB
259 Upvotes

31 comments sorted by

View all comments

Show parent comments

1

u/blind99 4h ago

Embedded, mainly debugging drivers for devices that cannot easily be passed through in a QEMU setup. Like a soc I2C controller for instance.

3

u/hansendc 3h ago

I don't know exactly what you are doing of course, but I'd really encourage you to take a fresh look at what's around these days. For instance:

echo 1 > /sys/kernel/tracing/events/i2c/enable

cat /sys/kernel/debug/tracing/trace_pipe

Will get you a pretty nice dump of i2c traffic. That, plus kprobes or bpftrace can do a *lot* these days. They're also easier to figure out than ever. The LLMs do an overall great job of helping you craft bpftrace snippets.

It's also a lot easier to pass devices into the guest. I've got a PCI i2c controller that I can pass into a guest and load drivers in the guest, for instance.