summaryrefslogtreecommitdiff
path: root/util/genprof/README
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-07-24 15:54:31 +0300
committerNico Huber <nico.h@gmx.de>2020-12-02 23:35:58 +0000
commit8c99c27df10f6c5a120e41ffb0948e357f5a2d20 (patch)
tree710940c338b8b2a3ddebab60faf7856725ca37e2 /util/genprof/README
parent5e053af7a677d0c1f98e624057ba7409f8492596 (diff)
lib/trace: Remove TRACE support
Looks like the option is generally not compatible with garbage collections. Nothing gets inlined, for example is_smp_boot() no longer evaluates to constant false and thus the symbols from secondary.S would need to be present for the build to pass even if we set SMP=n. Also the addresses of relocatable ramstage are currently not normalised on the logs, so util/genprof would be unable dress those. Change-Id: I0b6f310e15e6f4992cd054d288903fea8390e5cf Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45757 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'util/genprof/README')
-rw-r--r--util/genprof/README31
1 files changed, 0 insertions, 31 deletions
diff --git a/util/genprof/README b/util/genprof/README
deleted file mode 100644
index d4159c2fd6..0000000000
--- a/util/genprof/README
+++ /dev/null
@@ -1,31 +0,0 @@
-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/device/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/ramstage | ./gprof2dot.py -e0 -n0 | dot -Tpng -o output.png
-
-Which generates a PNG with a call graph.