20 #ifndef __SPP_PLATFORM_TRACE_LOG_H__ 21 #define __SPP_PLATFORM_TRACE_LOG_H__ 49 #define DUMP_PKT_IDX 61 50 #define OCTEON_SENSOR_READ 62 200 #define SPP_TRACE_LOG_SHIM_HDR_OFFSET 8 201 #define SPP_TRACE_LOG_ENCAPS_OFFSET 0 203 #define SPP_TRACE_LOG_SHIM_HDR_OFFSET 0 204 #define SPP_TRACE_LOG_ENCAPS_OFFSET 16 207 #define SPP_LOG_TRACE_HEADER_LENGTH \ 208 (sizeof(spp_trace_log_hdr_t)) 211 #define SPP_TRACE_LOG_IP_HDR_OFFSET \ 212 (SPP_TRACE_LOG_ENCAPS_OFFSET + \ 213 SPP_TRACE_LOG_SHIM_HDR_OFFSET) 216 #define SPP_TRACE_LOG_UDP_HDR_OFFSET \ 217 (SPP_TRACE_LOG_IP_HDR_OFFSET + sizeof(ipv4_header)) 219 #define SPP_TRACE_LOG_HDR_OFFSET \ 220 (SPP_TRACE_LOG_UDP_HDR_OFFSET + sizeof(udp_hdr_type_t)) 222 #define SPP_TRACE_LOG_RECORD_LENGTH 4 227 #define SPP_TRACE_LOG_MAX_PKT_LENGTH 800 230 #define SPP_TRACE_LOG_INVALID_LOGGING_INDEX 0xffffffff 344 u32 spp_trace_log_get_sys_up_time_in_ms (
void);
u64 spp_trace_log_downstream_constipation_count
spp_ctx_t * current_logging_context
spp_trace_log_t * log_record
u8 spp_trace_log_init_done
u16 max_length_minus_max_record_size
u64 spp_trace_log_context_creation_deferred_count
u32 current_logging_context_timestamp
spp_ctx_t * queued_logging_context
struct _spp_ctx spp_ctx_t
spp_trace_log_hdr_t * log_header
u16 spp_trace_log_disp_node_index
u64 spp_trace_log_context_creation_fail_count
CLIB vectors are ubiquitous dynamically resized arrays with by user defined "headers".