[Skiboot] [PATCH 0/5] extract-gcov: Update for GCC > 7

Reza Arbab arbab at linux.ibm.com
Sat Mar 15 04:25:10 AEDT 2025


This gets things working with a modern toolchain, verified using the
instructions in doc/gcov.rst with the latest GCC (13.3) from bootlin
[1]:

  1. Build with SKIBOOT_GCOV=1
  2. Copy /sys/firmware/opal/exports/gcov from the running system
  3. ./extract-gcov skiboot.dump $(perl -e "printf '0x%x', 0x30000000 + 0x`grep gcov_info_list skiboot.map|cut -f 1 -d ' '`")
  4. lcov -c -d . -b . -o skiboot-boot.info --gcov-tool $(command -v powerpc64le-linux-gcov)
  5. genhtml --ignore-errors source --legend --title "skiboot" --output-directory=coverage-report skiboot-boot.info
  6. Open coverage-report/index.html

[1] https://toolchains.bootlin.com/downloads/releases/toolchains/powerpc64le-power8/tarballs/powerpc64le-power8--glibc--stable-2024.05-1.tar.xz

Signed-off-by: Reza Arbab <arbab at linux.ibm.com>
---
Reza Arbab (5):
  gcov: Document sysfs interface
  gcov: Don't print 0x with %p
  extract-gcov: Add counters for GCC > 7
  extract-gcov: Fix tag lengths
  extract-gcov: Add checksum field

 core/gcov-profiling.c |  2 +-
 doc/gcov.rst          |  6 +++++-
 extract-gcov.c        | 40 +++++++++++++++++++++++++---------------
 3 files changed, 31 insertions(+), 17 deletions(-)

-- 
2.43.5



More information about the Skiboot mailing list