Gary-Hobson opened a new pull request, #14838:
URL: https://github.com/apache/nuttx/pull/14838

   ## Summary
   libs: add gcov framework support
   
   In devices without storage media, you can export data to the
   command line and then generate the corresponding gcda file
   
   It can save the result output by calling __gcov_info_to_gcda
   The usage is similar to:
   
https://gcc.gnu.org/onlinedocs/gcc/Freestanding-Environments.html#Profiling-and-Test-Coverage-in-Freestanding-Environments
   
   Usage:
   `./tools/configure.sh qemu-armv7a:nsh`
   Modify the configuration
   ```
   +CONFIG_COVERAGE_ALL=y
   +CONFIG_COVERAGE_MINI=y
   +CONFIG_SYSTEM_GCOV=y
   ```
   Run:
   ```
   qemu-system-arm -cpu cortex-a7 -nographic -smp 4 \
        -machine virt,virtualization=off,gic-version=2 \
        -net none -chardev stdio,id=con,mux=on -serial chardev:con \
        -mon chardev=con,mode=readline -kernel ./nuttx/nuttx -semihosting -s | 
tee gcov.txt
   ./nuttx/tools/gcov_convert.py -i ./gcov.txt
   ./nuttx/tools/gcov.sh -t arm-none-eabi-gcov
   ```
   ## Impact
   
   ## Testing
   qemu 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to