diff options
author | Mark Wenning <wenning@us.ibm.com> | 2013-03-18 13:28:15 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-05-08 12:56:03 -0500 |
commit | 7af1d3ab7d3ab0049032cbdb3f04fd0e773724fe (patch) | |
tree | 12d90a802fbae822133dc7958d719e38fb4dfbc1 /src/include/usr/trace | |
parent | 3541d56fbffa428a51ae0eb7bc963e45ce48d836 (diff) | |
download | blackbird-hostboot-7af1d3ab7d3ab0049032cbdb3f04fd0e773724fe.tar.gz blackbird-hostboot-7af1d3ab7d3ab0049032cbdb3f04fd0e773724fe.zip |
Run latest version of BEAM against Hostboot code
Change-Id: I0517e3918039de9fac773baec345fefda13eb3c0
RTC: 66143
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3819
Tested-by: Jenkins Server
Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/trace')
-rw-r--r-- | src/include/usr/trace/trace.H | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/include/usr/trace/trace.H b/src/include/usr/trace/trace.H index 2d3fc8db3..7db581dd3 100644 --- a/src/include/usr/trace/trace.H +++ b/src/include/usr/trace/trace.H @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2012 */ +/* COPYRIGHT International Business Machines Corp. 2011,2013 */ /* */ /* p1 */ /* */ @@ -42,6 +42,21 @@ const uint32_t TRAC_MAX_ARGS = 9; //< Max number of arguments in trace typedef uint32_t trace_hash_val; //< Hash values are 32 bits. + +extern "C" { + +/** + * @brief dummy function to satisfy BEAM. + * C files are normally pre(pre)processed by the "tracepp" script, + * which translates this function call to a call to a unique hash function. + * When BEAM is run on the un-preprocessed files, it outputs lots + * of parser errors because it cannot find this function. + * This must be extern "C", otherwise BEAM cannot find it. + */ +trace_hash_val trace_adal_hash( ... ) ; +} // end extern "C" + + namespace TRACE { class ComponentDesc; // Forward declaration. @@ -150,6 +165,8 @@ namespace TRACE * @brief flush Continuous trace buffers */ void flushBuffers(); + + }; typedef TRACE::ComponentDesc trace_desc_t; |