Skip to main content

Module control

Module control 

Source
Expand description

Control-buffer slot layout helpers.

Constantsยง

DONE_COUNT
Kernel atomic-adds 1 here every time it drains a slot.
EPOCH
Epoch counter; host increments on each publish batch.
METRICS_BASE
Metrics region start. Per-opcode execution counters live here.
METRICS_SLOTS
Total number of tracked opcode metric slots.
OBSERVABLE_BASE
First observable result word; opcodes write user-visible results here.
PRIORITY_FAIRNESS_BASE
Word index in control where per-priority fairness counters begin.
PRIORITY_FAIRNESS_SLOTS
Number of priority fairness counters reserved in the control buffer.
PRIORITY_OFFSETS_BASE
Word index in control where priority partition offsets begin.
PRIORITY_OFFSETS_SLOTS
Number of priority partition offset words, including sentinel.
PRIORITY_STARVATION_COUNTER
Starvation counter word used by the priority scheduler.
SHUTDOWN
Non-zero signals the kernel to exit on the next iteration.
TENANT_BASE
Word index in control where the tenant-mask table begins.
TENANT_FAIRNESS_BASE
Word index in control where the tenant fairness counters begin.
TENANT_FAIRNESS_SLOTS
Number of tenant fairness counters reserved in the control buffer.
TENANT_QUOTA_BASE
Word index in control where the tenant quota table begins.