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

Smith, Stan stan.smith at intel.com
Wed Dec 22 10:45:49 PST 2010


Alex Naslednikov wrote:
> Please, apply.
> I will apply it on MLNX branch and will start performance profiling
> as well.

committed as

Revision: 3034
Author: stansmith
Date: 9:14:17 AM, Wednesday, December 22, 2010
Message:
[COMPLIB] Allow C++ programs to link with cl_perf_xxx() routines.
----
Modified : /gen1/trunk/inc/complib/cl_perf.h

>
> -----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