summaryrefslogtreecommitdiffstats
path: root/src/usr/example/example.C
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2011-05-10 17:20:10 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-05-16 16:51:41 -0500
commite604f02230c3decedbdd56a3cfef66b0709b74dc (patch)
tree85ebf5ba3dd090bd80d8651fdf4b4855a2022a30 /src/usr/example/example.C
parentf25d156f4a222923d70563ba960858f4e42a80c8 (diff)
downloadblackbird-hostboot-e604f02230c3decedbdd56a3cfef66b0709b74dc.tar.gz
blackbird-hostboot-e604f02230c3decedbdd56a3cfef66b0709b74dc.zip
Base cxxtest class and some examples.
Change-Id: I8ff2fdffe8be34f5ece9a5e4b2f5d07a4bc73d73 Reviewed-on: http://gfwr801.rchland.ibm.com:8080/gerrit/71 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
Diffstat (limited to 'src/usr/example/example.C')
-rw-r--r--src/usr/example/example.C10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/usr/example/example.C b/src/usr/example/example.C
index 193bbb9d3..69291325b 100644
--- a/src/usr/example/example.C
+++ b/src/usr/example/example.C
@@ -11,6 +11,7 @@
#include <sys/vfs.h>
#include <sys/task.h>
#include <trace/interface.H>
+#include <example/example.H>
//static mutex_t value = mutex_create();
trace_desc_t *g_trac_test = NULL;
@@ -42,3 +43,12 @@ void _start(void*)
task_end();
}
+
+uint64_t example1_function()
+{
+ uint64_t l_rc = 0;
+
+ TRACFCOMP(g_trac_test, "Someone Called example1_function!");
+
+ return l_rc;
+}
OpenPOWER on IntegriCloud