nuttx-mirror/libs
yinshengkai 0413d74f31 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

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-11-22 19:08:08 +08:00
..
libbuiltin libs: add gcov framework support 2024-11-22 19:08:08 +08:00
libc lib_getifaddrs.c:set the last multi ipv6addr next pointer to be NULL 2024-11-21 21:31:28 +08:00
libdsp libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
libm libm: fix typo caused compile failed 2024-11-14 19:38:58 +08:00
libnx makefile/build: Delete unnecessary bin and kbin folders 2024-11-10 01:18:26 +08:00
libxx libcxxmini: Add missing runtime related classes. 2024-11-21 20:03:15 +08:00
CMakeLists.txt libs: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00