Public bug reported:
SRU Justification:
[Impact]
The enable and event sysfs files are used to program and enable the performance
counters. However, they also seem to take invalid input, which should be
handled by the driver with an error.
[Fix]
Check "enable" input to allow only 0 or 1, and not other values. For "event"
info, check if the user input is a valid event number for the corresponding
block and if not, print an error message.
[Test Case]
Try invalid values to the "enable" sysfs in any block and it should not be
accepted by the driver.
For event sysfs, enter any event number that is not listed in the "event_list"
and validate that the driver does not accept this input.
[Regression Potential]
Minimal
** Affects: linux-bluefield (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2113758
Title:
mlxbf-pmc: Print error if enable/event input is invalid
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-bluefield/+bug/2113758/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs