Skip to content

Commit 2ce1139

Browse files
committed
added monitoring counter rdhCorruptedDropped
1 parent 8bcffe9 commit 2ce1139

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ metric format for the CRORC and the CRU is different, as different parameters ar
667667
| `"pktErrorCheck2"` | - | int |
668668
| `"pktErrorOversize"` | - | int |
669669
| `"orbitSor"` | - | int |
670+
| `"rdhCorruptedDropped"` | - | int |
670671
671672
| Tag key | Value |
672673
| --------------------- | --------------------- |

doc/releaseNotes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,7 @@ This file describes the main feature changes for released versions of ReadoutCar
7777
## v0.45.2 - 29/05/2024
7878
- Updated list of firmwares.
7979
- Added CRU option dropBadRdhEnabled.
80+
81+
## next version
82+
- Added some counters for roc-status:
83+
- link (with --monitoring option only): rdhCorruptedDropped (for convenience - this value is extracted from the existing pktErrorCheck1 field, bits [23:16]).

src/CommandLineUtilities/ProgramStatus.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ class ProgramStatus : public Program
443443
.addValue((uint64_t)link.pktErrorCheck2, "pktErrorCheck2")
444444
.addValue((uint64_t)link.pktErrorOversize, "pktErrorOversize")
445445
.addValue((uint64_t)link.orbitSor, "orbitSor")
446+
.addValue((uint8_t)((link.pktErrorCheck1 & 0x00ff0000 ) >> 16), "rdhCorruptedDropped")
446447
.addTag(tags::Key::SerialId, card.serialId.getSerial())
447448
.addTag(tags::Key::Endpoint, card.serialId.getEndpoint())
448449
.addTag(tags::Key::CRU, card.sequenceId)

0 commit comments

Comments
 (0)