| /linux/arch/x86/kernel/cpu/ |
| H A D | aperfmperf.c | 33 u64 mperf; member 42 u64 aperf, mperf; in init_counter_refs() local 45 rdmsrq(MSR_IA32_MPERF, mperf); in init_counter_refs() 48 this_cpu_write(cpu_samples.mperf, mperf); in init_counter_refs() 477 u64 acnt, mcnt, aperf, mperf; in arch_scale_freq_tick() local 483 rdmsrq(MSR_IA32_MPERF, mperf); in arch_scale_freq_tick() 485 mcnt = mperf - s->mperf; in arch_scale_freq_tick() 488 s->mperf = mperf; in arch_scale_freq_tick()
|
| /linux/tools/testing/selftests/intel_pstate/ |
| H A D | aperf.c | 28 long long mperf, old_mperf, new_mperf; in main() local 84 mperf = new_mperf-old_mperf; in main() 91 printf("freq: %7.0f\n", tsc / (1.0*aperf / (1.0 * mperf)) / total); in main()
|
| /linux/tools/power/x86/amd_pstate_tracer/ |
| H A D | amd_pstate_trace.py | 155 def store_csv(cpu_int, time_pre_dec, time_post_dec, min_perf, des_perf, max_perf, freq_ghz, mperf, aperf, tsc, common_comm, load, duration_ms, sample_num, elapsed_time, cpu_mask): argument 165 string_buffer = "CPU_%03u, %05u, %06u, %u, %u, %u, %.4f, %u, %u, %u, %.2f, %.3f, %u, %.3f, %s\n" % (cpu_int, int(time_pre_dec), int(time_post_dec), int(min_perf), int(des_perf), int(max_perf), freq_ghz, int(mperf), int(aperf), int(tsc), load, duration_ms, sample_num, elapsed_time, common_comm) 181 f_handle.write('common_cpu, common_secs, common_usecs, min_perf, des_perf, max_perf, freq, mperf, aperf, tsc, load, duration_ms, sample_num, elapsed_time, common_comm') 199 re.search(r'(^(.*?)\[)((\d+)[^\]])(.*?)(\d+)([.])(\d+)(.*?amd_min_perf=)(\d+)(.*?amd_des_perf=)(\d+)(.*?amd_max_perf=)(\d+)(.*?freq=)(\d+)(.*?mperf=)(\d+)(.*?aperf=)(\d+)(.*?tsc=)(\d+)' 213 mperf = search_obj.group(18) 232 load = Decimal(int(mperf)*100)/ Decimal(tsc) 234 store_csv(cpu_int, time_pre_dec, time_post_dec, min_perf, des_perf, max_perf, freq_ghz, mperf, aperf, tsc, common_comm, load, duration_ms, sample_num, elapsed_time, cpu_mask)
|
| /linux/tools/power/x86/intel_pstate_tracer/ |
| H A D | intel_pstate_tracer.py | 326 def store_csv(cpu_int, time_pre_dec, time_post_dec, core_busy, scaled, _from, _to, mperf, aperf, tsc, freq_ghz, io_boost, common_comm, load, duration_ms, sample_num, elapsed_time, tsc_ghz, cpu_mask): argument 336 string_buffer = "CPU_%03u, %05u, %06u, %u, %u, %u, %u, %u, %u, %u, %.4f, %u, %.2f, %.3f, %u, %.3f, %.3f, %s\n" % (cpu_int, int(time_pre_dec), int(time_post_dec), int(core_busy), int(scaled), int(_from), int(_to), int(mperf), int(aperf), int(tsc), freq_ghz, int(io_boost), load, duration_ms, sample_num, elapsed_time, tsc_ghz, common_comm) 368 f_handle.write('common_cpu, common_secs, common_usecs, core_busy, scaled_busy, from, to, mperf, aperf, tsc, freq, boost, load, duration_ms, sample_num, elapsed_time, tsc_ghz, common_comm') 434 re.search(r'(^(.*?)\[)((\d+)[^\]])(.*?)(\d+)([.])(\d+)(.*?core_busy=)(\d+)(.*?scaled=)(\d+)(.*?from=)(\d+)(.*?to=)(\d+)(.*?mperf=)(\d+)(.*?aperf=)(\d+)(.*?tsc=)(\d+)(.*?freq=)(\d+)' 448 mperf = search_obj.group(18) 473 load = Decimal(int(mperf)*100)/ Decimal(tsc) 480 store_csv(cpu_int, time_pre_dec, time_post_dec, core_busy, scaled, _from, _to, mperf, aperf, tsc, freq_ghz, io_boost, common_comm, load, duration_ms, sample_num, elapsed_time, tsc_ghz, cpu_mask)
|
| /linux/tools/power/cpupower/utils/idle_monitor/ |
| H A D | idle_monitors.def | 6 DEF(mperf)
|
| /linux/drivers/cpufreq/ |
| H A D | amd-pstate.c | 646 u64 aperf, mperf, tsc; in amd_pstate_update() 651 rdmsrq(MSR_IA32_MPERF, mperf); in amd_pstate_update() 654 if (cpudata->prev.mperf == mperf || cpudata->prev.tsc == tsc) { in amd_pstate_verify() 662 cpudata->cur.mperf = mperf; in amd_pstate_verify() 665 cpudata->cur.mperf -= cpudata->prev.mperf; in amd_pstate_verify() 669 cpudata->prev.mperf = mperf; in amd_pstate_verify() 595 u64 aperf, mperf, tsc; amd_pstate_sample() local [all...] |
| H A D | intel_pstate.c | 103 * @mperf: Difference of maximum performance frequency clock count 116 u64 mperf; member 2477 sample->core_avg_perf = div_ext_fp(sample->aperf, sample->mperf); in intel_pstate_sample() 2482 u64 aperf, mperf; in intel_pstate_sample() 2488 rdmsrq(MSR_IA32_MPERF, mperf); in intel_pstate_sample() 2490 if (cpu->prev_mperf == mperf || cpu->prev_tsc == tsc) { in intel_pstate_sample() 2499 cpu->sample.mperf = mperf; in get_avg_frequency() 2502 cpu->sample.mperf -= cpu->prev_mperf; 2506 cpu->prev_mperf = mperf; in get_avg_pstate() 2458 u64 aperf, mperf; intel_pstate_sample() local [all...] |
| /linux/tools/power/x86/turbostat/ |
| H A D | turbostat.c | 631 bool enable_tsc_tweak; /* Use CPU Base freq instead of TSC freq for aperf/mperf counter */ in slm_bclk() 632 bool need_perf_multiplier; /* mperf/aperf multiplier */ in slm_bclk() 1918 .perf_name = "mperf", 2153 unsigned long long mperf; 3219 outp += sprintf(outp, "mperf: %016llX\n", t->mperf); in dump_counters() 3477 outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), pct(t->mperf, tsc)); in format_counters() 3481 outp += sprintf(outp, "%s%.0f", (printed++ ? delim : ""), base_hz / units * t->aperf / t->mperf); in format_counters() 3483 outp += sprintf(outp, "%s%.0f", (printed++ ? delim : ""), tsc / units * t->aperf / t->mperf / interval_float); in format_counters() 4017 if ((new->aperf > old->aperf) && (new->mperf > ol in delta_thread() 2128 unsigned long long mperf; global() member [all...] |
| /linux/Documentation/admin-guide/pm/ |
| H A D | amd-pstate.rst | 619 common_cpu common_secs common_usecs min_perf des_perf max_perf freq mperf apef tsc load duration_ms sample_num elapsed_time common_comm
|
| H A D | intel_pstate.rst | 838 …] ..s. 1177.680733: pstate_sample: core_busy=107 scaled=94 from=26 to=26 mperf=1143818 aperf=1230…
|