summaryrefslogtreecommitdiffstats
path: root/src/include/usr/trace
diff options
context:
space:
mode:
authorMark Wenning <wenning@us.ibm.com>2013-03-18 13:28:15 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-05-08 12:56:03 -0500
commit7af1d3ab7d3ab0049032cbdb3f04fd0e773724fe (patch)
tree12d90a802fbae822133dc7958d719e38fb4dfbc1 /src/include/usr/trace
parent3541d56fbffa428a51ae0eb7bc963e45ce48d836 (diff)
downloadblackbird-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.H19
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;
OpenPOWER on IntegriCloud