Patch updates the handler function in cs-etm-decoder to deal with a new generic packet type introduced in the latest decoder.
Mike Leach (1): cs-etm: Update to cs-etm-decoder to handle new packet type from OpenCSD.
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
Latest build of OpenCSD (0v003) has a new packet type added. This update handles that packet (removes enum error on build) Removed commented out packet types from handler function that no longer exist in the library.
Signed-off-by: Mike Leach mike.leach@linaro.org --- tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c index c6f23d6..b7cff19 100644 --- a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c +++ b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c @@ -183,10 +183,6 @@ static ocsd_datapath_resp_t cs_etm_decoder__gen_trace_elem_printer( case OCSD_GEN_TRC_ELEM_TRACE_ON: decoder->trace_on = true; break; - //case OCSD_GEN_TRC_ELEM_TRACE_OVERFLOW: - //decoder->trace_on = false; - //decoder->discontinuity = true; - //break; case OCSD_GEN_TRC_ELEM_INSTR_RANGE: cs_etm_decoder__buffer_packet(decoder,elem, trace_chan_id, CS_ETM_RANGE); @@ -203,7 +199,7 @@ static ocsd_datapath_resp_t cs_etm_decoder__gen_trace_elem_printer( case OCSD_GEN_TRC_ELEM_ADDR_NACC: case OCSD_GEN_TRC_ELEM_TIMESTAMP: case OCSD_GEN_TRC_ELEM_CYCLE_COUNT: - //case OCSD_GEN_TRC_ELEM_TS_WITH_CC: + case OCSD_GEN_TRC_ELEM_ADDR_UNKNOWN: case OCSD_GEN_TRC_ELEM_EVENT: default: break;
On 14 June 2016 at 02:51, Mike Leach mike.leach@linaro.org wrote:
Latest build of OpenCSD (0v003) has a new packet type added. This update handles that packet (removes enum error on build) Removed commented out packet types from handler function that no longer exist in the library.
Signed-off-by: Mike Leach mike.leach@linaro.org
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c index c6f23d6..b7cff19 100644 --- a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c +++ b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c @@ -183,10 +183,6 @@ static ocsd_datapath_resp_t cs_etm_decoder__gen_trace_elem_printer( case OCSD_GEN_TRC_ELEM_TRACE_ON: decoder->trace_on = true; break;
//case OCSD_GEN_TRC_ELEM_TRACE_OVERFLOW:
//decoder->trace_on = false;
//decoder->discontinuity = true;
//break; case OCSD_GEN_TRC_ELEM_INSTR_RANGE: cs_etm_decoder__buffer_packet(decoder,elem, trace_chan_id, CS_ETM_RANGE);
@@ -203,7 +199,7 @@ static ocsd_datapath_resp_t cs_etm_decoder__gen_trace_elem_printer( case OCSD_GEN_TRC_ELEM_ADDR_NACC: case OCSD_GEN_TRC_ELEM_TIMESTAMP: case OCSD_GEN_TRC_ELEM_CYCLE_COUNT:
//case OCSD_GEN_TRC_ELEM_TS_WITH_CC:
case OCSD_GEN_TRC_ELEM_ADDR_UNKNOWN: case OCSD_GEN_TRC_ELEM_EVENT: default: break;
-- 1.9.1
It looks good now - thanks for making the modifications.
Mathieu
CoreSight mailing list CoreSight@lists.linaro.org https://lists.linaro.org/mailman/listinfo/coresight