Skip to content

Commit

Permalink
samples: benchmarks: coremark: unify format in different logging modes
Browse files Browse the repository at this point in the history
Applied the same logging format in the standard logging mode as is
currently used in the multi-domain logging mode in the CoreMark sample.

Ref: NCSDK-27517

Signed-off-by: Kamil Piszczek <[email protected]>
  • Loading branch information
kapi-no committed Nov 13, 2024
1 parent e3ea32c commit 6bc3201
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,10 @@ Other samples

* :ref:`coremark_sample` sample:

* Updated configuration for the :ref:`zephyr:nrf54h20dk_nrf54h20` board to support multi-domain logging using the ARM Coresight STM.
* Updated:

* Configuration for the :ref:`zephyr:nrf54h20dk_nrf54h20` board to support multi-domain logging using the ARM Coresight STM.
* The logging format in the standard logging mode to align it with the format used in the multi-domain logging mode.

Drivers
=======
Expand Down
22 changes: 11 additions & 11 deletions samples/benchmarks/coremark/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,19 +217,19 @@ After programming the sample to your development kit, complete the following ste

.. code-block:: console
*** Booting nRF Connect SDK v2.7.0-b6081ebcf502 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
I: CoreMark sample for nrf52840dk/nrf52840
I: Press Push button switch 0 to start the test ...
*** Booting nRF Connect SDK v2.8.99-e6cb2ebd48e1 ***
*** Using Zephyr OS v3.7.99-86bff0f8539a ***
[00:00:00.481,475] <inf> app: CoreMark sample for nrf52840dk/nrf52840
[00:00:00.488,616] <inf> app: Press Push button switch 0 to start the test ...
I: Push button switch 0 pressed!
I: CoreMark started! CPU FREQ: 64000000 Hz, threads: 1, data size: 2000; iterations: 2000
[00:00:16.955,047] <inf> app: Push button switch 0 pressed!
[00:00:16.961,303] <inf> app: CoreMark started! CPU FREQ: 64000000 Hz, threads: 1, data size: 2000; iterations: 2000
2K performance run parameters for coremark.
CoreMark Size : 666
Total ticks : 400968
Total time (secs): 12.236000
Iterations/Sec : 163.452109
Total ticks : 400842
Total time (secs): 12.232000
Iterations/Sec : 163.505559
Iterations : 2000
Compiler version : GCC12.2.0
Compiler flags : -O3 + see compiler flags added by Zephyr
Expand All @@ -240,8 +240,8 @@ After programming the sample to your development kit, complete the following ste
[0]crcstate : 0x8e3a
[0]crcfinal : 0x4983
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 163.452109 / GCC12.2.0 -O3 + see compiler flags added by Zephyr / STACK
I: CoreMark finished! Push Push button switch 0 to restart ...
CoreMark 1.0 : 163.505559 / GCC12.2.0 -O3 + see compiler flags added by Zephyr / STACK
[00:00:29.273,925] <inf> app: CoreMark finished! Press Push button switch 0 to restart ...
.. group-tab:: Multi-domain logging

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

CONFIG_LOG_MODE_MINIMAL=y
CONFIG_LOG_MODE_IMMEDIATE=y
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

CONFIG_LOG_MODE_MINIMAL=y
CONFIG_LOG_MODE_IMMEDIATE=y
2 changes: 1 addition & 1 deletion samples/benchmarks/coremark/boards/nrf52dk_nrf52832.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

CONFIG_LOG_MODE_MINIMAL=y
CONFIG_LOG_MODE_IMMEDIATE=y
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

CONFIG_SOC_NRF53_CPUNET_ENABLE=y

CONFIG_LOG_MODE_MINIMAL=y
CONFIG_LOG_MODE_IMMEDIATE=y
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause

CONFIG_LOG_MODE_MINIMAL=y
CONFIG_LOG_MODE_IMMEDIATE=y
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

CONFIG_COREMARK_ITERATIONS=4000

CONFIG_LOG_MODE_MINIMAL=y
CONFIG_LOG_MODE_IMMEDIATE=y

0 comments on commit 6bc3201

Please sign in to comment.