-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests/kernel/obj_tracing failed on mec15xxevb_assy6853 board. #21756
Comments
I am sure this is not a bug, looks like the board is enabling all kind of options that most likely have some kernel objects, so the counting does not match. |
this is not a bug, the PS2 and other IPs being enabled by default add objects and the count does not match anymore, so the test fails. Boards should by default only enable the bare minimum, all optional features should only be enabled by the application using them, and not by default for every configuration |
The current number of threads "10" did not matched the expected "9". The kscan driver has a thread which is messing with the expected count. The test passes after disabling it ... I'm going to create a PR for disabling the KSCAN in the board.
|
This test passes by disabling KSCAN in zephyr/boards/arm/mec15xxevb_assy6853/mec15xxevb_assy6853_defconfig |
#22921 has a more generic fix that should work with pre-existing conditions. Please verify. |
Count existing threads before the test has started to deal with platforms that have some existing services. Remove hard-coded accounting for IPM, this is now counted before the test starts. Fixes zephyrproject-rtos#21756 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Count existing threads before the test has started to deal with platforms that have some existing services. Remove hard-coded accounting for IPM, this is now counted before the test starts. Fixes #21756 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Count existing threads before the test has started to deal with platforms that have some existing services. Remove hard-coded accounting for IPM, this is now counted before the test starts. Fixes zephyrproject-rtos#21756 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Count existing threads before the test has started to deal with platforms that have some existing services. Remove hard-coded accounting for IPM, this is now counted before the test starts. Fixes #21756 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
To Reproduce
Steps to reproduce the behavior:
https://docs.zephyrproject.org/latest/boards/arm/mec1501modular_assy6885/doc/index.html to set up.
Screenshots or console output
*** Booting Zephyr OS build zephyr-v2.1.0-744-g7ee5cf6a0bd1 ***
Running test suite obj_tracing
starting test - test_philosophers_tracing
SEMAPHORE REF: 0x00118628
SEMAPHORE REF: 0x00118610
SEMAPHORE REF: 0x001185f8
SEMAPHORE REF: 0x001185e0
SEMAPHORE REF: 0x001185c8
SEMAPHORE REF: 0x00118ba4
SEMAPHORE REF: 0x00118104
SEMAPHORE REF: 0x00118cc0
SEMAPHORE REF: 0x00118cdc
SEMAPHORE REF: 0x0011cd74
SEMAPHORE REF: 0x0011cd5c
SEMAPHORE QUANTITY: 5
COOP: 0x00118640 OPTIONS: 0x00, STATE: 0x40
COOP: 0x0011893c OPTIONS: 0x00, STATE: 0x02
COOP: 0x001188a4 OPTIONS: 0x00, STATE: 0x02
COOP: 0x0011880c OPTIONS: 0x00, STATE: 0x40
COOP: 0x00118774 OPTIONS: 0x00, STATE: 0x02
COOP: 0x001186dc OPTIONS: 0x00, STATE: 0x40
PREMPT: 0x00118eac OPTIONS: 0x00, STATE: 0x02
COOP: 0x00118124 OPTIONS: 0x00, STATE: 0x02
COOP: 0x00118cf4 OPTIONS: 0x01, STATE: 0x00
COOP: 0x00118d8c OPTIONS: 0x01, STATE: 0x40
THREAD QUANTITY: 10
Assertion failed at ZEPHYR_BASE/tests/kernel/obj_tracing/src/main.c:120: object_monitor: (((thread_counter == TOTAL_THREADS) && (obj_counter == TOTAL_OBJECTS)) is false)
test failed
FAIL - test_philosophers_tracing
starting test - test_obj_tracing
PASS - test_obj_tracing
Test suite obj_tracing failed.
PROJECT EXECUTION FAILED
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: