static void ppro_start(struct op_msrs const * const msrs) { uint low, high; CTRL_READ(low, high, msrs, 0); CTRL_SET_ACTIVE(low); CTRL_WRITE(low, high, msrs, 0); }
static void athlon_start(struct op_msrs const * const msrs) { uint low, high; int i; for (i = 0 ; i < NUM_COUNTERS ; ++i) { if (sysctl.ctr[i].enabled) { CTRL_READ(low, high, msrs, i); CTRL_SET_ACTIVE(low); CTRL_WRITE(low, high, msrs, i); } } }
static void athlon_start(struct op_msrs const * const msrs) { unsigned int low, high; int i; for (i = 0 ; i < NUM_COUNTERS ; ++i) { if (reset_value[i]) { CTRL_READ(low, high, msrs, i); CTRL_SET_ACTIVE(low); CTRL_WRITE(low, high, msrs, i); } } }
static void ppro_start(struct op_msrs const * const msrs) { unsigned int low,high; int i; for (i = 0; i < num_counters; ++i) { if (reset_value[i]) { CTRL_READ(low, high, msrs, i); CTRL_SET_ACTIVE(low); CTRL_WRITE(low, high, msrs, i); } } }
static void ppro_start(struct op_msrs const * const msrs) { uint64_t msr_content; int i; for (i = 0; i < num_counters; ++i) { if (reset_value[i]) { CTRL_READ(msr_content, msrs, i); CTRL_SET_ACTIVE(msr_content); CTRL_WRITE(msr_content, msrs, i); } } /* Global Control MSR is enabled by default when system power on. * However, this may not hold true when xenoprof starts to run. */ if ( ppro_has_global_ctrl ) wrmsrl(MSR_CORE_PERF_GLOBAL_CTRL, (1ULL<<num_counters) - 1); }