Motr  M0
fmt.h File Reference
#include "lib/types.h"
#include "lib/buf_xc.h"
#include "lib/assert.h"
Include dependency graph for fmt.h:

Go to the source code of this file.

Data Structures

struct  m0_be_fmt_group_info
 
struct  m0_be_fmt_group_header
 
struct  m0_be_fmt_content_header_tx
 
struct  m0_be_fmt_content_header_txs
 
struct  m0_be_fmt_content_header_reg
 
struct  m0_be_fmt_content_header_reg_area
 
struct  m0_be_fmt_content_header
 
struct  m0_be_fmt_content_payloads
 
struct  m0_be_fmt_content_reg_area
 
struct  m0_be_fmt_content
 
struct  m0_be_fmt_log_store_header_cfg
 
struct  m0_be_fmt_log_store_header
 
struct  m0_be_fmt_log_header
 
struct  m0_be_fmt_group
 
struct  m0_be_fmt_cblock
 
struct  m0_be_fmt_group_cfg
 
struct  m0_be_fmt_log_record_footer
 
struct  m0_be_fmt_log_record_header_cfg
 
struct  m0_be_fmt_log_record_header_io_size
 
struct  m0_be_fmt_log_record_header
 
struct  m0_be_fmt_decode_cfg
 
struct  m0_be_fmt_reg
 
struct  m0_be_fmt_tx
 

Macros

#define __MOTR_BE_FMT_H__
 
#define BFLH_F
 
#define BFLH_P(log_hdr)
 
#define BFLRH_F
 
#define BFLRH_P(h)
 
#define M0_BE_FMT_DECODE_CFG_DEFAULT
 
#define M0_BE_FMT_DECODE_CFG_DEFAULT_WITH_TRACE
 
#define M0_BE_FMT_DECLARE(name)
 
#define M0_BE_FMT_REG(size, addr, buf)
 
#define M0_BE_FMT_TX(payload, id)
 

Functions

struct m0_be_allocator_call_stat M0_XCA_DOMAIN (be)
 
 M0_BASSERT (sizeof(((struct m0_be_fmt_group *) NULL) ->fg_cfg)==sizeof(struct m0_be_fmt_group_cfg *))
 
M0_INTERNAL int m0_be_fmt_type_trace (const struct m0_xcode_cursor *it)
 
M0_INTERNAL void m0_be_fmt_type_trace_end (const struct m0_xcode_cursor *it)
 
 M0_BE_FMT_DECLARE (group)
 
 M0_BE_FMT_DECLARE (log_store_header)
 
 M0_BE_FMT_DECLARE (log_record_footer)
 
 M0_BE_FMT_DECLARE (log_header)
 
M0_INTERNAL void m0_be_fmt_group_reg_add (struct m0_be_fmt_group *fg, const struct m0_be_fmt_reg *freg)
 
M0_INTERNAL uint32_t m0_be_fmt_group_reg_nr (const struct m0_be_fmt_group *fg)
 
M0_INTERNAL void m0_be_fmt_group_reg_by_id (const struct m0_be_fmt_group *fg, uint32_t index, struct m0_be_fmt_reg *freg)
 
M0_INTERNAL void m0_be_fmt_group_tx_add (struct m0_be_fmt_group *fg, const struct m0_be_fmt_tx *ftx)
 
M0_INTERNAL uint32_t m0_be_fmt_group_tx_nr (const struct m0_be_fmt_group *fg)
 
M0_INTERNAL void m0_be_fmt_group_tx_by_id (const struct m0_be_fmt_group *fg, uint32_t index, struct m0_be_fmt_tx *ftx)
 
M0_INTERNAL struct m0_be_fmt_group_infom0_be_fmt_group_info_get (struct m0_be_fmt_group *fg)
 
M0_INTERNAL bool m0_be_fmt_group_sanity_check (struct m0_be_fmt_group *fg)
 
 M0_BE_FMT_DECLARE (cblock)
 
 M0_BE_FMT_DECLARE (log_record_header)
 
M0_INTERNAL void m0_be_fmt_log_record_header_io_size_add (struct m0_be_fmt_log_record_header *obj, m0_bcount_t size)
 

Variables

uint64_t gi_unknown
 
struct m0_be_fmt_group_info fgh_info
 
uint64_t fgh_lsn
 
uint64_t fgh_size
 
uint64_t fgh_tx_nr
 
uint64_t fgh_reg_nr
 
uint64_t fgh_magic
 
uint64_t chx_tx_id
 
m0_bcount_t chx_payload_size
 
uint32_t cht_nr
 
struct m0_be_fmt_content_header_txcht_tx
 
m0_bcount_t chg_size
 
uint64_t chg_addr
 
uint32_t chr_nr
 
struct m0_be_fmt_content_header_regchr_reg
 
struct m0_be_fmt_content_header_txs fch_txs
 
struct m0_be_fmt_content_header_reg_area fch_reg_area
 
uint32_t fcp_nr
 
struct m0_buffcp_payload
 
uint32_t cra_nr
 
struct m0_bufcra_reg
 
struct m0_be_fmt_content_payloads fmc_payloads
 
struct m0_be_fmt_content_reg_area fmc_reg_area
 
struct m0_be_fmt_log_store_header_cfg M0_XCA_DOMAIN
 
m0_bcount_t fsh_size
 
m0_bindex_t fsh_rbuf_offset
 
unsigned fsh_rbuf_nr
 
m0_bcount_t fsh_rbuf_size
 
m0_bcount_t fsh_rbuf_size_aligned
 
m0_bindex_t fsh_cbuf_offset
 
m0_bcount_t fsh_cbuf_size
 
uint64_t flh_serial
 
m0_bindex_t flh_discarded
 
m0_bindex_t flh_group_lsn
 
m0_bcount_t flh_group_size
 
struct m0_be_fmt_group_header fg_header
 
struct m0_be_fmt_content_header fg_content_header
 
struct m0_be_fmt_content fg_content
 
uint64_t fg_cfg
 
uint64_t gcb_lsn
 
uint64_t gcb_size
 
uint64_t gcb_tx_nr
 
uint64_t gcb_magic
 
m0_bindex_t lrf_pos
 
uint32_t lrhs_nr
 
m0_bcount_tlrhs_size
 
m0_bindex_t lrh_pos
 
m0_bcount_t lrh_size
 
m0_bindex_t lrh_discarded
 
m0_bindex_t lrh_prev_pos
 
m0_bindex_t lrh_prev_size
 
uint64_t lrh_io_nr_max
 
struct m0_be_fmt_log_record_header_io_size lrh_io_size
 

Macro Definition Documentation

◆ __MOTR_BE_FMT_H__

#define __MOTR_BE_FMT_H__

Definition at line 26 of file fmt.h.

Variable Documentation

◆ chg_addr

uint64_t chg_addr

Definition at line 91 of file fmt.h.

◆ chg_size

m0_bcount_t chg_size

Definition at line 90 of file fmt.h.

◆ chr_nr

uint32_t chr_nr

Definition at line 90 of file fmt.h.

◆ chr_reg

Definition at line 91 of file fmt.h.

◆ cht_nr

uint32_t cht_nr

Definition at line 90 of file fmt.h.

◆ cht_tx

Definition at line 91 of file fmt.h.

◆ chx_payload_size

m0_bcount_t chx_payload_size

Definition at line 91 of file fmt.h.

◆ chx_tx_id

uint64_t chx_tx_id

Definition at line 90 of file fmt.h.

◆ cra_nr

uint32_t cra_nr

Definition at line 90 of file fmt.h.

◆ cra_reg

struct m0_buf* cra_reg

Definition at line 91 of file fmt.h.

◆ fch_reg_area

struct m0_be_fmt_content_header_reg_area fch_reg_area

Definition at line 91 of file fmt.h.

◆ fch_txs

Definition at line 90 of file fmt.h.

◆ fcp_nr

uint32_t fcp_nr

Definition at line 90 of file fmt.h.

◆ fcp_payload

struct m0_buf* fcp_payload

Definition at line 91 of file fmt.h.

◆ fg_cfg

uint64_t fg_cfg

uint64_t is used here to prevent xcoding of this field.

It is a pointer to m0_be_fmt_group_cfg and it is set in m0_be_fmt_group_init().

Definition at line 99 of file fmt.h.

◆ fg_content

struct m0_be_fmt_content fg_content

Definition at line 92 of file fmt.h.

◆ fg_content_header

struct m0_be_fmt_content_header fg_content_header

Definition at line 91 of file fmt.h.

◆ fg_header

struct m0_be_fmt_group_header fg_header

Definition at line 90 of file fmt.h.

◆ fgh_info

struct m0_be_fmt_group_info fgh_info

Definition at line 90 of file fmt.h.

◆ fgh_lsn

uint64_t fgh_lsn

Definition at line 91 of file fmt.h.

◆ fgh_magic

uint64_t fgh_magic

Definition at line 95 of file fmt.h.

◆ fgh_reg_nr

uint64_t fgh_reg_nr

Definition at line 94 of file fmt.h.

◆ fgh_size

uint64_t fgh_size

Definition at line 92 of file fmt.h.

◆ fgh_tx_nr

uint64_t fgh_tx_nr

Definition at line 93 of file fmt.h.

◆ flh_discarded

m0_bindex_t flh_discarded

Definition at line 91 of file fmt.h.

◆ flh_group_lsn

m0_bindex_t flh_group_lsn

Definition at line 92 of file fmt.h.

◆ flh_group_size

m0_bcount_t flh_group_size

Definition at line 93 of file fmt.h.

◆ flh_serial

uint64_t flh_serial

Definition at line 90 of file fmt.h.

◆ fmc_payloads

struct m0_be_fmt_content_payloads fmc_payloads

Definition at line 90 of file fmt.h.

◆ fmc_reg_area

struct m0_be_fmt_content_reg_area fmc_reg_area

Definition at line 91 of file fmt.h.

◆ fsh_cbuf_offset

m0_bindex_t fsh_cbuf_offset

Definition at line 98 of file fmt.h.

◆ fsh_cbuf_size

m0_bcount_t fsh_cbuf_size

Definition at line 99 of file fmt.h.

◆ fsh_rbuf_nr

unsigned fsh_rbuf_nr

Definition at line 94 of file fmt.h.

◆ fsh_rbuf_offset

m0_bindex_t fsh_rbuf_offset

Definition at line 93 of file fmt.h.

◆ fsh_rbuf_size

m0_bcount_t fsh_rbuf_size

Definition at line 95 of file fmt.h.

◆ fsh_rbuf_size_aligned

m0_bcount_t fsh_rbuf_size_aligned

Definition at line 96 of file fmt.h.

◆ fsh_size

m0_bcount_t fsh_size

Definition at line 91 of file fmt.h.

◆ gcb_lsn

uint64_t gcb_lsn

Definition at line 228 of file fmt.h.

◆ gcb_magic

uint64_t gcb_magic

Definition at line 231 of file fmt.h.

◆ gcb_size

uint64_t gcb_size

Definition at line 229 of file fmt.h.

◆ gcb_tx_nr

uint64_t gcb_tx_nr

Definition at line 230 of file fmt.h.

◆ gi_unknown

uint64_t gi_unknown

Definition at line 91 of file fmt.h.

◆ lrf_pos

m0_bindex_t lrf_pos

Definition at line 228 of file fmt.h.

◆ lrh_discarded

m0_bindex_t lrh_discarded

Definition at line 230 of file fmt.h.

◆ lrh_io_nr_max

uint64_t lrh_io_nr_max

Definition at line 233 of file fmt.h.

◆ lrh_io_size

Definition at line 234 of file fmt.h.

◆ lrh_pos

m0_bindex_t lrh_pos

Definition at line 228 of file fmt.h.

◆ lrh_prev_pos

m0_bindex_t lrh_prev_pos

Definition at line 231 of file fmt.h.

◆ lrh_prev_size

m0_bindex_t lrh_prev_size

Definition at line 232 of file fmt.h.

◆ lrh_size

m0_bcount_t lrh_size

Definition at line 229 of file fmt.h.

◆ lrhs_nr

uint32_t lrhs_nr

Definition at line 228 of file fmt.h.

◆ lrhs_size

m0_bcount_t* lrhs_size

Definition at line 229 of file fmt.h.