[ofw] [PATCH] [COMPLIB] allow C++ programs to link using complib performance counters.

Alex Naslednikov xalex at mellanox.co.il
Wed Dec 22 01:13:56 PST 2010


Please, apply.
I will apply it on MLNX branch and will start performance profiling as well.

-----Original Message-----
From: ofw-bounces at lists.openfabrics.org [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Smith, Stan
Sent: Wednesday, December 22, 2010 3:17 AM
To: ofw at lists.openfabrics.org
Subject: [ofw] [PATCH] [COMPLIB] allow C++ programs to link using complib performance counters.


'#define PERF_TRACK_ON 1' is not enough to allow C++ programs to find complib cl_perf_xxx() routines...

signed-off-by: stan smith <stan.smith at intel.com>

--- A/inc/complib/cl_perf.h     Tue Dec 21 17:09:11 2010
+++ B/inc/complib/cl_perf.h     Thu Dec 16 09:18:14 2010
@@ -764,7 +764,10 @@
  * performance tracking.
  */

-
+#ifdef __cplusplus
+extern "C"
+{
+#endif
 /*
  * Initialize the state of the performance tracking structure.
  */
@@ -803,5 +806,8 @@
 __cl_perf_display(
        IN      const cl_perf_t* const  p_perf );

+#ifdef __cplusplus
+}      /* extern "C" */
+#endif

 #endif /* _CL_PERF_H_ */
_______________________________________________
ofw mailing list
ofw at lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw



More information about the ofw mailing list