Testing SMP Configuration with rtems-test

Jerzy J yuralogplus at gmail.com
Sun Feb 20 14:01:19 UTC 2022


Thanks a lot Jiri, that works!

However, I'm also getting weird behaviour when the coverage report is being
generated.
In the log file I get something like:
`Running coverage analysis
(/home/yoman/RTEMS/rtems/6/bin/leon3-sis-coverage)
Function is both external and inlined: _Thread_Priority_perform_actions
Function is both external and inlined: _Thread_Priority_perform_actions
Function is both external and inlined: _Thread_Clear_state_locked
...
similar stuff
...
Function is both external and inlined: rtems_counter_initialize_converter
Function is both external and inlined: rtems_version_minor
Function is both external and inlined: _Heap_Get_first_and_last_block
Error while running sparc-rtems6-objdump on
/home/yoman/RTEMS/src/rtems/build/sparc/gr712rc/testsuites/validation/ts-model-barrier-mgr-0.exe
Objdump error in generating objdump
Coverage time: 0:00:00.925464
Coverage generating reports
Coverage analysis finished: /home/yoman/RTEMS/rtems/6/bin`

In the generated report everything is at 100% coverage, but it just
contains unreferenced symbols and 0's otherwise. Branch and other reports
are empty.
I checked and it's same when it's not SMP, as well as when trying other
tests. In fact it seems I have exactly same issue with any test I try, even
hello.exe.

Any suggestions at what I might be doing wrong?

Thanks again and all the best,
Jerzy

sob., 19 lut 2022 o 13:26 Jerzy J <yuralogplus at gmail.com> napisał(a):

> Hi,
>
> I've been trying to get some coverage reports on my tests. I'm using RTEMS
> 6 and gr712rc/leon3 bsps.
>
> Normally I run my tests using:
> `./sparc-rtems6-sis -leon3 -r s -m 4
> $HOME/RTEMS/src/rtems/build/sparc/gr712rc/testsuites/validation/ts-model-barrier-mgr-0.exe`
> , where I can specify `-m 4`.
>
> However when using rtems-test:
> `./rtems-test --rtems-tools=$HOME/RTEMS/rtems/6 --log=log_leon3_sis
> --rtems-bsp=leon3-sis-cov --coverage
> ~/RTEMS/src/rtems/build/sparc/gr712rc/testsuites/validation/ts-model-barrier-mgr-0.exe
> `
> My tests fail, since as I can see in the log it runs:
> `=>  exe: /home/yoman/RTEMS/rtems/6/bin/sparc-rtems6-sis -leon3 -nouartrx
> -r -tlim 200 s -cov
> /home/yoman/RTEMS/src/rtems/build/sparc/gr712rc/testsuites/validation/ts-model-barrier-mgr-0.exe`
> resulting in only 1 cpu online.
>
> Is there a way I can pass `-m 4` into rtems-test or is there some extra
> configuration step I'm probably not aware of that handles this?
>
> My 'config.ini' file:
> `[sparc/gr712rc]
> RTEMS_SMP = True
> BUILD_TESTS = True`
>
> Thank you in advance and all the best!
> Jerzy
>
>


More information about the users mailing list