ODP API instrumentation with PAPI (Performance API) library 
(http://icl.cs.utk.edu/papi)
"instrum" example is using library preload, symbols overloading and PAPI to 
obtain performance counters (like data cache miss or conditional branch count) 
for execution of ODP API calls. Performance counters are saved in CSV file 
format and can be presented in a graphical form (with Excel or similar).
Build:
./bootstrap
./configure --with-papi-path=< path to papi install> 
--with-code-instrum-profile=<ddf|scheduler|all>
make clean
make
Configure path to papi install:
--with-papi-path= < path to papi install>
Configure instrumented ODP API:
--with-code-instrum-profile=<ddf|scheduler|all>
Default: all
Storage directory:
export ODP_INSTRUM_STORE_DIR= < folder to store csv files >
Default directory: /tmp
e.g.
export ODP_INSTRUM_STORE_DIR=/home/bopi/Work/linaro/store
Configure PAPI events set:
export ODP_INSTRUM_PAPI_EVENTS=
Default: PAPI_BR_CN,PAPI_L2_DCM
e.g:
export ODP_INSTRUM_PAPI_EVENTS=PAPI_BR_CN,PAPI_L2_DCM,PAPI_BR_UCN
Set load library path:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH::
e.g.
export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/bopi/Work/linaro/odp/lib/.libs:/home/bopi/Work/linaro/papi_inst/lib
Run:
LD_PRELOAD=libinstrum.so.0.0.0 ./example/generator/.libs/odp_generator -I eth1 
-m r -c 0x8

----------------github------------------------
/** Email created from pull request 406 (bogdanPricope:cat_benchmark_pr)
 ** https://github.com/Linaro/odp/pull/406
 ** Patch: https://github.com/Linaro/odp/pull/406.patch
 ** Base sha: 5251bda54b51d3754aaf8c988aa959b48b4d25f9
 ** Merge commit sha: 2d6677b6a3794cad32abe2af7314215ea22921c3
 **/
----------------/github------------------------

----------------checkpatch.pl------------------------
total: 0 errors, 0 warnings, 0 checks, 22 lines checked


to_send-p-000.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 0 checks, 59 lines checked


to_send-p-001.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 0 checks, 639 lines checked


to_send-p-002.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 0 checks, 128 lines checked


to_send-p-003.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 0 checks, 85 lines checked


to_send-p-004.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 0 checks, 88 lines checked


to_send-p-005.patch has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 0 checks, 32 lines checked


to_send-p-006.patch has no obvious style problems and is ready for submission.
----------------/checkpatch.pl------------------------

Reply via email to