summaryrefslogtreecommitdiffstats
path: root/src/usr/example
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-03-31 16:34:01 -0500
committerPatrick Williams <iawillia@us.ibm.com>2011-03-31 16:34:01 -0500
commitbc6668cd04209d34c04b84139fdfb353166e3335 (patch)
tree827e0a8818f11268e113c5b4aee63f9b1f3e3f4d /src/usr/example
parentec8abe32d3eccc9ef46341a045097b5d4abde886 (diff)
downloadtalos-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.C6
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();
}
OpenPOWER on IntegriCloud