[Sound-open-firmware] [PATCH] trace: add more detailed trace vales for init
Liam Girdwood
liam.r.girdwood at linux.intel.com
Tue Jun 6 17:42:20 CEST 2017
Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
src/include/reef/trace.h | 9 ++++++++-
src/init/init.c | 3 ++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/include/reef/trace.h b/src/include/reef/trace.h
index 76908f5..cb861e0 100644
--- a/src/include/reef/trace.h
+++ b/src/include/reef/trace.h
@@ -48,7 +48,10 @@
/* system specific codes */
#define TRACE_BOOT_SYS_WORK (TRACE_BOOT_SYS + 0x100)
-#define TRACE_BOOT_SYS_CPU_FREQ (TRACE_BOOT_SYS + 0x101)
+#define TRACE_BOOT_SYS_CPU_FREQ (TRACE_BOOT_SYS + 0x200)
+#define TRACE_BOOT_SYS_HEAP (TRACE_BOOT_SYS + 0x300)
+#define TRACE_BOOT_SYS_NOTE (TRACE_BOOT_SYS + 0x400)
+#define TRACE_BOOT_SYS_SCHED (TRACE_BOOT_SYS + 0x500)
/* platform/device specific codes */
#define TRACE_BOOT_PLATFORM_MBOX (TRACE_BOOT_PLATFORM + 0x100)
@@ -75,6 +78,10 @@
#define TRACE_CLASS_LOCK (10 << 24)
#define TRACE_CLASS_MEM (11 << 24)
#define TRACE_CLASS_MIXER (12 << 24)
+#define TRACE_CLASS_BUFFER (13 << 24)
+#define TRACE_CLASS_VOLUME (14 << 24)
+#define TRACE_CLASS_SWITCH (15 << 24)
+#define TRACE_CLASS_MUX (16 << 24)
/* move to config.h */
#define TRACE 1
diff --git a/src/init/init.c b/src/init/init.c
index 1a6b11c..31d727e 100644
--- a/src/init/init.c
+++ b/src/init/init.c
@@ -55,10 +55,11 @@ int main(int argc, char *argv[])
trace_point(TRACE_BOOT_ARCH);
/* initialise system services */
+ trace_point(TRACE_BOOT_SYS_HEAP);
init_heap();
init_system_notify();
- trace_point(TRACE_BOOT_SYS);
+ trace_point(TRACE_BOOT_SYS_NOTE);
/* init the platform */
err = platform_init();
--
2.11.0
More information about the Sound-open-firmware
mailing list