]> mj.ucw.cz Git - pciutils.git/commit
pcilmr: Add logging functions for margining
authorNikita Proshkin <n.proshkin@yadro.com>
Wed, 27 Dec 2023 09:44:56 +0000 (14:44 +0500)
committerMartin Mares <mj@ucw.cz>
Sat, 17 Feb 2024 22:44:45 +0000 (23:44 +0100)
commitc04cf7c068202d1b0af0a028caff1e7850884a8a
treeadb5d9da4aff57424dd5671b7fcdd07d44598e81
parent73289e137d6a500007930c694f3584763748abce
pcilmr: Add logging functions for margining

* Implement option to turn on/off logging for margining;
* Support systems with several PCI domains;
* margin_log_margining function prints margining in progress log using
  one line messages for each Receiver in the form:
  "Margining - <direction> - Lanes [<current simultaneous lanes>] - ETA:
  <current direction-lanes margining remaining time> Steps: <current
  margining steps done> Total ETA: <utility run total remaining time>".

Reviewed-by: Sergei Miroshnichenko <s.miroshnichenko@yadro.com>
Signed-off-by: Nikita Proshkin <n.proshkin@yadro.com>
lmr/lmr.h
lmr/margin.c
lmr/margin_log.c [new file with mode: 0644]