Tool for observing and decoding kernel driver <-> device traffic?

Say I have: A Linux kernel driver That communicates with some pci device Via a custom protocol using a set of custom requests and responses. I'd like to be able to observe the traffic taking place in a similar way to how you can view IP packages with Wireshark. Recompiling the driver so said requests and responses are published to this hypothetical tool is an option I contemplate. Are there standard ways for doing this? Any free ones? Are there tools in the market for doing this? Thanks!

Apr 21, 2025 - 14:51
 0
Tool for observing and decoding kernel driver <-> device traffic?

Say I have:

  1. A Linux kernel driver
  2. That communicates with some pci device
  3. Via a custom protocol using a set of custom requests and responses.

I'd like to be able to observe the traffic taking place in a similar way to how you can view IP packages with Wireshark.

Recompiling the driver so said requests and responses are published to this hypothetical tool is an option I contemplate.

Are there standard ways for doing this? Any free ones? Are there tools in the market for doing this? Thanks!