FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
clib_maplog_main_t Struct Reference

Process-private main data structure. More...

Public Member Functions

 CLIB_CACHE_LINE_ALIGN_MARK (cacheline1)
 
 CLIB_CACHE_LINE_ALIGN_MARK (cacheline2)
 

Data Fields

volatile u64 next_record_index
 rw cache line: atomic ticket-counter, file index More...
 
u64 file_size_in_records
 file size in records, rounded to a power of two More...
 
u32 log2_file_size_in_records
 lg file size in records More...
 
volatile u32 current_file_index
 current file index More...
 
volatile u32 flags
 flags, currently just "init" or not More...
 
u32 record_size_in_cachelines
 record size in cache lines More...
 
volatile u8file_baseva [2]
 active segment base addresses More...
 
u8filenames [2]
 active segment file names More...
 
u8file_basename
 basename, e.g. More...
 
u8header_filename
 log header file name More...
 

Detailed Description

Process-private main data structure.

Definition at line 68 of file maplog.h.

Member Function Documentation

◆ CLIB_CACHE_LINE_ALIGN_MARK() [1/2]

clib_maplog_main_t::CLIB_CACHE_LINE_ALIGN_MARK ( cacheline1  )

◆ CLIB_CACHE_LINE_ALIGN_MARK() [2/2]

clib_maplog_main_t::CLIB_CACHE_LINE_ALIGN_MARK ( cacheline2  )

Field Documentation

◆ current_file_index

volatile u32 clib_maplog_main_t::current_file_index

current file index

Definition at line 76 of file maplog.h.

◆ file_basename

u8* clib_maplog_main_t::file_basename

basename, e.g.

"/tmp/mylog"

Definition at line 87 of file maplog.h.

◆ file_baseva

volatile u8* clib_maplog_main_t::file_baseva[2]

active segment base addresses

Definition at line 84 of file maplog.h.

◆ file_size_in_records

u64 clib_maplog_main_t::file_size_in_records

file size in records, rounded to a power of two

Definition at line 74 of file maplog.h.

◆ filenames

u8* clib_maplog_main_t::filenames[2]

active segment file names

Definition at line 85 of file maplog.h.

◆ flags

volatile u32 clib_maplog_main_t::flags

flags, currently just "init" or not

Definition at line 77 of file maplog.h.

◆ header_filename

u8* clib_maplog_main_t::header_filename

log header file name

Definition at line 88 of file maplog.h.

◆ log2_file_size_in_records

u32 clib_maplog_main_t::log2_file_size_in_records

lg file size in records

Definition at line 75 of file maplog.h.

◆ next_record_index

volatile u64 clib_maplog_main_t::next_record_index

rw cache line: atomic ticket-counter, file index

Definition at line 72 of file maplog.h.

◆ record_size_in_cachelines

u32 clib_maplog_main_t::record_size_in_cachelines

record size in cache lines

Definition at line 81 of file maplog.h.


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