5

I want to record all read/write PCI transactions of a device driver. Is there a way to do it by a linux command or on software?

Cheekysoft
  • 35,194
  • 20
  • 73
  • 86

1 Answers1

4

Memory-mapped I/O Trace is now in the mainline kernel, see /usr/src/linux/Documentation/trace/mmiotrace.txt for documentation.

ephemient
  • 198,619
  • 38
  • 280
  • 391
  • This is useful for logging access to the memory-mapped portion of the PCI device, but does not log access to the device's PCI configuration (eg. setting BARs). You can google and find that a full analysis can be done with qemu's tracer, but I've yet to find the native solution. – bazz Dec 07 '17 at 02:25