Lines Matching full:decoder

18 #include "cs-etm-decoder.h"
60 struct cs_etm_decoder *decoder = (struct cs_etm_decoder *) context; in cs_etm_decoder__mem_access() local
62 return decoder->mem_access(decoder->data, trace_chan_id, address, in cs_etm_decoder__mem_access()
66 int cs_etm_decoder__add_mem_access_cb(struct cs_etm_decoder *decoder, in cs_etm_decoder__add_mem_access_cb() argument
70 decoder->mem_access = cb_func; in cs_etm_decoder__add_mem_access_cb()
72 if (ocsd_dt_add_callback_trcid_mem_acc(decoder->dcd_tree, start, end, in cs_etm_decoder__add_mem_access_cb()
75 decoder)) in cs_etm_decoder__add_mem_access_cb()
81 int cs_etm_decoder__reset(struct cs_etm_decoder *decoder) in cs_etm_decoder__reset() argument
85 decoder->prev_return = OCSD_RESP_CONT; in cs_etm_decoder__reset()
86 decoder->suppress_printing = true; in cs_etm_decoder__reset()
87 dp_ret = ocsd_dt_process_data(decoder->dcd_tree, OCSD_OP_RESET, in cs_etm_decoder__reset()
89 decoder->suppress_printing = false; in cs_etm_decoder__reset()
202 const struct cs_etm_decoder *decoder = p_context; in cs_etm_decoder__print_str_cb() local
204 if (p_context && str_len && !decoder->suppress_printing) in cs_etm_decoder__print_str_cb()
205 decoder->packet_printer(msg, decoder->data); in cs_etm_decoder__print_str_cb()
210 struct cs_etm_decoder *decoder) in cs_etm_decoder__init_def_logger_printing() argument
217 decoder->packet_printer = d_params->packet_printer; in cs_etm_decoder__init_def_logger_printing()
236 ret = ocsd_def_errlog_set_strprint_cb(decoder->dcd_tree, in cs_etm_decoder__init_def_logger_printing()
237 (void *)decoder, in cs_etm_decoder__init_def_logger_printing()
248 struct cs_etm_decoder *decoder) in cs_etm_decoder__init_raw_frame_logging() argument
263 ocsd_def_errlog_set_strprint_cb(decoder->dcd_tree, in cs_etm_decoder__init_raw_frame_logging()
264 (void *)decoder, in cs_etm_decoder__init_raw_frame_logging()
268 ocsd_dt_set_raw_frame_printer(decoder->dcd_tree, in cs_etm_decoder__init_raw_frame_logging()
276 struct cs_etm_decoder *decoder __maybe_unused) in cs_etm_decoder__init_raw_frame_logging()
329 * hence asking the decoder to keep decoding rather than stopping. in cs_etm_decoder__do_hard_timestamp()
591 struct cs_etm_decoder *decoder = (struct cs_etm_decoder *) context; in cs_etm_decoder__gen_trace_elem_printer() local
592 struct cs_etm_queue *etmq = decoder->data; in cs_etm_decoder__gen_trace_elem_printer()
653 struct cs_etm_decoder *decoder) in cs_etm_decoder__create_etm_decoder() argument
666 decoder->decoder_name = (t_params->protocol == CS_ETM_PROTO_ETMV3) ? in cs_etm_decoder__create_etm_decoder()
674 decoder->decoder_name = OCSD_BUILTIN_DCD_ETMV4I; in cs_etm_decoder__create_etm_decoder()
680 decoder->decoder_name = OCSD_BUILTIN_DCD_ETE; in cs_etm_decoder__create_etm_decoder()
688 if (ocsd_dt_create_decoder(decoder->dcd_tree, in cs_etm_decoder__create_etm_decoder()
689 decoder->decoder_name, in cs_etm_decoder__create_etm_decoder()
694 if (ocsd_dt_set_gen_elem_outfn(decoder->dcd_tree, in cs_etm_decoder__create_etm_decoder()
696 decoder)) in cs_etm_decoder__create_etm_decoder()
701 if (ocsd_dt_create_decoder(decoder->dcd_tree, decoder->decoder_name, in cs_etm_decoder__create_etm_decoder()
706 if (ocsd_dt_set_pkt_protocol_printer(decoder->dcd_tree, csid, 0)) in cs_etm_decoder__create_etm_decoder()
719 struct cs_etm_decoder *decoder; in cs_etm_decoder__new() local
727 decoder = zalloc(sizeof(*decoder)); in cs_etm_decoder__new()
729 if (!decoder) in cs_etm_decoder__new()
732 decoder->data = d_params->data; in cs_etm_decoder__new()
733 decoder->prev_return = OCSD_RESP_CONT; in cs_etm_decoder__new()
748 decoder->dcd_tree = ocsd_create_dcd_tree(format, flags); in cs_etm_decoder__new()
750 if (decoder->dcd_tree == 0) in cs_etm_decoder__new()
754 ret = cs_etm_decoder__init_def_logger_printing(d_params, decoder); in cs_etm_decoder__new()
759 cs_etm_decoder__init_raw_frame_logging(d_params, decoder); in cs_etm_decoder__new()
764 decoder); in cs_etm_decoder__new()
769 return decoder; in cs_etm_decoder__new()
772 cs_etm_decoder__free(decoder); in cs_etm_decoder__new()
776 int cs_etm_decoder__process_data_block(struct cs_etm_decoder *decoder, in cs_etm_decoder__process_data_block() argument
782 ocsd_datapath_resp_t prev_return = decoder->prev_return; in cs_etm_decoder__process_data_block()
788 cur = ocsd_dt_process_data(decoder->dcd_tree, in cs_etm_decoder__process_data_block()
795 cur = ocsd_dt_process_data(decoder->dcd_tree, in cs_etm_decoder__process_data_block()
818 decoder->prev_return = cur; in cs_etm_decoder__process_data_block()
824 void cs_etm_decoder__free(struct cs_etm_decoder *decoder) in cs_etm_decoder__free() argument
826 if (!decoder) in cs_etm_decoder__free()
829 ocsd_destroy_dcd_tree(decoder->dcd_tree); in cs_etm_decoder__free()
830 decoder->dcd_tree = NULL; in cs_etm_decoder__free()
831 free(decoder); in cs_etm_decoder__free()
834 const char *cs_etm_decoder__get_name(struct cs_etm_decoder *decoder) in cs_etm_decoder__get_name() argument
836 return decoder->decoder_name; in cs_etm_decoder__get_name()