linux kernel 3.2 but it seem's that no counters are usable by papi :
##############
- Code: Select all
$ papi_avail
Available events and hardware information.
--------------------------------------------------------------------------------
PAPI Version : 4.2.1.0
Vendor string and code : (0)
Model string and code : (0)
CPU Revision : 0.000000
CPU Megahertz : 0.000000
CPU Clock Megahertz : 0
CPUs per Node : 0
Total CPUs : 0
Number Hardware Counters : 18
Max Multiplex Counters : 64
--------------------------------------------------------------------------------
Name Code Avail Deriv Description (Note)
PAPI_L1_DCM 0x80000000 No No Level 1 data cache misses
PAPI_L1_ICM 0x80000001 No No Level 1 instruction cache misses
PAPI_L2_DCM 0x80000002 No No Level 2 data cache misses
PAPI_L2_ICM 0x80000003 No No Level 2 instruction cache misses
PAPI_L3_DCM 0x80000004 No No Level 3 data cache misses
PAPI_L3_ICM 0x80000005 No No Level 3 instruction cache misses
PAPI_L1_TCM 0x80000006 No No Level 1 cache misses
PAPI_L2_TCM 0x80000007 No No Level 2 cache misses
PAPI_L3_TCM 0x80000008 No No Level 3 cache misses
PAPI_CA_SNP 0x80000009 No No Requests for a snoop
PAPI_CA_SHR 0x8000000a No No Requests for exclusive access to shared cache line
PAPI_CA_CLN 0x8000000b No No Requests for exclusive access to clean cache line
PAPI_CA_INV 0x8000000c No No Requests for cache line invalidation
PAPI_CA_ITV 0x8000000d No No Requests for cache line intervention
PAPI_L3_LDM 0x8000000e No No Level 3 load misses
PAPI_L3_STM 0x8000000f No No Level 3 store misses
PAPI_BRU_IDL 0x80000010 No No Cycles branch units are idle
PAPI_FXU_IDL 0x80000011 No No Cycles integer units are idle
PAPI_FPU_IDL 0x80000012 No No Cycles floating point units are idle
PAPI_LSU_IDL 0x80000013 No No Cycles load/store units are idle
PAPI_TLB_DM 0x80000014 No No Data translation lookaside buffer misses
PAPI_TLB_IM 0x80000015 No No Instruction translation lookaside buffer misses
PAPI_TLB_TL 0x80000016 No No Total translation lookaside buffer misses
PAPI_L1_LDM 0x80000017 No No Level 1 load misses
PAPI_L1_STM 0x80000018 No No Level 1 store misses
PAPI_L2_LDM 0x80000019 No No Level 2 load misses
PAPI_L2_STM 0x8000001a No No Level 2 store misses
PAPI_BTAC_M 0x8000001b No No Branch target address cache misses
PAPI_PRF_DM 0x8000001c No No Data prefetch cache misses
PAPI_L3_DCH 0x8000001d No No Level 3 data cache hits
PAPI_TLB_SD 0x8000001e No No Translation lookaside buffer shootdowns
PAPI_CSR_FAL 0x8000001f No No Failed store conditional instructions
PAPI_CSR_SUC 0x80000020 No No Successful store conditional instructions
PAPI_CSR_TOT 0x80000021 No No Total store conditional instructions
PAPI_MEM_SCY 0x80000022 No No Cycles Stalled Waiting for memory accesses
PAPI_MEM_RCY 0x80000023 No No Cycles Stalled Waiting for memory Reads
PAPI_MEM_WCY 0x80000024 No No Cycles Stalled Waiting for memory writes
PAPI_STL_ICY 0x80000025 No No Cycles with no instruction issue
PAPI_FUL_ICY 0x80000026 No No Cycles with maximum instruction issue
PAPI_STL_CCY 0x80000027 No No Cycles with no instructions completed
PAPI_FUL_CCY 0x80000028 No No Cycles with maximum instructions completed
PAPI_HW_INT 0x80000029 No No Hardware interrupts
PAPI_BR_UCN 0x8000002a No No Unconditional branch instructions
PAPI_BR_CN 0x8000002b No No Conditional branch instructions
PAPI_BR_TKN 0x8000002c No No Conditional branch instructions taken
PAPI_BR_NTK 0x8000002d No No Conditional branch instructions not taken
PAPI_BR_MSP 0x8000002e No No Conditional branch instructions mispredicted
PAPI_BR_PRC 0x8000002f No No Conditional branch instructions correctly predicted
PAPI_FMA_INS 0x80000030 No No FMA instructions completed
PAPI_TOT_IIS 0x80000031 No No Instructions issued
PAPI_TOT_INS 0x80000032 No No Instructions completed
PAPI_INT_INS 0x80000033 No No Integer instructions
PAPI_FP_INS 0x80000034 No No Floating point instructions
PAPI_LD_INS 0x80000035 No No Load instructions
PAPI_SR_INS 0x80000036 No No Store instructions
PAPI_BR_INS 0x80000037 No No Branch instructions
PAPI_VEC_INS 0x80000038 No No Vector/SIMD instructions (could include integer)
PAPI_RES_STL 0x80000039 No No Cycles stalled on any resource
PAPI_FP_STAL 0x8000003a No No Cycles the FP unit(s) are stalled
PAPI_TOT_CYC 0x8000003b No No Total cycles
PAPI_LST_INS 0x8000003c No No Load/store instructions completed
PAPI_SYC_INS 0x8000003d No No Synchronization instructions completed
PAPI_L1_DCH 0x8000003e No No Level 1 data cache hits
PAPI_L2_DCH 0x8000003f No No Level 2 data cache hits
PAPI_L1_DCA 0x80000040 No No Level 1 data cache accesses
PAPI_L2_DCA 0x80000041 No No Level 2 data cache accesses
PAPI_L3_DCA 0x80000042 No No Level 3 data cache accesses
PAPI_L1_DCR 0x80000043 No No Level 1 data cache reads
PAPI_L2_DCR 0x80000044 No No Level 2 data cache reads
PAPI_L3_DCR 0x80000045 No No Level 3 data cache reads
PAPI_L1_DCW 0x80000046 No No Level 1 data cache writes
PAPI_L2_DCW 0x80000047 No No Level 2 data cache writes
PAPI_L3_DCW 0x80000048 No No Level 3 data cache writes
PAPI_L1_ICH 0x80000049 No No Level 1 instruction cache hits
PAPI_L2_ICH 0x8000004a No No Level 2 instruction cache hits
PAPI_L3_ICH 0x8000004b No No Level 3 instruction cache hits
PAPI_L1_ICA 0x8000004c No No Level 1 instruction cache accesses
PAPI_L2_ICA 0x8000004d No No Level 2 instruction cache accesses
PAPI_L3_ICA 0x8000004e No No Level 3 instruction cache accesses
PAPI_L1_ICR 0x8000004f No No Level 1 instruction cache reads
PAPI_L2_ICR 0x80000050 No No Level 2 instruction cache reads
PAPI_L3_ICR 0x80000051 No No Level 3 instruction cache reads
PAPI_L1_ICW 0x80000052 No No Level 1 instruction cache writes
PAPI_L2_ICW 0x80000053 No No Level 2 instruction cache writes
PAPI_L3_ICW 0x80000054 No No Level 3 instruction cache writes
PAPI_L1_TCH 0x80000055 No No Level 1 total cache hits
PAPI_L2_TCH 0x80000056 No No Level 2 total cache hits
PAPI_L3_TCH 0x80000057 No No Level 3 total cache hits
PAPI_L1_TCA 0x80000058 No No Level 1 total cache accesses
PAPI_L2_TCA 0x80000059 No No Level 2 total cache accesses
PAPI_L3_TCA 0x8000005a No No Level 3 total cache accesses
PAPI_L1_TCR 0x8000005b No No Level 1 total cache reads
PAPI_L2_TCR 0x8000005c No No Level 2 total cache reads
PAPI_L3_TCR 0x8000005d No No Level 3 total cache reads
PAPI_L1_TCW 0x8000005e No No Level 1 total cache writes
PAPI_L2_TCW 0x8000005f No No Level 2 total cache writes
PAPI_L3_TCW 0x80000060 No No Level 3 total cache writes
PAPI_FML_INS 0x80000061 No No Floating point multiply instructions
PAPI_FAD_INS 0x80000062 No No Floating point add instructions
PAPI_FDV_INS 0x80000063 No No Floating point divide instructions
PAPI_FSQ_INS 0x80000064 No No Floating point square root instructions
PAPI_FNV_INS 0x80000065 No No Floating point inverse instructions
PAPI_FP_OPS 0x80000066 No No Floating point operations
PAPI_SP_OPS 0x80000067 No No Floating point operations; optimized to count scaled single precision vector operations
PAPI_DP_OPS 0x80000068 No No Floating point operations; optimized to count scaled double precision vector operations
PAPI_VEC_SP 0x80000069 No No Single precision vector/SIMD instructions
PAPI_VEC_DP 0x8000006a No No Double precision vector/SIMD instructions
-------------------------------------------------------------------------
Of 107 possible events, 0 are available, of which 0 are derived.
avail.c PASSED
##############
the perf command says :
##############
- Code: Select all
$ perf list
List of pre-defined events (to be used in -e):
cpu-cycles OR cycles [Hardware event]
stalled-cycles-frontend OR idle-cycles-frontend [Hardware event]
stalled-cycles-backend OR idle-cycles-backend [Hardware event]
instructions [Hardware event]
cache-references [Hardware event]
cache-misses [Hardware event]
branch-instructions OR branches [Hardware event]
branch-misses [Hardware event]
bus-cycles [Hardware event]
cpu-clock [Software event]
task-clock [Software event]
page-faults OR faults [Software event]
minor-faults [Software event]
major-faults [Software event]
context-switches OR cs [Software event]
cpu-migrations OR migrations [Software event]
alignment-faults [Software event]
emulation-faults [Software event]
L1-dcache-loads [Hardware cache event]
L1-dcache-load-misses [Hardware cache event]
L1-dcache-stores [Hardware cache event]
L1-dcache-store-misses [Hardware cache event]
L1-dcache-prefetches [Hardware cache event]
L1-dcache-prefetch-misses [Hardware cache event]
L1-icache-loads [Hardware cache event]
L1-icache-load-misses [Hardware cache event]
L1-icache-prefetches [Hardware cache event]
L1-icache-prefetch-misses [Hardware cache event]
LLC-loads [Hardware cache event]
LLC-load-misses [Hardware cache event]
LLC-stores [Hardware cache event]
LLC-store-misses [Hardware cache event]
LLC-prefetches [Hardware cache event]
LLC-prefetch-misses [Hardware cache event]
dTLB-loads [Hardware cache event]
dTLB-load-misses [Hardware cache event]
dTLB-stores [Hardware cache event]
dTLB-store-misses [Hardware cache event]
dTLB-prefetches [Hardware cache event]
dTLB-prefetch-misses [Hardware cache event]
iTLB-loads [Hardware cache event]
iTLB-load-misses [Hardware cache event]
branch-loads [Hardware cache event]
branch-load-misses [Hardware cache event]
node-loads [Hardware cache event]
node-load-misses [Hardware cache event]
node-stores [Hardware cache event]
node-store-misses [Hardware cache event]
node-prefetches [Hardware cache event]
node-prefetch-misses [Hardware cache event]
rNNN (see 'perf list --help' on how to encode it) [Raw hardware event descriptor]
mem:<addr>[:access] [Hardware breakpoint]
##############
Finaly I ran the run_test.sh from the papi sources and i get the following output :
- Code: Select all
$ ./run_test.sh
Platform:
Linux HPC-dev1 3.2.0-1-amd64 #1 SMP Sun Feb 5 15:17:15 UTC 2012 x86_64 GNU/Linux
Date:
jeudi 23 février 2012, 17:50:38 (UTC+0100)
Cpuinfo:
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.00GHz
stepping : 3
microcode : 0x5
cpu MHz : 2992.347
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc pebs bts nopl pni dtes64 monitor ds_cpl cid cx16 xtpr
bogomips : 5984.69
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:
The following test cases will be run:
ctests/all_events ctests/all_native_events ctests/api ctests/attach2 ctests/attach3 ctests/attach_target ctests/branches ctests/byte_profile ctests/calibrate ctests/case1 ctests/case2 ctests/child_overflow ctests/clockres_pthreads ctests/code2name ctests/derived ctests/describe ctests/dmem_info ctests/eventname ctests/exec ctests/exec2 ctests/exec_overflow ctests/exeinfo ctests/first ctests/flops ctests/fork ctests/fork2 ctests/fork_overflow ctests/forkexec ctests/forkexec2 ctests/forkexec3 ctests/forkexec4 ctests/high-level ctests/high-level2 ctests/hwinfo ctests/inherit ctests/ipc ctests/johnmay2 ctests/krentel_pthreads ctests/kufrin ctests/locks_pthreads ctests/low-level ctests/matrix-hl ctests/memory ctests/mendes-alt ctests/multiattach ctests/multiattach2 ctests/multiplex1 ctests/multiplex1_pthreads ctests/multiplex2 ctests/multiplex3_pthreads ctests/nmi_watchdog ctests/overflow ctests/overflow2 ctests/overflow3_pthreads ctests/overflow_allcounters ctests/overflow_force_software ctests/overflow_index ctests/overflow_one_and_read ctests/overflow_pthreads ctests/overflow_single_event ctests/overflow_twoevents ctests/profile ctests/profile_force_software ctests/profile_pthreads ctests/profile_twoevents ctests/pthrtough ctests/pthrtough2 ctests/realtime ctests/reset ctests/sdsc-mpx ctests/sdsc2-mpx ctests/sdsc4-mpx ctests/second ctests/shlib ctests/sprofile ctests/subinfo ctests/system_child_overflow ctests/system_overflow ctests/tenth ctests/thrspecific ctests/timer_overflow ctests/virttime ctests/zero ctests/zero_attach ctests/zero_flip ctests/zero_fork ctests/zero_pthreads ftests/johnmay2 ftests/case1 ftests/fmatrixpapi2 ftests/clockres ftests/second ftests/case2 ftests/flops ftests/fdmemtest ftests/first ftests/accum ftests/fmatrixpapi ftests/eventname ftests/description ftests/fmatrixlowpapi ftests/cost ftests/avail ftests/highlevel ftests/tenth ftests/strtest ftests/fmultiplex1 ftests/zero ftests/fmultiplex2
The following test cases will NOT be run:
ctests/burn
Running C Tests
Running ctests/all_events:all_events.c FAILED
Line # 74
Error: No events added
Running ctests/all_native_events:all_native_events.c PASSED
Running ctests/api:api.c FAILED
Line # 61
Error in PAPI_start_counters: PAPI_ENOEVNT
Running ctests/attach2:attach2.c FAILED
Line # 111
Error in PAPI_add_event: PAPI_ENOEVNT
Running ctests/attach3:attach3.c FAILED
Line # 113
Error in PAPI_add_event: PAPI_ENOEVNT
Running ctests/attach_target:Running ctests/branches:branches.c SKIPPED
Running ctests/byte_profile:byte_profile.c FAILED
Line # 138
Error in PAPI_start: PAPI_ENOCMP
Running ctests/calibrate:calibrate.c SKIPPED
Running ctests/case1:case1.c PASSED
Running ctests/case2:case2.c PASSED
Running ctests/child_overflow:./ctests/child_overflow FAILED
Line # 128
Error: PAPI_add_event failed
Running ctests/clockres_pthreads:clockres_pthreads.c PASSED
Running ctests/code2name:code2name.c PASSED
Running ctests/derived:derived.c SKIPPED
Running ctests/describe:describe.c FAILED
Line # 42
Error in PAPI_query_event(PAPI_TOT_INS): PAPI_ENOEVNT
Running ctests/dmem_info:dmem_info.c PASSED
Running ctests/eventname:eventname.c PASSED
Running ctests/exec:exec.c PASSED
Running ctests/exec2:exec2.c PASSED
Running ctests/exec_overflow:./ctests/exec_overflow FAILED
Line # 128
Error: PAPI_add_event failed
Running ctests/exeinfo:exeinfo.c FAILED
Line # 39
Error: PAPI_get_executable_info
Running ctests/first:test_utils.c FAILED
Line # 710
Error: Not enough room to add an event!
Running ctests/flops:flops.c PASSED
Running ctests/fork:fork.c PASSED
Running ctests/fork2:fork2.c PASSED
Running ctests/fork_overflow:./ctests/fork_overflow FAILED
Line # 128
Error: PAPI_add_event failed
Running ctests/forkexec:forkexec.c PASSED
forkexec.c PASSED
Running ctests/forkexec2:forkexec2.c PASSED
forkexec2.c PASSED
Running ctests/forkexec3:forkexec3.c PASSED
forkexec3.c PASSED
Running ctests/forkexec4:forkexec4.c PASSED
forkexec4.c PASSED
Running ctests/high-level:high-level.c FAILED
Line # 40
Error in PAPI_start_counters: PAPI_ENOEVNT
Running ctests/high-level2:high-level2.c PASSED
Running ctests/hwinfo:hwinfo.c FAILED
Line # 31
Error: Vendor unknown
Running ctests/inherit:inherit.c FAILED
Line # 42
Error in PAPI_query_event: PAPI_ENOEVNT
Running ctests/ipc:ipc.c FAILED
Line # 42
Error in PAPI_ipc: PAPI_ENOEVNT
Running ctests/johnmay2:johnmay2.c FAILED
Line # 27
Error in PAPI_query_event: PAPI_ENOEVNT
Running ctests/krentel_pthreads:krentel_pthreads.c FAILED
Line # 92
Error: PAPI_add_event failed
Running ctests/kufrin:kufrin.c FAILED
Line # 64
kufrin.c FAILED
Line # 64
Error in PAPI_add_events: PAPI_EINVAL
Running ctests/locks_pthreads:locks_pthreads.c PASSED
Running ctests/low-level:low-level.c FAILED
Line # 57
Error in PAPI_add_events: PAPI_ENOEVNT
Running ctests/matrix-hl:matrix-hl.c FAILED
Line # 73
Error in PAPI_start_counters: PAPI_ENOEVNT
Running ctests/memory:memory.c PASSED
Running ctests/mendes-alt:mendes-alt.c FAILED
Line # 76
Error in PAPI add PAPI_FP_INS or PAPI_TOT_INS fail
: PAPI_ENOEVNT
Running ctests/multiattach:test_utils.c FAILED
Line # 710
Error: Not enough room to add an event!
Running ctests/multiattach2:test_utils.c FAILED
Line # 710
Error: Not enough room to add an event!
Running ctests/multiplex1:multiplex1.c FAILED
Line # 82
Error: No counters available
Running ctests/multiplex1_pthreads:multiplex1_pthreads.c FAILED
Line # 91
Error: No counters available
Running ctests/multiplex2:multiplex2.c FAILED
Line # 118
Error: PAPI_start
Running ctests/multiplex3_pthreads:multiplex3_pthreads.c FAILED
Line # 84
Error in PAPI_add_event: PAPI_ENOEVNT
Running ctests/nmi_watchdog:nmi_watchdog.c WARNING
Line # 67
Warning: NMI Watchdog Active, enabling slow workarounds
nmi_watchdog.c PASSED with WARNING
Running ctests/overflow:test_utils.c FAILED
Line # 748
Error: Not enough room to add an event!
Running ctests/overflow2:overflow2.c FAILED
Line # 97
Error in PAPI_add_event: PAPI_ENOEVNT
Running ctests/overflow3_pthreads:test_utils.c FAILED
Line # 748
Error: Not enough room to add an event!
Running ctests/overflow_allcounters:overflow_allcounters.c PASSED
Running ctests/overflow_force_software:overflow_force_software.c SKIPPED
Running ctests/overflow_index:test_utils.c FAILED
Line # 748
Error: Not enough room to add an event!
Running ctests/overflow_one_and_read:test_utils.c FAILED
Line # 748
Error: Not enough room to add an event!
Running ctests/overflow_pthreads:test_utils.c FAILED
Line # 748
Error: Not enough room to add an event!
test_utils.c FAILED
Line # 748
Error: Not enough room to add an event!
test_utils.c FAILED
Line # 748
Error: Not enough room to add an event!
Running ctests/overflow_single_event:overflow_single_event.c FAILED
Line # 109
Error in PAPI_add_event: PAPI_ENOEVNT
Running ctests/overflow_twoevents:overflow_twoevents.c FAILED
Line # 132
Error: no PAPI_event
Running ctests/profile:test_utils.c FAILED
Line # 748
Error: Not enough room to add an event!
Running ctests/profile_force_software:test_utils.c FAILED
Line # 748
Error: Not enough room to add an event!
Running ctests/profile_pthreads:test_utils.c FAILED
Line # 748
Error: Not enough room to add an event!
test_utils.c Running ctests/profile_twoevents:test_utils.c FAILED
Line # 748
Error: Not enough room to add an event!
Running ctests/pthrtough:pthrtough.c PASSED
Running ctests/pthrtough2:pthrtough2.c PASSED
Running ctests/realtime:realtime.c PASSED
Running ctests/reset:test_utils.c FAILED
Line # 710
Error: Not enough room to add an event!
Running ctests/sdsc-mpx:sdsc.c SKIPPED
Running ctests/sdsc2-mpx:sdsc2.c SKIPPED
Running ctests/sdsc4-mpx:sdsc4.c SKIPPED
Running ctests/second:second.c SKIPPED
Running ctests/shlib:shlib.c FAILED
Line # 98
Error: PAPI_get_shared_lib_info
Running ctests/sprofile:sprofile.c FAILED
Line # 85
Error in PAPI_sprofil: PAPI_ENOEVNT
Running ctests/subinfo:subinfo.c PASSED
Running ctests/system_child_overflow:./ctests/system_child_overflow FAILED Line # 128
Error: PAPI_add_event failed
Running ctests/system_overflow:./ctests/system_overflow FAILED
Line # 128
Error: PAPI_add_event failed
Running ctests/tenth:tenth.c SKIPPED
Running ctests/thrspecific:thrspecific.c PASSED
Skipping test ctests/timer_overflow, it takes too long...
Running ctests/virttime:virttime.c PASSED
Running ctests/zero:test_utils.c FAILED
Line # 710
Error: Not enough room to add an event!
Running ctests/zero_attach:test_utils.c FAILED
Line # 710
Error: Not enough room to add an event!
Running ctests/zero_flip:zero_flip.c FAILED
Line # 55
Error in PAPI_add_event: PAPI_ENOEVNT
Running ctests/zero_fork:test_utils.c FAILED
Line # 710
Error: Not enough room to add an event!
Running ctests/zero_pthreads:test_utils.c FAILED
Line # 710
Error: Not enough room to add an event!
test_utils.c FAILED
Line # 710
Error: Not enough room to add an event!
test_utils.c FAILED
Line # 710
Error: Not enough room to add an event!
Running Fortran Tests
Running ftests/johnmay2:johnmay2.F SKIPPED
Running ftests/case1:case1.F PASSED
Running ftests/fmatrixpapi2:fmatrixpapi2.F SKIPPED
Running ftests/clockres:clockres.F PASSED
Running ftests/second:second.F SKIPPED
Running ftests/case2:case2.F PASSED
Running ftests/flops:flops.F SKIPPED
Running ftests/fdmemtest:fdmemtest.F PASSED
Running ftests/first:first.F SKIPPED
Running ftests/accum:accum.F SKIPPED
Running ftests/fmatrixpapi:fmatrixpapi.F SKIPPED
Running ftests/eventname:eventname.F PASSED
Running ftests/description:description.F SKIPPED
Running ftests/fmatrixlowpapi:fmatrixlowpapi.F SKIPPED
Running ftests/cost:cost.F SKIPPED
Running ftests/avail:avail.F PASSED
Running ftests/highlevel:highlevel.F SKIPPED
Running ftests/tenth:tenth.F SKIPPED
Running ftests/strtest:strtest.F PASSED
Running ftests/fmultiplex1:fmultiplex1.F SKIPPED
Running ftests/zero:zero.F SKIPPED
Running ftests/fmultiplex2:fmultiplex2.F SKIPPED
Line # 98
SGI requires root permissions for this test
Running Component Tests
#################
Is anyone can help me because i don't understand why papi don't works
Thks,
