[Skiboot] [PATCH 1/5] gcov: Document sysfs interface
    Reza Arbab 
    arbab at linux.ibm.com
       
    Sat Mar 15 04:25:11 AEDT 2025
    
    
  
Add a line to the gcov documentation for what was added in commit
8d0f41e021b3 ("gcov: Add gcov data struct to sysfs").
Signed-off-by: Reza Arbab <arbab at linux.ibm.com>
---
 doc/gcov.rst | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/gcov.rst b/doc/gcov.rst
index d50fbe557d05..c0c2737acdaf 100644
--- a/doc/gcov.rst
+++ b/doc/gcov.rst
@@ -42,10 +42,14 @@ FSP: ::
 
   getmemproc 30000000 3407872 -fb skiboot.dump
 
-linux (e.g. petitboot environment): ::
+linux (e.g. petitboot environment) via ``proc``: ::
 
   dd if=/proc/kcore skip=1572864 count=6656  of=skiboot.dump
 
+linux (e.g. petitboot environment) via ``sysfs``: ::
+
+  cp /sys/firmware/opal/exports/gcov skiboot.dump
+
 You basically need to dump out the first 3MB of skiboot memory.
 
 Then you need to find out where the gcov data structures are: ::
-- 
2.43.5
    
    
More information about the Skiboot
mailing list