Skip to content

Diag tool#9

Merged
trns1997 merged 5 commits into
mainfrom
diag_tool_pr2
Apr 27, 2026
Merged

Diag tool#9
trns1997 merged 5 commits into
mainfrom
diag_tool_pr2

Conversation

@leducp
Copy link
Copy Markdown
Owner

@leducp leducp commented Apr 20, 2026

No description provided.

leducp added 2 commits April 17, 2026 16:18
Expose per-ring `dropped_count` / `lost_count` atomics in SubRingHeader
(placed inside existing write_pos cache-line padding — no sizeof change,
no new coherency traffic). Publisher bumps dropped_count on the self-
repair / drop path; Subscriber bumps lost_count at each loss site.

New SharedRegion::stats() returns a RegionStats snapshot: per-ring state,
in_flight, write_pos, dropped_count, lost_count plus aggregates
(total_writes, total_drops, total_losses, live_rings, approximate
pool_free). Safe under live traffic.

Python bindings expose RingStats, RegionStats, and SharedRegion.stats()
so external monitoring can read counters without a CLI.
@leducp leducp mentioned this pull request Apr 20, 2026
@leducp leducp requested a review from trns1997 April 20, 2026 09:05
Comment thread src/Region.cc
Comment thread src/Region.cc Outdated
Comment thread src/Node.cc Outdated
@leducp leducp force-pushed the diag_tool_pr2 branch 5 times, most recently from a07a9dd to 78d3d4b Compare April 22, 2026 14:11
@leducp leducp requested a review from trns1997 April 23, 2026 07:38
Comment thread python/kickmsg/diagnostics.py Outdated
Comment thread python/kickmsg/_cli.py Outdated
Comment thread include/kickmsg/Registry.h
Comment thread python/kickmsg/diagnostics.py Outdated
Comment thread src/os/posix/Process.cc
Comment thread python/kickmsg/cli.py
Comment thread python/kickmsg/diagnostics.py Outdated
Comment thread python/kickmsg/cli.py
def cmd_repair(args) -> int:
target = _resolve_shm_name(args)
if not (args.locked or args.retired or args.reclaim):
args.locked = True # default: safe operation only
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add this to the parser description so that the user is aware

@trns1997 trns1997 merged commit 8d0ce3b into main Apr 27, 2026
9 checks passed
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.

2 participants