diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2011-03-31 16:34:01 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2011-03-31 16:34:01 -0500 |
commit | bc6668cd04209d34c04b84139fdfb353166e3335 (patch) | |
tree | 827e0a8818f11268e113c5b4aee63f9b1f3e3f4d /src/usr/example | |
parent | ec8abe32d3eccc9ef46341a045097b5d4abde886 (diff) | |
download | talos-hostboot-bc6668cd04209d34c04b84139fdfb353166e3335.tar.gz talos-hostboot-bc6668cd04209d34c04b84139fdfb353166e3335.zip |
Initial code for trace api.
Diffstat (limited to 'src/usr/example')
-rw-r--r-- | src/usr/example/example.C | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/example/example.C b/src/usr/example/example.C index 97c8d5cbb..6aa188f3c 100644 --- a/src/usr/example/example.C +++ b/src/usr/example/example.C @@ -4,11 +4,15 @@ #include <sys/task.h> #include <tracinterface.H> -static mutex_t value = mutex_create(); +//static mutex_t value = mutex_create(); + +trace_desc_t g_exampleTrace; +TRAC_INIT(&g_exampleTrace, "EXAMPLE", 4096); extern "C" void _start(void*) { printk("Executing example module.\n"); + TRACFCOMP(g_exampleTrace, "Executing example module: %d", task_gettid()); task_end(); } |