Dmitry Eremin-Solenikov(lumag) replied on github web page:

DEPENDENCIES
line 13
@@ -204,6 +204,88 @@ Prerequisites for building the OpenDataPlane (ODP) API
    1024MB of memory:
    $ sudo ODP_PKTIO_DPDK_PARAMS="-m 1024" ./test/performance/odp_l2fwd -i 0 -c 
1
 
+3.5 Code instrumentation with PAPI library (optional)
+
+   PAPI library is used to instrument ODP API.
+
+3.5.1 Building PAPI library
+
+   ODP example library 'instrum' is using PAPI library to retrieve performance
+   counters associated with execution of ODP API. PAPI library is currently at 
5.6.0.
+   However, if possible one should try to use the latest PAPI master branch 
commit for
+   the best performance and the latest bug fixes.


Comment:
Is the difference between 5.6 and master _that_ huge to warrant special notice?

> Dmitry Eremin-Solenikov(lumag) wrote:
> Drop this alltogether. PAPI has pkg-config file, so no need to reinvent it.


>> Dmitry Eremin-Solenikov(lumag) wrote:
>> Use `PKG_CHECK_MODULES([PAPI], [papi-5], [code_instrumentation=yes])` here.


>>> Dmitry Eremin-Solenikov(lumag) wrote:
>>> `AS_HELP_STRING` here


>>>> Dmitry Eremin-Solenikov(lumag) wrote:
>>>> Again, use `$(PAPI_LIBS)` here


>>>>> Dmitry Eremin-Solenikov(lumag) wrote:
>>>>> Please restructure include flags:
>>>>>  - Use `$(ODP_INCLUDES)` to get all ODP includes
>>>>>  - Use `$(PAPI_CFLAGS)` here.


https://github.com/Linaro/odp/pull/443#discussion_r165803599
updated_at 2018-02-03 03:36:49

Reply via email to