34 #ifndef ARM_OCSD_C_API_CUSTOM_H_INCLUDED 35 #define ARM_OCSD_C_API_CUSTOM_H_INCLUDED 62 typedef ocsd_datapath_resp_t (*
fnTraceDataIn)(
const void *decoder_handle,
63 const ocsd_datapath_op_t op,
64 const ocsd_trc_index_t index,
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 113 const ocsd_trc_index_t index_sop,
114 const uint8_t trc_chan_id,
115 const ocsd_generic_trace_elem *elem);
121 const ocsd_err_severity_t filter_level,
122 const ocsd_err_t code,
123 const ocsd_trc_index_t idx,
124 const uint8_t chan_id,
130 typedef void (*
fnLogMsgCB)(
const void *lib_context,
const ocsd_err_severity_t filter_level,
const char *msg);
141 const ocsd_vaddr_t address,
142 const uint8_t cs_trace_id,
143 const ocsd_mem_space_acc_t mem_space,
151 const ocsd_datapath_op_t op,
152 const ocsd_trc_index_t index_sop,
155 const uint8_t *p_data);
163 const ocsd_datapath_op_t op,
164 const ocsd_trc_index_t index_sop,
231 typedef ocsd_err_t (*
fnPacketToString)(
const void *trc_pkt,
char *buffer,
const int buflen);
251 #endif // ARM_OCSD_C_API_CUSTOM_H_INCLUDED fnDecodeArmInstCB fn_arm_instruction_decode
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(* fnUpdatePktMonFlags)(const void *decoder_handle, const int flags)
fnUpdatePktMonFlags fn_update_pkt_mon
ocsd_err_t(* fnDecodeArmInstCB)(const void *lib_context, ocsd_instr_info *instr_info)
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)
fnGetCSIDFromConfig csidFromConfig
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)
fnDestroyCustomDecoder destroyDecoder
fnMemAccessCB fn_memory_access
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)
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)
fnCreateCustomDecoder createDecoder
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)
struct _ocsd_extern_dcd_inst ocsd_extern_dcd_inst_t
struct _ocsd_extern_dcd_fact ocsd_extern_dcd_fact_t
void(* fnLogMsgCB)(const void *lib_context, const ocsd_err_severity_t filter_level, const char *msg)
ocsd_err_t(* fnGetCSIDFromConfig)(const void *decoder_cfg, unsigned char *p_csid)
struct _ocsd_extern_dcd_cb_fns ocsd_extern_dcd_cb_fns
fnGenElemOpCB fn_gen_elem_out
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_trace_protocol_t protocol_id
fnPktDataSinkCB fn_packet_data_sink
fnPacketToString pktToString
ocsd_err_t(* fnDestroyCustomDecoder)(const void *decoder_handle)
ocsd_err_t(* fnPacketToString)(const void *trc_pkt, char *buffer, const int buflen)
OpenCSD : Trace Decoder "C" API types.
fnLogErrorCB fn_log_error