Hi,

Check coreboot/util/genprof/README which I forgot to mention. There is a script which transforms that into human readable symbols. Just make sure the build directory contains what has been actually used to run it.

Thanks
Rudolf

Function tracing
----------------

Enable CONFIG_TRACE in debug menu. Run the compiled image on target. You will 
get
a log with a lot of lines like:

...
~0x001072e8(0x00100099)
~0x00108bc0(0x0010730a)
...

First address is address of function which was just entered, the second address
is address of functions which call that.

You can use the log2dress to dress the log again:

...
src/arch/x86/lib/c_start.S:85 calls /home/ruik/coreboot/src/boot/selfboot.c:367
/home/ruik/coreboot/src/boot/selfboot.c:370 calls /home/ruik/coreboot/src/devices/device.c:325
...

Alternatively, you can use genprof to generate a gmon.out file, which can be 
used
by gprof to show the call traces. You will need to install uthash library to 
compile
that.

Great use is:

make
./genprof /tmp/yourlog ; gprof ../../build/coreboot_ram | ./gprof2dot.py -e0 -n0 | dot -Tpng -o output.png

Which generates a PNG with a call graph.






On 16.11.2011 19:24, Christian wrote:

If you deselect "GDB" support in debug menu, maybe the tracing will print out
what it is executing. You just need to turn on tracing support in debug menu.


Ok, I have enabled tracing support and after read resources of
PCI DOMAIN 0000 following happens:


PCI_DOMAIN: 0000 read_resources bus 0 link: 0
~0x00107c79(0x00104779)
~0x00107a98(0x00107c9e)
~0x001078c7(0x00107ac9)
~0x0010630e(0x001078ec)
~0x00106236(0x00106333)
~0x001062c7(0x0010633c)
~0x0010aae4(0x001063e5)
~0x00108738(0x001078fa)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00107658(0x00107908)
~0x00108738(0x0010767e)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x0010768c)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x00107695)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076a3)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x001076ac)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076bb)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x001078c7(0x00107ac9)
~0x0010630e(0x001078ec)
~0x00106236(0x00106333)
~0x001062c7(0x0010633c)
~0x0010aae4(0x001063e5)
~0x00108738(0x001078fa)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00107658(0x00107908)
~0x00108738(0x0010767e)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x0010768c)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x00107695)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076a3)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x001076ac)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076bb)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x001078c7(0x00107ac9)
~0x0010630e(0x001078ec)
~0x00106236(0x00106333)
~0x00106236(0x00106333)
~0x001062c7(0x0010633c)
~0x0010aae4(0x001063e5)
~0x00108738(0x001078fa)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00107658(0x00107908)
~0x00108738(0x0010767e)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x0010768c)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x00107695)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076a3)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x001076ac)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076bb)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x001078c7(0x00107ac9)
~0x0010630e(0x001078ec)
~0x00106236(0x00106333)
~0x00106236(0x00106333)
~0x001062c7(0x0010633c)
~0x0010aae4(0x001063e5)
~0x00108738(0x001078fa)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00107658(0x00107908)
~0x00108738(0x0010767e)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x0010768c)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x00107695)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076a3)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x001076ac)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076bb)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x001078c7(0x00107ac9)
~0x0010630e(0x001078ec)
~0x00106236(0x00106333)
~0x00106236(0x00106333)
~0x001062c7(0x0010633c)
~0x0010aae4(0x001063e5)
~0x00108738(0x001078fa)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00107658(0x00107908)
~0x00108738(0x0010767e)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x0010768c)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x00107695)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076a3)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x001076ac)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076bb)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x001078c7(0x00107ac9)
~0x0010630e(0x001078ec)
~0x00106236(0x00106333)
~0x00106236(0x00106333)
~0x001062c7(0x0010633c)
~0x0010aae4(0x001063e5)
~0x00108738(0x001078fa)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00107658(0x00107908)
~0x00108738(0x0010767e)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x0010768c)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x00107695)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076a3)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x001076ac)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076bb)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00106236(0x00107aeb)
~0x00106236(0x00107aeb)
~0x001076d9(0x00107caa)
~0x0010630e(0x001076fb)
~0x00106236(0x00106333)
~0x001062c7(0x0010633c)
~0x0010aae4(0x001063e5)
~0x00108738(0x00107706)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00107658(0x00107711)
~0x00108738(0x0010767e)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x0010768c)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x00107695)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076a3)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00108738(0x001076ac)
~0x001085f1(0x00108759)
~0x001085a0(0x00108658)
~0x001085a0(0x00108760)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00100f9a(0x00108772)
~0x00108849(0x001076bb)
~0x001085f1(0x0010886a)
~0x001085a0(0x00108658)
~0x001085a0(0x00108871)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00100dc4(0x0010888a)
~0x00106236(0x00107793)
~0x00106236(0x00107793)
~0x00107b02(0x00104779)
~0x00107b02(0x00104779)
~0x00107547(0x00107b35)
~0x00108689(0x0010756d)
~0x001085f1(0x001086aa)
~0x001085a0(0x00108658)
~0x001085a0(0x001086b1)
~0x001010d1(0x001086c2)
~0x001010d1(0x001086c2)
~0x001010d1(0x001086c2)
~0x00108790(0x0010757e)
~0x001085f1(0x001087bb)
~0x001085a0(0x00108658)
~0x001085a0(0x001087c2)
~0x00100ef7(0x001087d8)
~0x00100ef7(0x001087d8)
~0x00100ef7(0x001087d8)
~0x00108689(0x0010758d)
~0x001085f1(0x001086aa)
~0x001085a0(0x00108658)
~0x001085a0(0x001086b1)
~0x001010d1(0x001086c2)
~0x001010d1(0x001086c2)
~0x001010d1(0x001086c2)
~0x00108790(0x0010759b)
~0x001085f1(0x001087bb)
~0x001085a0(0x00108658)
~0x001085a0(0x001087c2)
~0x00100ef7(0x001087d8)
~0x00100ef7(0x001087d8)
~0x00100ef7(0x001087d8)

I hope somebody can read this cryptic stuff :D
chris


--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to