Comments (4)
Another potentially interesting idea along this vein is to automatically generate counters for each enum variant of a ringbuf's event type, as part of the ringbuf macro. That way, even though the ringbuf only holds the last, say, 16 or 32 events (or whatever), we could still see that a given event variant has been recorded 1000 times since the task started.
from hubris.
That's interesting. Ringbuf technically doesn't require the record to be an enum, but in practice it always is, so that seems plausible.
I like to keep counters separate because we have some targets (mostly the tiny stm32g0s) where I build with the ringbuf/disabled
feature for space reasons -- though ringbuf/disabled
could maintain the counters if the crate provided counters. Hmmm.
from hubris.
Yeah, I'm very much not convinced this is a good idea, but it could be neat to experiment with.
from hubris.
I like the way that the ringbuf already collapses identical entries that occur in sequence, in any case!
from hubris.
Related Issues (20)
- Missing 6 sensors in the sensors list on Gimlet (and probably some on Sidecar too) HOT 2
- reading BMR491 PMBus data over Idol hangs bus
- BMR491 reports NaN for power
- Release 6 | ROT/SP release requests HOT 1
- Release 7 | ROT/SP release requests HOT 2
- We need to be able to capture and report sequencer register state on units in the rack HOT 5
- thermal task dying on divide-by-zero
- SP serial console via MGS occasionally goes out to lunch
- Gimlet: support `rev-f` PCBAs HOT 4
- We need to be able to change board names on update HOT 5
- We probably need a way for a task trying to TX a packet to not get RX notifications.
- query vpd lock status from `pilot racktest`
- attestation API suitable for use from `(faux-)?mgs`
- Sidecar: support rev-d PCBAs
- gimlet went back to A0 while wicket was updating its phase1 flash HOT 4
- SP should not auto-reboot host in response to a host-reported boot failure
- control-plane-agent should have multiple levels of ringbuf
- Being able to power on a sled during a host flash update is probably bad
- Serving as temporal memory for the host HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubris.