summaryrefslogtreecommitdiff
path: root/scripts/sysgen
diff options
context:
space:
mode:
authorJuan Manuel Cruz <juan.m.cruz.alcaraz@intel.com>2016-03-04 09:42:23 -0600
committerAnas Nashif <nashif@linux.intel.com>2016-03-11 22:13:04 +0000
commit08ed2fc10694135f224a9807f737387b4bf8d9b2 (patch)
tree08bb42bf18dc4d9d02c4f124c544e2dc3217945f /scripts/sysgen
parent0588da0b4a2b6407f134abeab5b59e397530fd3e (diff)
debug: adds object tracing capability to microkernel events
Change-Id: I227fd996fa4046efe48b7383a60d3ac01ec9f946 Signed-off-by: Juan Manuel Cruz <juan.m.cruz.alcaraz@intel.com>
Diffstat (limited to 'scripts/sysgen')
-rwxr-xr-xscripts/sysgen9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/sysgen b/scripts/sysgen
index 51e669806..1fbf87eea 100755
--- a/scripts/sysgen
+++ b/scripts/sysgen
@@ -751,6 +751,15 @@ def kernel_main_c_node_init():
kernel_main_c_out("\tSYS_TRACING_OBJ_INIT(micro_mem_pool, " +
"&(_k_mem_pool_list[%d]));\n" % (pool_count))
pool_count = pool_count + 1;
+
+ # event map object id
+ for event in event_list:
+ # no need to expose the irq task events
+ if not (event[0].startswith("_TaskIrqEvt")):
+ name = event[0];
+ kernel_main_c_out("\tSYS_TRACING_OBJ_INIT(micro_event, " +
+ "&_k_event_obj_%s);\n" % (name))
+
kernel_main_c_out("#endif\n")
kernel_main_c_out("}\n")