aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-05-25 18:30:35 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-05-25 18:33:18 +1000
commit35c65cf4e97c76fae58ba3f997f9667c10c3871d (patch)
tree852fbfc46b28a9116b5488d80c59ab3526898b25 /doc
parent23dcbc3adee2c6ea4e6c1149ef9fc6b59de581fa (diff)
downloadskiboot-35c65cf4e97c76fae58ba3f997f9667c10c3871d.zip
skiboot-35c65cf4e97c76fae58ba3f997f9667c10c3871d.tar.gz
skiboot-35c65cf4e97c76fae58ba3f997f9667c10c3871d.tar.bz2
make extract-gcov usable with math from skiboot.map
No longer need to parse the skiboot log to find out where data structures are. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/gcov.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/gcov.txt b/doc/gcov.txt
index c5944d0..956c5c8 100644
--- a/doc/gcov.txt
+++ b/doc/gcov.txt
@@ -40,13 +40,13 @@ FSP:
linux (e.g. petitboot environment):
dd if=/proc/kcore skip=1572864 count=6656 of=skiboot.dump
-You basically need to dump out the 2MB of skiboot.
+You basically need to dump out the first 3MB of skiboot memory.
-You will need to find the following message in the skiboot log:
-[2822590,5] GCOV: gcov_info_list at 0x3010a350
+Then you need to find out where the gcov data structures are:
+perl -e "printf '0x%x', 0x30000000 + 0x`grep gcov_info_list skiboot.map|cut -f 1 -d ' '`"
That address needs to be supplied to the extract-gcov utility:
-./extract-gcov skiboot.dump 0x3010a350
+./extract-gcov skiboot.dump 0x3023ec40
Once you've run extract-gcov, it will have extracted the gcda files
from the skiboot memory image.