Motr
M0
|
#include <trace.h>
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] | |
}; | |
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.
union { ... } |
char tbh_cli_args[1024] |
struct m0_atomic64 tbh_cur_pos |
Current position in trace buffer,
char tbh_header_area[M0_TRACE_BUF_HEADER_SIZE] |
uint32_t tbh_header_size |
const void* tbh_magic_sym_addr |
const void* tbh_magic_sym_addresses[128] |
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()
const void* tbh_module_core_addr |
unsigned int tbh_module_core_size |
const void* tbh_module_struct |
char tbh_motr_kernel_ver[128] |
struct m0_atomic64 tbh_rec_cnt |