libe3 0.6.1
C++ library for E3AP RAN vendor integration
Loading...
Searching...
No Matches
latrec_hdr Struct Reference

#include <latrec.h>

Public Attributes

uint32_t magic
uint32_t version
uint64_t entries
uint64_t rec_count
uint64_t t0_mono_ns
uint64_t t0_real_ns
char name [64]
uint32_t rec_size
uint32_t clock_ns_per_call
uint64_t t1_mono_ns
uint64_t t1_real_ns
uint8_t pad [4096 - 4 *4 - 8 *6 - 64]

Detailed Description

File header of a ring. v1 layout through name[]; v2 appends inside the pad. v1 field offsets are frozen.

Definition at line 415 of file latrec.h.

Member Data Documentation

◆ clock_ns_per_call

uint32_t latrec_hdr::clock_ns_per_call

measured timestamp cost (0 = not measured)

Definition at line 425 of file latrec.h.

◆ entries

uint64_t latrec_hdr::entries

ring capacity (power of two)

Definition at line 418 of file latrec.h.

◆ magic

uint32_t latrec_hdr::magic

LATREC_MAGIC

Definition at line 416 of file latrec.h.

◆ name

char latrec_hdr::name[64]

ring name, "process.thread"

Definition at line 422 of file latrec.h.

◆ pad

uint8_t latrec_hdr::pad[4096 - 4 *4 - 8 *6 - 64]

reserved, fills the header to LATREC_HDR_LEN

Definition at line 428 of file latrec.h.

◆ rec_count

uint64_t latrec_hdr::rec_count

final index; refreshed by latrec_heartbeat

Definition at line 419 of file latrec.h.

◆ rec_size

uint32_t latrec_hdr::rec_size

sizeof(latrec_rec), for reader validation

Definition at line 424 of file latrec.h.

◆ t0_mono_ns

uint64_t latrec_hdr::t0_mono_ns

paired clocks at open: mono<->wall mapping

Definition at line 420 of file latrec.h.

◆ t0_real_ns

uint64_t latrec_hdr::t0_real_ns

realtime clock at open, paired with t0_mono_ns

Definition at line 421 of file latrec.h.

◆ t1_mono_ns

uint64_t latrec_hdr::t1_mono_ns

paired clocks refreshed by heartbeat/close

Definition at line 426 of file latrec.h.

◆ t1_real_ns

uint64_t latrec_hdr::t1_real_ns

realtime clock of the last refresh, paired with t1_mono_ns

Definition at line 427 of file latrec.h.

◆ version

uint32_t latrec_hdr::version

LATREC_VERSION of the writer

Definition at line 417 of file latrec.h.


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