Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monorail-server: Add ringbuf counters #1676

Merged
merged 9 commits into from
Mar 21, 2024
Merged

monorail-server: Add ringbuf counters #1676

merged 9 commits into from
Mar 21, 2024

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Mar 21, 2024

Depends on #1637

Now that the vsc-err types have Count implementations (as of #1637), I thought it might be worthwhile to add counters to the monorail-server ring bufs. This is especially nice because the one in main only has two entries, and it seems worthwhile to be able to get a total count of errors that have been observed.

These essentially just represent "hey, here's the state of some hw
register", so it's not super useful to generate counters for them --- we
can save a bunch of bytes by just counting error variants.
Depends on #1637

Now that the `vsc-err` types have `Count` implementations (as of #1637),
I thought it might be worthwhile to add counters to the
`monorail-server` ring bufs. This is especially nice because the one in
`main` only has two entries, and it seems worthwhile to be able to get a
total count of errors that have been observed.
@hawkw hawkw requested a review from mkeeter March 21, 2024 19:11
@hawkw hawkw changed the base branch from eliza/net-counters to master March 21, 2024 21:03
@hawkw hawkw enabled auto-merge (squash) March 21, 2024 21:04
@hawkw hawkw merged commit 64dbd3a into master Mar 21, 2024
103 checks passed
lzrd pushed a commit that referenced this pull request Mar 26, 2024
Depends on #1637

Now that the `vsc-err` types have `Count` implementations (as of #1637),
I thought it might be worthwhile to add counters to the
`monorail-server` ring bufs. This is especially nice because the one in
`main` only has two entries, and it seems worthwhile to be able to get a
total count of errors that have been observed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants