I'm working on implementing PAPI on Cell. And I'm confused. Can someone tell me why pfm_get_num_counters() returns 8 for Cell (I think this is # of 16-bit counters?) when pfm_cell_get_event_code() compares against a hard-coded limit of 2 (see below)? Could this limit simply have been inappropriately inherited from another platform? Also, how does one distinguish between using these counters in 16-bit mode vs. 32-bit mode? - d
static int pfm_cell_get_event_code(unsigned int i, unsigned int cnt, int *code) { if (cnt != PFMLIB_CNT_FIRST && cnt > 2) { return PFMLIB_ERR_INVAL; } *code = cell_pe[i].pme_code; return PFMLIB_SUCCESS; } ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel