Lines Matching defs:mperf

365 	bool enable_tsc_tweak;	/* Use CPU Base freq instead of TSC freq for aperf/mperf counter */
366 bool need_perf_multiplier; /* mperf/aperf multiplier */
1370 unsigned long long mperf;
2164 outp += sprintf(outp, "mperf: %016llX\n", t->mperf);
2355 outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * t->mperf / tsc);
2360 sprintf(outp, "%s%.0f", (printed++ ? delim : ""), base_hz / units * t->aperf / t->mperf);
2363 tsc / units * t->aperf / t->mperf / interval_float);
2786 if ((new->aperf > old->aperf) && (new->mperf > old->mperf)) {
2788 old->mperf = new->mperf - old->mperf;
2802 * it is possible for mperf's non-halted cycles + idle states
2805 if ((old->mperf + core_delta->c3 + core_delta->c6 + core_delta->c7) > (old->tsc * tsc_tweak))
2809 old->c1 = (old->tsc * tsc_tweak) - old->mperf - core_delta->c3
2814 if (old->mperf == 0) {
2817 old->mperf = 1; /* divide by 0 protection */
2880 t->mperf = 0;
2973 average.threads.mperf += t->mperf;
3079 average.threads.mperf /= topo.allowed_cpus;
3331 int mperf;
3403 const char *const path = "/sys/bus/event_source/devices/msr/events/mperf";
3467 struct amperf_group_fd fds = {.aperf = -1, .mperf = -1 };
3470 fds.mperf = open_perf_counter(cpu, msr_type, mperf_config, fds.aperf, PERF_FORMAT_GROUP);
3494 unsigned long mperf;
3514 t->mperf = cnt.mperf * aperf_mperf_multiplier;
3553 if (get_msr(cpu, MSR_IA32_MPERF, &t->mperf))
3575 t->mperf = t->mperf * aperf_mperf_multiplier;
4480 if (fd_amperf_percpu[i].mperf != 0)
4481 close(fd_amperf_percpu[i].mperf);
6983 has_access_cached = (fds.aperf != -1) && (fds.mperf != -1);
6992 if (fds.mperf == -1)
6997 close(fds.mperf);
7832 fprintf(outf, "aperf/mperf source preference: %s\n", amperf_source == AMPERF_SOURCE_MSR ? "msr" : "perf");