Home
last modified time | relevance | path

Searched refs:mperf (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-6.6/drivers/cpufreq/
H A Damd-pstate-trace.h31 u64 mperf,
43 mperf,
56 __field(unsigned long long, mperf)
69 __entry->mperf = mperf;
77 TP_printk("amd_min_perf=%lu amd_des_perf=%lu amd_max_perf=%lu freq=%llu mperf=%llu aperf=%llu tsc=%llu cpu_id=%u changed=%s fast_switch=%s",
82 (unsigned long long)__entry->mperf,
H A Damd-pstate.c399 u64 aperf, mperf, tsc; in amd_pstate_sample() local
404 rdmsrl(MSR_IA32_MPERF, mperf); in amd_pstate_sample()
407 if (cpudata->prev.mperf == mperf || cpudata->prev.tsc == tsc) { in amd_pstate_sample()
415 cpudata->cur.mperf = mperf; in amd_pstate_sample()
418 cpudata->cur.mperf -= cpudata->prev.mperf; in amd_pstate_sample()
422 cpudata->prev.mperf = mperf; in amd_pstate_sample()
[all...]
H A Dintel_pstate.c100 * @mperf: Difference of maximum performance frequency clock count
113 u64 mperf; member
2198 sample->core_avg_perf = div_ext_fp(sample->aperf, sample->mperf); in intel_pstate_calc_avg_perf()
2203 u64 aperf, mperf; in intel_pstate_sample() local
2209 rdmsrl(MSR_IA32_MPERF, mperf); in intel_pstate_sample()
2211 if (cpu->prev_mperf == mperf || cpu->prev_tsc == tsc) { in intel_pstate_sample()
2220 cpu->sample.mperf = mperf; in intel_pstate_sample()
2223 cpu->sample.mperf -= cpu->prev_mperf; in intel_pstate_sample()
2227 cpu->prev_mperf = mperf; in intel_pstate_sample()
[all...]
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/
H A Daperfmperf.c24 u64 mperf; member
42 u64 mperf, mperf_delta; in aperfmperf_snapshot_khz() local
48 rdmsrl(MSR_IA32_MPERF, mperf); in aperfmperf_snapshot_khz()
52 mperf_delta = mperf - s->mperf; in aperfmperf_snapshot_khz()
63 s->mperf = mperf; in aperfmperf_snapshot_khz()
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/
H A Daperfmperf.c32 u64 mperf; member
41 u64 aperf, mperf; in init_counter_refs() local
44 rdmsrl(MSR_IA32_MPERF, mperf); in init_counter_refs()
47 this_cpu_write(cpu_samples.mperf, mperf); in init_counter_refs()
385 u64 acnt, mcnt, aperf, mperf; in arch_scale_freq_tick() local
391 rdmsrl(MSR_IA32_MPERF, mperf); in arch_scale_freq_tick()
393 mcnt = mperf - s->mperf; in arch_scale_freq_tick()
396 s->mperf in arch_scale_freq_tick()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/intel_pstate/
H A Daperf.c28 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()
/kernel/linux/linux-6.6/tools/testing/selftests/intel_pstate/
H A Daperf.c28 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()
/kernel/linux/linux-6.6/tools/power/x86/amd_pstate_tracer/
H A Damd_pstate_trace.py156 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):
166 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)
182 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')
200 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+)'
214 mperf = search_obj.group(18)
233 load = Decimal(int(mperf)*100)/ Decimal(tsc)
235 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)
/kernel/linux/linux-5.10/include/trace/events/
H A Dpower.h71 u64 mperf,
82 mperf,
94 __field(u64, mperf)
106 __entry->mperf = mperf;
113 TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu io_boost=%lu",
118 (unsigned long long)__entry->mperf,
/kernel/linux/linux-6.6/include/trace/events/
H A Dpower.h93 u64 mperf,
104 mperf,
116 __field(u64, mperf)
128 __entry->mperf = mperf;
135 TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu io_boost=%lu",
140 (unsigned long long)__entry->mperf,
/kernel/linux/linux-5.10/tools/power/x86/intel_pstate_tracer/
H A Dintel_pstate_tracer.py326 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):
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)
370 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')
438 re.search(r'(^(.*?)\[)((\d+)[^\]])(.*?)(\d+)([.])(\d+)(.*?core_busy=)(\d+)(.*?scaled=)(\d+)(.*?from=)(\d+)(.*?to=)(\d+)(.*?mperf=)(\d+)(.*?aperf=)(\d+)(.*?tsc=)(\d+)(.*?freq=)(\d+)'
452 mperf = search_obj.group(18)
477 load = Decimal(int(mperf)*100)/ Decimal(tsc)
484 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)
/kernel/linux/linux-6.6/tools/power/x86/intel_pstate_tracer/
H A Dintel_pstate_tracer.py326 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):
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)
/kernel/linux/linux-6.6/include/linux/
H A Damd-pstate.h26 * @mperf: maximum performance frequency clock count
31 u64 mperf; member
/kernel/linux/linux-5.10/arch/x86/events/
H A Dmsr.c113 PMU_EVENT_ATTR_STRING(mperf, attr_mperf, "event=0x02" );
125 PMU_EVENT_GROUP(events, mperf);
/kernel/linux/linux-6.6/arch/x86/events/
H A Dmsr.c125 PMU_EVENT_ATTR_STRING(mperf, attr_mperf, "event=0x02" );
137 PMU_EVENT_GROUP(events, mperf);
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dsmpboot.c2036 u64 aperf, mperf; in init_counter_refs() local
2039 rdmsrl(MSR_IA32_MPERF, mperf); in init_counter_refs()
2042 this_cpu_write(arch_prev_mperf, mperf); in init_counter_refs()
2083 u64 aperf, mperf; in arch_scale_freq_tick() local
2090 rdmsrl(MSR_IA32_MPERF, mperf); in arch_scale_freq_tick()
2093 mcnt = mperf - this_cpu_read(arch_prev_mperf); in arch_scale_freq_tick()
2096 this_cpu_write(arch_prev_mperf, mperf); in arch_scale_freq_tick()
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Dintel_pstate.c108 * @mperf: Difference of maximum performance frequency clock count
121 u64 mperf; member
1855 sample->core_avg_perf = div_ext_fp(sample->aperf, sample->mperf); in intel_pstate_calc_avg_perf()
1860 u64 aperf, mperf; in intel_pstate_sample() local
1866 rdmsrl(MSR_IA32_MPERF, mperf); in intel_pstate_sample()
1868 if (cpu->prev_mperf == mperf || cpu->prev_tsc == tsc) { in intel_pstate_sample()
1877 cpu->sample.mperf = mperf; in intel_pstate_sample()
1880 cpu->sample.mperf -= cpu->prev_mperf; in intel_pstate_sample()
1884 cpu->prev_mperf = mperf; in intel_pstate_sample()
[all...]
/kernel/linux/linux-5.10/tools/power/x86/turbostat/
H A Dturbostat.c174 unsigned long long mperf; member
930 outp += sprintf(outp, "mperf: %016llX\n", t->mperf); in dump_counters()
1099 outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * t->mperf/tsc); in format_counters()
1103 outp += sprintf(outp, "%s%.0f", (printed++ ? delim : ""), base_hz / units * t->aperf / t->mperf); in format_counters()
1106 tsc / units * t->aperf / t->mperf / interval_float); in format_counters()
1454 if ((new->aperf > old->aperf) && (new->mperf > old->mperf)) { in delta_thread()
1456 old->mperf = new->mperf in delta_thread()
[all...]
/kernel/linux/linux-6.6/tools/power/x86/turbostat/
H A Dturbostat.c348 unsigned long long mperf; member
1027 outp += sprintf(outp, "mperf: %016llX\n", t->mperf); in dump_counters()
1190 outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 100.0 * t->mperf / tsc); in format_counters()
1195 sprintf(outp, "%s%.0f", (printed++ ? delim : ""), base_hz / units * t->aperf / t->mperf); in format_counters()
1198 tsc / units * t->aperf / t->mperf / interval_float); in format_counters()
1571 if ((new->aperf > old->aperf) && (new->mperf > old->mperf)) { in delta_thread()
1573 old->mperf = new->mperf in delta_thread()
[all...]

Completed in 29 milliseconds