From 96c9925be98578480be79d2385ab4dc005f8218d 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/amd64_config.xml | 3 +- config/examples/ppc64_config.xml | 3 +- config/examples/ppc_config.xml | 3 +- config/examples/sparc32_config.xml | 3 +- config/examples/sparc64_config.xml | 3 +- config/scripts/tracetool | 692 ++++++++++++++++++++++++++++++++++++ drivers/esp.c | 3 +- drivers/fw_cfg.c | 22 ++ drivers/ide.c | 6 +- include/arch/common/fw_cfg.h | 9 +- include/libopenbios/simpletrace.h | 31 ++ libopenbios/build.xml | 33 ++ libopenbios/simpletrace.c | 76 ++++ trace-events | 3 + 14 files changed, 879 insertions(+), 11 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/amd64_config.xml b/config/examples/amd64_config.xml index 33d4267..ba3838b 100644 --- a/config/examples/amd64_config.xml +++ b/config/examples/amd64_config.xml @@ -14,7 +14,8 @@