34 #ifndef ARM_OCSD_C_API_CUSTOM_H_INCLUDED
35 #define ARM_OCSD_C_API_CUSTOM_H_INCLUDED
65 const uint32_t dataBlockSize,
66 const uint8_t *pDataBlock,
67 uint32_t *numBytesProcessed);
84 #define OCSD_CUST_DCD_PKT_CB_USE_MON 0x1
87 #define OCSD_CUST_DCD_PKT_CB_USE_SINK 0x2
114 const uint8_t trc_chan_id,
124 const uint8_t chan_id,
142 const uint8_t cs_trace_id,
155 const uint8_t *p_data);
ocsd_err_t(* fnDecodeArmInstCB)(const void *lib_context, ocsd_instr_info *instr_info)
ocsd_datapath_resp_t(* fnPktDataSinkCB)(const void *lib_context, const ocsd_datapath_op_t op, const ocsd_trc_index_t index_sop, const void *pkt)
ocsd_datapath_resp_t(* fnTraceDataIn)(const void *decoder_handle, const ocsd_datapath_op_t op, const ocsd_trc_index_t index, const uint32_t dataBlockSize, const uint8_t *pDataBlock, uint32_t *numBytesProcessed)
ocsd_datapath_resp_t(* fnGenElemOpCB)(const void *lib_context, const ocsd_trc_index_t index_sop, const uint8_t trc_chan_id, const ocsd_generic_trace_elem *elem)
struct _ocsd_extern_dcd_inst ocsd_extern_dcd_inst_t
ocsd_err_t(* fnDestroyCustomDecoder)(const void *decoder_handle)
void(* fnUpdatePktMonFlags)(const void *decoder_handle, const int flags)
ocsd_err_t(* fnMemAccessCB)(const void *lib_context, const ocsd_vaddr_t address, const uint8_t cs_trace_id, const ocsd_mem_space_acc_t mem_space, uint32_t *num_bytes, uint8_t *p_buffer)
struct _ocsd_extern_dcd_cb_fns ocsd_extern_dcd_cb_fns
void(* fnPktMonCB)(const void *lib_context, const ocsd_datapath_op_t op, const ocsd_trc_index_t index_sop, const void *pkt, const uint32_t size, const uint8_t *p_data)
void(* fnLogErrorCB)(const void *lib_context, const ocsd_err_severity_t filter_level, const ocsd_err_t code, const ocsd_trc_index_t idx, const uint8_t chan_id, const char *pMsg)
struct _ocsd_extern_dcd_fact ocsd_extern_dcd_fact_t
ocsd_err_t(* fnPacketToString)(const void *trc_pkt, char *buffer, const int buflen)
void(* fnLogMsgCB)(const void *lib_context, const ocsd_err_severity_t filter_level, const char *msg)
ocsd_err_t(* fnCreateCustomDecoder)(const int create_flags, const void *decoder_cfg, const ocsd_extern_dcd_cb_fns *p_lib_callbacks, ocsd_extern_dcd_inst_t *p_decoder_inst)
ocsd_err_t(* fnGetCSIDFromConfig)(const void *decoder_cfg, unsigned char *p_csid)
uint32_t ocsd_trc_index_t
enum _ocsd_trace_protocol_t ocsd_trace_protocol_t
enum _ocsd_datapath_resp_t ocsd_datapath_resp_t
enum _ocsd_mem_space_acc_t ocsd_mem_space_acc_t
enum _ocsd_datapath_op_t ocsd_datapath_op_t
enum _ocsd_err_severity_t ocsd_err_severity_t
enum _ocsd_err_t ocsd_err_t
OpenCSD : Trace Decoder "C" API types.
fnDecodeArmInstCB fn_arm_instruction_decode
fnPktDataSinkCB fn_packet_data_sink
fnLogErrorCB fn_log_error
fnMemAccessCB fn_memory_access
fnGenElemOpCB fn_gen_elem_out
fnPacketToString pktToString
fnCreateCustomDecoder createDecoder
fnDestroyCustomDecoder destroyDecoder
fnGetCSIDFromConfig csidFromConfig
ocsd_trace_protocol_t protocol_id
fnUpdatePktMonFlags fn_update_pkt_mon