From 3e3f0e982b04636464541e3e1bbb142718b9b66e Mon Sep 17 00:00:00 2001 From: Diego Asturias Date: Mon, 9 Dec 2024 22:27:38 +0000 Subject: [PATCH] feat: Read PCIE AER counters class/net Linux provides AER counters in the path /sys/class/net//device/ This is split amoung 3 different files: aer_dev_correctable aer_dev_fatal aer_dev_nonfatal Signed-off-by: Diego Asturias --- testdata/fixtures.ttar | 59 ------------------------------------------ 1 file changed, 59 deletions(-) diff --git a/testdata/fixtures.ttar b/testdata/fixtures.ttar index 10b402ff..dfbcd345 100644 --- a/testdata/fixtures.ttar +++ b/testdata/fixtures.ttar @@ -5841,65 +5841,6 @@ Mode: 644 Path: fixtures/sys/class/net/eth0/device SymlinkTo: ../../../devices/pci0000:00/0000:00:1f.6/ # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Path: fixtures/sys/class/net/eth0/device/aer_dev_correctable -Lines: 9 -RxErr 1 -BadTLP 2 -BadDLLP 3 -Rollover 4 -Timeout 5 -NonFatalErr 6 -CorrIntErr 7 -HeaderOF 8 -TOTAL_ERR_COR 9 -Mode: 444 -# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Path: fixtures/sys/class/net/eth0/device/aer_dev_fatal -Lines: 19 -Undefined 10 -DLP 11 -SDES 12 -TLP 13 -FCP 14 -CmpltTO 15 -CmpltAbrt 16 -UnxCmplt 17 -RxOF 18 -MalfTLP 19 -ECRC 20 -UnsupReq 21 -ACSViol 22 -UncorrIntErr 23 -BlockedTLP 24 -AtomicOpBlocked 25 -TLPBlockedErr 26 -PoisonTLPBlocked 27 -TOTAL_ERR_FATAL 28 -Mode: 444 -# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Path: fixtures/sys/class/net/eth0/device/aer_dev_nonfatal -Lines: 19 -Undefined 30 -DLP 31 -SDES 32 -TLP 33 -FCP 34 -CmpltTO 35 -CmpltAbrt 36 -UnxCmplt 37 -RxOF 38 -MalfTLP 39 -ECRC 40 -UnsupReq 41 -ACSViol 42 -UncorrIntErr 43 -BlockedTLP 44 -AtomicOpBlocked 45 -TLPBlockedErr 46 -PoisonTLPBlocked 47 -TOTAL_ERR_NONFATAL 48 -Mode: 444 -# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Path: fixtures/sys/class/net/eth0/dormant Lines: 1 1