Recently I'm testing PAPI (3.7.x, and also 4.0) on Linux/Intel Nehalem(Core i7) Gulftown processor(6 core).The kernel has been patched with perfctr that supports Gulftwon(by getting patch from Mikael Pettersson).But papi utils(papi_avail, papi_native_avail, papi_mem_info) return some messages and most events are not supported.Also the information returned by papi_mem_info does not match the system configuration.

PAPI 3.7.x works well on Linux/4-core Nehalem.And 6-core Gulftown is not much different from 4-core EP.What's the reason?

Name Code Avail Deriv Description (Note)PAPI_L1_DCM 0x80000000 No No Level 1 data cache missesPAPI_L1_ICM 0x80000001 No No Level 1 instruction cache missesPAPI_L2_DCM 0x80000002 No No Level 2 data cache missesPAPI_L2_ICM 0x80000003 No No Level 2 instruction cache missesPAPI_L3_DCM 0x80000004 No No Level 3 data cache missesPAPI_L3_ICM 0x80000005 No No Level 3 instruction cache missesPAPI_L1_TCM 0x80000006 No No Level 1 cache missesPAPI_L2_TCM 0x80000007 No No Level 2 cache missesPAPI_L3_TCM 0x80000008 No No Level 3 cache missesPAPI_CA_SNP 0x80000009 No No Requests for a snoopPAPI_CA_SHR 0x8000000a No No Requests for exclusive access to shared cache linePAPI_CA_CLN 0x8000000b No No Requests for exclusive access to clean cache linePAPI_CA_INV 0x8000000c No No Requests for cache line invalidationPAPI_CA_ITV 0x8000000d No No Requests for cache line interventionPAPI_L3_LDM 0x8000000e No No Level 3 load missesPAPI_L3_STM 0x8000000f No No Level 3 store missesPAPI_BRU_IDL 0x80000010 No No Cycles branch units are idlePAPI_FXU_IDL 0x80000011 No No Cycles integer units are idlePAPI_FPU_IDL 0x80000012 No No Cycles floating point units are idlePAPI_LSU_IDL 0x80000013 No No Cycles load/store units are idlePAPI_TLB_DM 0x80000014 No No Data translation lookaside buffer missesPAPI_TLB_IM 0x80000015 No No Instruction translation lookaside buffer missesPAPI_TLB_TL 0x80000016 No No Total translation lookaside buffer missesPAPI_L1_LDM 0x80000017 No No Level 1 load missesPAPI_L1_STM 0x80000018 No No Level 1 store missesPAPI_L2_LDM 0x80000019 No No Level 2 load missesPAPI_L2_STM 0x8000001a No No Level 2 store missesPAPI_BTAC_M 0x8000001b No No Branch target address cache missesPAPI_PRF_DM 0x8000001c No No Data prefetch cache missesPAPI_L3_DCH 0x8000001d No No Level 3 data cache hitsPAPI_TLB_SD 0x8000001e No No Translation lookaside buffer shootdownsPAPI_CSR_FAL 0x8000001f No No Failed store conditional instructionsPAPI_CSR_SUC 0x80000020 No No Successful store conditional instructionsPAPI_CSR_TOT 0x80000021 No No Total store conditional instructionsPAPI_MEM_SCY 0x80000022 No No Cycles Stalled Waiting for memory accessesPAPI_MEM_RCY 0x80000023 No No Cycles Stalled Waiting for memory ReadsPAPI_MEM_WCY 0x80000024 No No Cycles Stalled Waiting for memory writesPAPI_STL_ICY 0x80000025 No No Cycles with no instruction issuePAPI_FUL_ICY 0x80000026 No No Cycles with maximum instruction issuePAPI_STL_CCY 0x80000027 No No Cycles with no instructions completedPAPI_FUL_CCY 0x80000028 No No Cycles with maximum instructions completedPAPI_HW_INT 0x80000029 No No Hardware interruptsPAPI_BR_UCN 0x8000002a No No Unconditional branch instructionsPAPI_BR_CN 0x8000002b No No Conditional branch instructionsPAPI_BR_TKN 0x8000002c No No Conditional branch instructions takenPAPI_BR_NTK 0x8000002d No No Conditional branch instructions not takenPAPI_BR_MSP 0x8000002e No No Conditional branch instructions mispredictedPAPI_BR_PRC 0x8000002f No No Conditional branch instructions correctly predictedPAPI_FMA_INS 0x80000030 No No FMA instructions completedPAPI_TOT_IIS 0x80000031 No No Instructions issuedPAPI_TOT_INS 0x80000032 Yes No Instructions completedPAPI_INT_INS 0x80000033 No No Integer instructionsPAPI_FP_INS 0x80000034 No No Floating point instructionsPAPI_LD_INS 0x80000035 No No Load instructionsPAPI_SR_INS 0x80000036 No No Store instructionsPAPI_BR_INS 0x80000037 No No Branch instructionsPAPI_VEC_INS 0x80000038 No No Vector/SIMD instructions (could include integer)PAPI_RES_STL 0x80000039 No No Cycles stalled on any resourcePAPI_FP_STAL 0x8000003a No No Cycles the FP unit(s) are stalledPAPI_TOT_CYC 0x8000003b Yes No Total cyclesPAPI_LST_INS 0x8000003c No No Load/store instructions completedPAPI_SYC_INS 0x8000003d No No Synchronization instructions completedPAPI_L1_DCH 0x8000003e No No Level 1 data cache hitsPAPI_L2_DCH 0x8000003f No No Level 2 data cache hitsPAPI_L1_DCA 0x80000040 No No Level 1 data cache accessesPAPI_L2_DCA 0x80000041 No No Level 2 data cache accessesPAPI_L3_DCA 0x80000042 No No Level 3 data cache accessesPAPI_L1_DCR 0x80000043 No No Level 1 data cache readsPAPI_L2_DCR 0x80000044 No No Level 2 data cache readsPAPI_L3_DCR 0x80000045 No No Level 3 data cache readsPAPI_L1_DCW 0x80000046 No No Level 1 data cache writesPAPI_L2_DCW 0x80000047 No No Level 2 data cache writesPAPI_L3_DCW 0x80000048 No No Level 3 data cache writesPAPI_L1_ICH 0x80000049 No No Level 1 instruction cache hitsPAPI_L2_ICH 0x8000004a No No Level 2 instruction cache hitsPAPI_L3_ICH 0x8000004b No No Level 3 instruction cache hitsPAPI_L1_ICA 0x8000004c No No Level 1 instruction cache accessesPAPI_L2_ICA 0x8000004d No No Level 2 instruction cache accessesPAPI_L3_ICA 0x8000004e No No Level 3 instruction cache accessesPAPI_L1_ICR 0x8000004f No No Level 1 instruction cache readsPAPI_L2_ICR 0x80000050 No No Level 2 instruction cache readsPAPI_L3_ICR 0x80000051 No No Level 3 instruction cache readsPAPI_L1_ICW 0x80000052 No No Level 1 instruction cache writesPAPI_L2_ICW 0x80000053 No No Level 2 instruction cache writesPAPI_L3_ICW 0x80000054 No No Level 3 instruction cache writesPAPI_L1_TCH 0x80000055 No No Level 1 total cache hitsPAPI_L2_TCH 0x80000056 No No Level 2 total cache hitsPAPI_L3_TCH 0x80000057 No No Level 3 total cache hitsPAPI_L1_TCA 0x80000058 No No Level 1 total cache accessesPAPI_L2_TCA 0x80000059 No No Level 2 total cache accessesPAPI_L3_TCA 0x8000005a No No Level 3 total cache accessesPAPI_L1_TCR 0x8000005b No No Level 1 total cache readsPAPI_L2_TCR 0x8000005c No No Level 2 total cache readsPAPI_L3_TCR 0x8000005d No No Level 3 total cache readsPAPI_L1_TCW 0x8000005e No No Level 1 total cache writesPAPI_L2_TCW 0x8000005f No No Level 2 total cache writesPAPI_L3_TCW 0x80000060 No No Level 3 total cache writesPAPI_FML_INS 0x80000061 No No Floating point multiply instructionsPAPI_FAD_INS 0x80000062 No No Floating point add instructionsPAPI_FDV_INS 0x80000063 No No Floating point divide instructionsPAPI_FSQ_INS 0x80000064 No No Floating point square root instructionsPAPI_FNV_INS 0x80000065 No No Floating point inverse instructionsPAPI_FP_OPS 0x80000066 No No Floating point operationsPAPI_SP_OPS 0x80000067 No No Floating point operations; optimized to count scaled single precision vector operationsPAPI_DP_OPS 0x80000068 No No Floating point operations; optimized to count scaled double precision vector operationsPAPI_VEC_SP 0x80000069 No No Single precision vector/SIMD instructionsPAPI_VEC_DP 0x8000006a No No Double precision vector/SIMD instructions-------------------------------------------------------------------------Of 107 possible events, 2 are available, of which 0 are derived.

The problem is that PAPI doesn't recognize this combination of family (6) and model (44) as a valid processor. Because of that, it isn't finding an event table to use to define the events for papi_avail and papi_native_avail. Although the native event table should be very similar to that of earlier Nehalem, theremay be some slight differences. The papi_mem_info problems may be because there is information returned by cpuid about cache structure that PAPI doesn't know how to interpret.We should be able to generate a patch to decode the cpu. From there we may need to do some further iterative testing to get things right. We currently don't have access to this architecture. Can you work with us or give us an account on this machine?

We've commited some code to allow PAPI to recognize this family and model. We haven't updated the event table yet, but it may work reasonably well if it identifies as a Nehalem. If you're interested, do an anonymous checkout from our cvs repository and let us know how it works.