Commit 882f4874 authored by Mathieu Poirier's avatar Mathieu Poirier Committed by Arnaldo Carvalho de Melo

perf cs-etm: Fix indentation in function cs_etm__process_decoder_queue()

Fixing wrong indentation of the while() loop - no change of
functionality.
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Tested-by: default avatarLeo Yan <leo.yan@linaro.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: coresight@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Fixes: 3fa0e83e ("perf cs-etm: Modularize main packet processing loop")
Link: http://lkml.kernel.org/r/20190524173508.29044-9-mathieu.poirier@linaro.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 5f7cb035
...@@ -1578,64 +1578,64 @@ static int cs_etm__process_decoder_queue(struct cs_etm_queue *etmq) ...@@ -1578,64 +1578,64 @@ static int cs_etm__process_decoder_queue(struct cs_etm_queue *etmq)
packet_queue = cs_etm__etmq_get_packet_queue(etmq); packet_queue = cs_etm__etmq_get_packet_queue(etmq);
/* Process each packet in this chunk */ /* Process each packet in this chunk */
while (1) { while (1) {
ret = cs_etm_decoder__get_packet(packet_queue, ret = cs_etm_decoder__get_packet(packet_queue,
etmq->packet); etmq->packet);
if (ret <= 0) if (ret <= 0)
/* /*
* Stop processing this chunk on * Stop processing this chunk on
* end of data or error * end of data or error
*/ */
break; break;
/*
* Since packet addresses are swapped in packet
* handling within below switch() statements,
* thus setting sample flags must be called
* prior to switch() statement to use address
* information before packets swapping.
*/
ret = cs_etm__set_sample_flags(etmq);
if (ret < 0)
break;
switch (etmq->packet->sample_type) {
case CS_ETM_RANGE:
/* /*
* Since packet addresses are swapped in packet * If the packet contains an instruction
* handling within below switch() statements, * range, generate instruction sequence
* thus setting sample flags must be called * events.
* prior to switch() statement to use address
* information before packets swapping.
*/ */
ret = cs_etm__set_sample_flags(etmq); cs_etm__sample(etmq);
if (ret < 0) break;
break; case CS_ETM_EXCEPTION:
case CS_ETM_EXCEPTION_RET:
switch (etmq->packet->sample_type) { /*
case CS_ETM_RANGE: * If the exception packet is coming,
/* * make sure the previous instruction
* If the packet contains an instruction * range packet to be handled properly.
* range, generate instruction sequence */
* events. cs_etm__exception(etmq);
*/ break;
cs_etm__sample(etmq); case CS_ETM_DISCONTINUITY:
break; /*
case CS_ETM_EXCEPTION: * Discontinuity in trace, flush
case CS_ETM_EXCEPTION_RET: * previous branch stack
/* */
* If the exception packet is coming, cs_etm__flush(etmq);
* make sure the previous instruction break;
* range packet to be handled properly. case CS_ETM_EMPTY:
*/ /*
cs_etm__exception(etmq); * Should not receive empty packet,
break; * report error.
case CS_ETM_DISCONTINUITY: */
/* pr_err("CS ETM Trace: empty packet\n");
* Discontinuity in trace, flush return -EINVAL;
* previous branch stack default:
*/ break;
cs_etm__flush(etmq);
break;
case CS_ETM_EMPTY:
/*
* Should not receive empty packet,
* report error.
*/
pr_err("CS ETM Trace: empty packet\n");
return -EINVAL;
default:
break;
}
} }
}
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment