ColinIanKing / stress-ng

This is the stress-ng upstream project git repository. stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.
https://github.com/ColinIanKing/stress-ng
GNU General Public License v2.0
1.82k stars 290 forks source link

Add a new pci-dev option to specify the pci device #399

Closed RinHizakura closed 5 months ago

RinHizakura commented 5 months ago

I am looking for the functionality to stress the specified PCI bus. This implementation should support this.

A small optimization can be done here to avoid snprintf() twice for the path of the PCI device if using the --pci-dev option. However, this should have less impact, so I don't do such optimization. Please let me know if you also prefer to add this work as well.

ColinIanKing commented 5 months ago

Hi, thanks for the contribution, much appreciated. I have made a few minor changes, nothing major, and added the --pci-dev option to the manual and expanded the commit message. Applied and pushed to the repository.