diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2011-01-10 19:44:39 -0600 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2011-01-10 19:44:39 -0600 |
commit | faa71280d086246c685a23f2acb2330981253f8c (patch) | |
tree | 3a4a6a05ff5e4e962267155edcd6025a52aa0b3e /src/usr/example | |
parent | 9fb915bfdc1165bd645c25619623c677b00432b4 (diff) | |
download | talos-hostboot-faa71280d086246c685a23f2acb2330981253f8c.tar.gz talos-hostboot-faa71280d086246c685a23f2acb2330981253f8c.zip |
Importing trace header files from FSP trace and integrating into build.
Diffstat (limited to 'src/usr/example')
-rw-r--r-- | src/usr/example/example.C | 2 | ||||
-rw-r--r-- | src/usr/example/makefile | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/example/example.C b/src/usr/example/example.C index 873291be2..0965bcfd2 100644 --- a/src/usr/example/example.C +++ b/src/usr/example/example.C @@ -2,6 +2,7 @@ #include <sys/mutex.h> #include <sys/vfs.h> #include <sys/task.h> +#include <tracinterface.H> static mutex_t value = mutex_create(); @@ -19,6 +20,7 @@ void _init(void*) } printk("Here! %lx, %s\n", (uint64_t) value, VFS_ROOT); + TRACFCOMP(NULL, "This is a test %lx, %s", (uint64_t) value, VFS_ROOT); } extern "C" diff --git a/src/usr/example/makefile b/src/usr/example/makefile index 608aacc87..73642a088 100644 --- a/src/usr/example/makefile +++ b/src/usr/example/makefile @@ -11,6 +11,6 @@ LIBRARIES = $(addprefix ${IMGDIR}/, ${LIBS}) all: ${OBJECTS} ${LIBRARIES} clean: - (rm -f ${OBJECTS} ${LIBRARIES} ) + (rm -f ${OBJECTS} $(addsuffix .hash, ${OBJECTS}) ${LIBRARIES} ) include ${ROOTPATH}/config.mk |