Skip to content

Commit b10cdab

Browse files
committed
[nrf fromtree] logging: frontend: stmesp: Do not append strings when not needed
Currently we can assume that flpr and ppr cores are always owned by cpuapp. In that case, cpuapp (which processes ETR buffer content) has access to the memory where logging strings from ppr and flpr are located. Those strings do not need to be appended to the message which is written to the STM (in case of standalone configuration). This approach reduced logging time, e.g. logging a message with one argument takes 1.8us on cpuapp and 6.3us on cpurad. This setting applies only to the case when cpuapp is the owner of those co-oprocessors and shall be updated if that becomes configurable but currently there are no means to detect core owner. Signed-off-by: Krzysztof Chruściński <[email protected]> Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit c2454f2)
1 parent 30d194e commit b10cdab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsys/logging/frontends/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ config LOG_FRONTEND_STMESP_DICT
4646

4747
config LOG_FRONTEND_STMESP_FSC
4848
bool "Send fully self-contained messages"
49-
select LOG_MSG_APPEND_RO_STRING_LOC if !NRF_ETR
49+
select LOG_MSG_APPEND_RO_STRING_LOC if (!NRF_ETR && !SOC_NRF54H20_CPUPPR && \
50+
!SOC_NRF54H20_CPUFLPR)
5051

5152
config LOG_FRONTEND_STMESP_FLUSH_COUNT
5253
int "Number of flushing words"

0 commit comments

Comments
 (0)