Skip to content

Commit

Permalink
samples: benchmark: 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 <Kamil.Piszczek@nordicsemi.no>
  • Loading branch information
kapi-no committed Nov 5, 2024
1 parent 91a2309 commit 1fa8880
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
22 changes: 11 additions & 11 deletions samples/benchmarks/coremark/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,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 @@ -237,8 +237,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 1fa8880

Please sign in to comment.