ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
cbs_meter_t Struct Reference

Counting shim around an ra8_vsource_read_fn. More...

#include <sweep_block_internal.h>

Data Fields

ra8_vsource_read_fn inner
 Wrapped reader.
void * inner_ctx
 Context for inner.
uint64_t calls
 Read calls forwarded so far.
uint64_t bytes
 Bytes served through the shim.

Detailed Description

Counting shim around an ra8_vsource_read_fn.

Forwards to inner and tallies calls + bytes. One instance sits at the vsource seam (counting storage commands = cache misses); the RBKC backend nests a second one under its container file to count raw compressed bytes.

Invariant
inner is non-NULL whenever the meter is registered as a reader.
Since
0.1.0

Definition at line 143 of file sweep_block_internal.h.

Field Documentation

◆ bytes

uint64_t cbs_meter_t::bytes

Bytes served through the shim.

Definition at line 147 of file sweep_block_internal.h.

Referenced by internal_run_block(), and priv_meter_read().

◆ calls

uint64_t cbs_meter_t::calls

Read calls forwarded so far.

Definition at line 146 of file sweep_block_internal.h.

Referenced by internal_run_block(), and priv_meter_read().

◆ inner

ra8_vsource_read_fn cbs_meter_t::inner

Wrapped reader.

Definition at line 144 of file sweep_block_internal.h.

Referenced by priv_meter_read().

◆ inner_ctx

void* cbs_meter_t::inner_ctx

Context for inner.

Definition at line 145 of file sweep_block_internal.h.

Referenced by priv_meter_read().


The documentation for this struct was generated from the following file: