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: [email protected]
> [mailto:[email protected]] On Behalf Of Smith, Stan
> Sent: Wednesday, December 22, 2010 3:17 AM
> To: [email protected]
> 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 <[email protected]>
>
> --- 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
> [email protected]
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to