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?
Asked
Active
Viewed 2,130 times
5

Cheekysoft
- 35,194
- 20
- 73
- 86

Caner Altinbasak
- 113
- 8
-
You mean Applicaiton<--> Driver Or Driver<-->Hardware ? – Baget Nov 10 '09 at 09:57
1 Answers
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