Hi there Linux experts!
I'm trying to find the best way possible to control and stress a PCI device. I've started off with writing a simple bash script that uses the commands from pciutils (lspci & setpci) to configure the device and create traffic on the bus
While the scripts work just fine, their execution speed seems much slower than the PCIe link speeds, making it hard to create stress on the bus, or quickly change between power modes and link speeds.
I was wondering, if ill write a kernel module that will call functions from the pci.h library, will its execution be faster? Will I be able to achieve faster access to the PCI device?
Any help would be much much appreciated :)