zephyr/tests/benchmarks/thread_metric
Peter Mitsis 11f69fb686 tests: Fix thread_metric message processing
Changes the type of both the tm_message_sent and tm_message_received
arrays from 'unsigned long' to 'unsigned int'. The test expects those
arrays to be 16 bytes long. This was a problem on 64-bit platforms
as 'unsigned long' is 8 bytes, which made the arrays 32 bytes long.
On both our supported 32-bit and 64-bit platforms, 'unsigned int'
works out to be 4 bytes long, thereby giving us the requisite 16
byte buffer.

Although a case could be made for using 'uint32_t', this was not
chosen simply to keep the structure as close as practical to the
original thread_metric implementation.

Fixes #83864

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2025-02-05 01:12:52 +01:00
..
src tests: Fix thread_metric message processing 2025-02-05 01:12:52 +01:00
CMakeLists.txt
Kconfig
prj.conf tests: thread_metric: Disable memory slab ptr validation 2024-12-14 01:03:28 +01:00
testcase.yaml tests: benchmarks: thread_metric: Record measurements 2025-01-16 22:38:51 +01:00
thread_metric_readme.txt tests: benchmarks: thread_metric: Record measurements 2025-01-16 22:38:51 +01:00