[Skiboot] [PATCH] gcov: Add gcov data struct to sysfs

Stewart Smith stewart at linux.vnet.ibm.com
Tue Mar 13 15:34:43 AEDT 2018


Matt Brown <matthew.brown.dev at gmail.com> writes:
> Extracting the skiboot gcov data is currently a tedious process which
> involves taking a mem dump of skiboot and searching for the gcov_info
> struct.
> This patch adds the gcov struct to sysfs under /opal/exports. Allowing the
> data to be copied directly into userspace and processed.
>
> Signed-off-by: Matt Brown <matthew.brown.dev at gmail.com>
> ---
>  core/gcov-profiling.c | 18 ++++++++++++++++++
>  core/opal.c           |  9 +++++++++
>  2 files changed, 27 insertions(+)

Again, sorry for the huge delay on this.

I've merged a modified version of this to master as of
8d0f41e021b3475a411371cf87b81ae4af763eca.

I've ended up just dumping out the whole chunk of memory to feed
directly into extract-gcov.c code, and I've tested this to work on a
couple of P9 machines. With some work-in-progress op-test-framework
code, this is getting really close to 100% automatable code coverage
gathering!

Thanks heaps for the patch and sorry again it took so long to look at,
test and merge!

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list