From 6656302a303be3360f016684db74e75f1ea3034c Mon Sep 17 00:00:00 2001 Message-Id: From: Blue Swirl Date: Tue, 23 Aug 2011 21:08:53 +0000 Subject: [PATCH] Introduce tracing system from QEMU Instead of traditional debugging printf statements, which have the bad habit of suffering from bit rot, introduce tracepoints based on similar system in QEMU. Only stderr (printk) and simpletrace (output via fw_cfg device to QEMU) back ends are supported. Signed-off-by: Blue Swirl --- config/examples/sparc32_config.xml | 3 +- config/scripts/tracetool | 692 ++++++++++++++++++++++++++++++++++++ drivers/esp.c | 3 +- drivers/fw_cfg.c | 30 ++ include/arch/common/fw_cfg.h | 4 + include/libopenbios/simpletrace.h | 31 ++ libopenbios/build.xml | 33 ++ libopenbios/simpletrace.c | 60 +++ trace-events | 1 + 9 files changed, 855 insertions(+), 2 deletions(-) create mode 100644 config/scripts/tracetool create mode 100644 include/libopenbios/simpletrace.h create mode 100644 libopenbios/simpletrace.c create mode 100644 trace-events diff --git a/config/examples/sparc32_config.xml b/config/examples/sparc32_config.xml index f2d6afc..2b449cc 100644 --- a/config/examples/sparc32_config.xml +++ b/config/examples/sparc32_config.xml @@ -19,7 +19,8 @@