Tejun Heo
e878dac619
scx_stats: Implement ScxStatsServer.describe_meta()
...
This can be used to generate help message for statistics.
2024-08-23 11:56:27 -10:00
Tejun Heo
9e3b4e6db0
scx_stats: A bit of cleanups and renames
2024-08-23 09:09:02 -10:00
Tejun Heo
a77fe372d6
scx_stats: Make server shutdown when connection is dropped and add communication channel
...
This will make implementing connection sessions easier where each stats
client connection maintains a set of states.
2024-08-19 06:23:16 -10:00
Tejun Heo
3a688cfde7
scx_stats: Add support for no-value user attributes and a bunch of other changes
...
- Allow no-value user attributes which are automatically assigned "true"
when specified.
- Make "top" attribute string "true" instead of bool true for consistency.
Testing for existence is always enough for value-less attributes.
- Don't drop leading "_" from user attribute names when storing in dicts.
Dropping makes things more confusing.
- Add "_om_skip" to scx_layered fields which don't jive well with OM.
scxstats_to_openmetrics.py is updated accordignly and no longer generates
warnings on those fields.
- Examples and README updated accordingly.
2024-08-16 07:52:02 -10:00
Tejun Heo
ea453e51d3
scx_stats: Rename "all" attribute to "top" and clean up examples a bit
2024-08-15 21:24:55 -10:00
Tejun Heo
6a5d6f7c27
scx_stats: Replace field_prefix attribute with '_' prefixed user attributes
2024-08-15 19:09:59 -10:00
Tejun Heo
f345e83c05
scx_stats: Replace om_prefix field attribute with field_prefix struct attribute
...
And strongly distinguish between field and struct attributes while parsing.
2024-08-15 18:05:24 -10:00
Tejun Heo
a9922deaa2
scx_stats: Add "all" attribute and rename metadata type strings
2024-08-15 14:50:00 -10:00
Tejun Heo
ebc1a89c34
scx_stats: s/stat/stats/ stragglers
2024-08-15 14:00:00 -10:00
Tejun Heo
bafd67b568
scx_stats: Fix parsing for multiple stat attributes
...
The code was assuming single attribute per #[stat()] block. Update it so
that there can be multiple comma separated attributes in a single block.
2024-08-15 13:46:20 -10:00
Tejun Heo
47c774d011
scx_stats: Add README and cleanup examples
2024-08-15 12:17:30 -10:00
Tejun Heo
17afc72479
scx_stats: Rename cleanups
...
- s/stat/stats/ on several stragglers.
- Rename traits so that they are more distinctive from struct and other
names and follow the convention.
2024-08-15 06:24:56 -10:00
Tejun Heo
8aae9a5de2
scx_stats: s/scx_stat/scx_stats/
...
Use plural form which is more widespread and also used in scheduler
implementations. No functional changes.
2024-08-15 05:31:34 -10:00