huojianchaoyy commented on PR #21350:
URL: https://github.com/apache/nuttx/pull/21350#issuecomment-7275193321

   This PR is replaced by a rebased series, split into four PRs that build on 
each other:
   
   1. #22597: coverage: add gcov support for xtensa
   2. #22598: coverage: add Clang IR PGO support
   3. #22599: coverage: add GCC PGO support (with apache/nuttx-apps#4213)
   4. #22600: libs/libbuiltin: bring the gcov runtime up to date
   
   On current master, 18 of the 30 commits here are already in master under 
other hashes, so they are dropped. "restore __gcov_unload" and "fix the arm64 
build" are covered by 840791e9277 and 70c2ef5911c. The remaining commits are 
picked unchanged from the Xiaomi Vela tree, together with the Vela commits they 
depend on (the PGO support that `libbuitin: fix libcoverage name` and the gcov 
syscall build on). Each new PR lists any change to a commit and the reason.
   
   The review comments here:
   
   - @casaroli: `gcov.c` keeps `<nuttx/lib/lib.h>` and the 
`CONFIG_ARCH_HAVE_FORK` guard from master, and `qemu-armv8a:nsh_smp` with 
`CONFIG_COVERAGE_MINI` and `CONFIG_COVERAGE_ALL` builds at every commit. 
`COVERAGE_DEFAULT_PREFIX_STRIP` stays "0". `include/gcov.h` keeps the 
declarations of `__gcov_init`, `__gcov_merge_add`, `__gcov_exit` and 
`__gcov_fork`. The sim kasan defconfig is not touched. `CONFIG_COVERAGE_PGO` 
now comes from Kconfig (#22598). The Make build compiles the libgcc PGO sources 
only with it and picks libgcc's copies, not compiler-rt's (#22599). The Testing 
sections list the configurations that were built.
   - The `gcov` syscall keeps the Vela condition 
`defined(CONFIG_COVERAGE_ALL)`. #22600 now also has the Clang runtime's 
`gcov()`. With `CONFIG_COVERAGE_TOOLCHAIN` or `CONFIG_COVERAGE_COMPILER_RT` in 
a protected or kernel build, nothing defines `gcov()` yet. I could not build 
that combination here, so please say if you want the condition narrowed in 
#22600.
   - @jerpelea: the new files have the SPDX license header.
   - The commit messages have no Change-Id lines, and every commit is signed 
off.
   
   Thanks @W-M-R for the original work. I suggest closing this PR in favor of 
the four above.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to