| /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, ts… argument 336 …nt(time_post_dec), int(core_busy), int(scaled), int(_from), int(_to), int(mperf), int(aperf), int(… 448 mperf = search_obj.group(18) 473 load = Decimal(int(mperf)*100)/ Decimal(tsc) 480 …_csv(cpu_int, time_pre_dec, time_post_dec, core_busy, scaled, _from, _to, mperf, aperf, tsc, freq_…
|
| /linux/drivers/cpufreq/ |
| H A D | amd-pstate.c | 537 u64 aperf, mperf, tsc; in amd_pstate_sample() local 542 rdmsrq(MSR_IA32_MPERF, mperf); in amd_pstate_sample() 545 if (cpudata->prev.mperf == mperf || cpudata->prev.tsc == tsc) { in amd_pstate_sample() 553 cpudata->cur.mperf = mperf; in amd_pstate_sample() 556 cpudata->cur.mperf -= cpudata->prev.mperf; in amd_pstate_sample() 560 cpudata->prev.mperf = mperf; in amd_pstate_sample() 563 cpudata->freq = div64_u64((cpudata->cur.aperf * cpu_khz), cpudata->cur.mperf); in amd_pstate_sample() 592 cpudata->cur.mperf, cpudata->cur.aperf, cpudata->cur.tsc, in amd_pstate_update()
|
| H A D | amd-pstate.h | 56 u64 mperf; member
|
| H A D | intel_pstate.c | 116 u64 mperf; member 2474 sample->core_avg_perf = div_ext_fp(sample->aperf, sample->mperf); in intel_pstate_calc_avg_perf() 2479 u64 aperf, mperf; in intel_pstate_sample() local 2485 rdmsrq(MSR_IA32_MPERF, mperf); in intel_pstate_sample() 2487 if (cpu->prev_mperf == mperf || cpu->prev_tsc == tsc) { in intel_pstate_sample() 2496 cpu->sample.mperf = mperf; in intel_pstate_sample() 2499 cpu->sample.mperf -= cpu->prev_mperf; in intel_pstate_sample() 2503 cpu->prev_mperf = mperf; in intel_pstate_sample() 2536 busy_frac = div_fp(sample->mperf << cpu->aperf_mperf_shift, in get_target_pstate() 2598 sample->mperf, in intel_pstate_adjust_pstate() [all …]
|
| /linux/tools/power/cpupower/utils/idle_monitor/ |
| H A D | idle_monitors.def | 6 DEF(mperf)
|
| /linux/tools/power/x86/turbostat/ |
| H A D | turbostat.c | 2120 unsigned long long mperf; member 3153 outp += sprintf(outp, "mperf: %016llX\n", t->mperf); in dump_counters() 3405 outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), pct(t->mperf, tsc)); in format_counters() 3409 outp += sprintf(outp, "%s%.0f", (printed++ ? delim : ""), base_hz / units * t->aperf / t->mperf); in format_counters() 3411 …outp += sprintf(outp, "%s%.0f", (printed++ ? delim : ""), tsc / units * t->aperf / t->mperf / inte… in format_counters() 3946 if ((new->aperf > old->aperf) && (new->mperf > old->mperf)) { in delta_thread() 3948 old->mperf = new->mperf - old->mperf; in delta_thread() 3965 if ((old->mperf + core_delta->c3 + core_delta->c6 + core_delta->c7) > (old->tsc * tsc_tweak)) in delta_thread() 3969 old->c1 = (old->tsc * tsc_tweak) - old->mperf - core_delta->c3 - core_delta->c6 - core_delta->c7; in delta_thread() 3973 if (old->mperf == 0) { in delta_thread() [all …]
|
| /linux/Documentation/admin-guide/pm/ |
| H A D | amd-pstate.rst | 560 …common_cpu common_secs common_usecs min_perf des_perf max_perf freq mperf apef tsc …
|