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= make clean make Storage directory: export ODP_INSTRUM_STORE_DIR= Default directory: /tmp e.g. export ODP_INSTRUM_STORE_DIR=/home/bopi/Work/linaro/store 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 381 (bogdanPricope:cat_benchmark_poc) ** https://github.com/Linaro/odp/pull/381 ** Patch: https://github.com/Linaro/odp/pull/381.patch ** Base sha: 4d17f8ae64aba0e6f24877be30f86ae5880cef7e ** Merge commit sha: 81ad07ff925dab1db7bf4836997a84e19962b827 **/ ----------------/github------------------------ ----------------checkpatch.pl------------------------ total: 0 errors, 0 warnings, 0 checks, 16 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, 644 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. ----------------/checkpatch.pl------------------------