Motr  M0
m0_trace_buf_header Struct Reference

#include <trace.h>

Collaboration diagram for m0_trace_buf_header:
Collaboration graph

Data Fields

union {
   struct {
      uint64_t   tbh_magic
 
      const void *   tbh_header_addr
 
      uint32_t   tbh_header_size
 
      const void *   tbh_buf_addr
 
      uint64_t   tbh_buf_size
 
      uint16_t   tbh_buf_type
 
      uint16_t   tbh_buf_flags
 
      struct m0_atomic64   tbh_cur_pos
 
      struct m0_atomic64   tbh_rec_cnt
 
      const void *   tbh_magic_sym_addr
 
      char   tbh_motr_version [16]
 
      char   tbh_motr_git_describe [64]
 
      char   tbh_motr_kernel_ver [128]
 
      m0_time_t   tbh_log_time
 
      const void *   tbh_module_struct
 
      const void *   tbh_module_core_addr
 
      unsigned int   tbh_module_core_size
 
      char   tbh_cli_args [1024]
 
      uint16_t   tbh_magic_sym_addresses_nr
 
      const void *   tbh_magic_sym_addresses [128]
 
   } 
 
   char   tbh_header_area [M0_TRACE_BUF_HEADER_SIZE]
 
}; 
 

Detailed Description

Trace buffer header structure

It's placed at the beginning of a trace buffer in a reserved area of M0_TRACE_BUF_HEADER_SIZE size.

Definition at line 357 of file trace.h.

Field Documentation

◆ @265

union { ... }

◆ tbh_buf_addr

const void* tbh_buf_addr

Trace buffer address

Definition at line 374 of file trace.h.

◆ tbh_buf_flags

uint16_t tbh_buf_flags

enum m0_trace_buf_flags

Definition at line 380 of file trace.h.

◆ tbh_buf_size

uint64_t tbh_buf_size

Trace buffer size

Definition at line 376 of file trace.h.

◆ tbh_buf_type

uint16_t tbh_buf_type

enum m0_trace_buf_type

Definition at line 378 of file trace.h.

◆ tbh_cli_args

char tbh_cli_args[1024]

Command line arguments string (only for user trace)

Definition at line 411 of file trace.h.

◆ tbh_cur_pos

struct m0_atomic64 tbh_cur_pos

Current position in trace buffer,

See also
comments in m0_trace_allot()

Definition at line 385 of file trace.h.

◆ tbh_header_addr

const void* tbh_header_addr

Trace header address

Definition at line 365 of file trace.h.

◆ tbh_header_area

char tbh_header_area[M0_TRACE_BUF_HEADER_SIZE]

Definition at line 423 of file trace.h.

◆ tbh_header_size

uint32_t tbh_header_size

Size, reserved for trace buffer header (NOTE: not a size of this structure). Effectively, this is an offset within trace file, starting from which actual trace records begin.

Definition at line 372 of file trace.h.

◆ tbh_log_time

m0_time_t tbh_log_time

Trace file creation time and date

Definition at line 400 of file trace.h.

◆ tbh_magic

uint64_t tbh_magic

Definition at line 363 of file trace.h.

◆ tbh_magic_sym_addr

const void* tbh_magic_sym_addr

Address of special trace magic symbol (used for trace buffer decoding)

Definition at line 392 of file trace.h.

◆ tbh_magic_sym_addresses

const void* tbh_magic_sym_addresses[128]

Additional magic symbols for external libraries

Definition at line 419 of file trace.h.

◆ tbh_magic_sym_addresses_nr

uint16_t tbh_magic_sym_addresses_nr

Actual number of magic symbol addresses stored in tbh_magic_sym_addresses array, see m0_trace_magic_sym_extra_addr_add()

Definition at line 417 of file trace.h.

◆ tbh_module_core_addr

const void* tbh_module_core_addr

Address of loaded m0tr.ko module (used only for kernel trace)

Definition at line 407 of file trace.h.

◆ tbh_module_core_size

unsigned int tbh_module_core_size

Size of loaded m0tr.ko module (used only for kernel trace)

Definition at line 409 of file trace.h.

◆ tbh_module_struct

const void* tbh_module_struct

m0tr.ko module struct (used only for kernel trace)

Definition at line 402 of file trace.h.

◆ tbh_motr_git_describe

char tbh_motr_git_describe[64]

Git describe revision ID

Definition at line 396 of file trace.h.

◆ tbh_motr_kernel_ver

char tbh_motr_kernel_ver[128]

Kernel version, for which Motr is built

Definition at line 398 of file trace.h.

◆ tbh_motr_version

char tbh_motr_version[16]

Motr version string

Definition at line 394 of file trace.h.

◆ tbh_rec_cnt

struct m0_atomic64 tbh_rec_cnt

Record counter

Definition at line 387 of file trace.h.


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