summaryrefslogtreecommitdiffstats
path: root/src/include/usr/trace/trace.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/trace/trace.H')
-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