/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | amd-pstate-trace.h | 32 u64 aperf, 44 aperf, 57 __field(unsigned long long, aperf) 70 __entry->aperf = aperf; 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", 83 (unsigned long long)__entry->aperf,
|
H A D | amd-pstate.c | 399 u64 aperf, mperf, tsc; in amd_pstate_sample() local 403 rdmsrl(MSR_IA32_APERF, aperf); in amd_pstate_sample() 414 cpudata->cur.aperf = aperf; in amd_pstate_sample() 417 cpudata->cur.aperf -= cpudata->prev.aperf; in amd_pstate_sample() 421 cpudata->prev.aperf = aperf; in amd_pstate_sample() 425 cpudata->freq = div64_u64((cpudata->cur.aperf * cpu_khz), cpudata->cur.mperf); in amd_pstate_sample() 458 cpudata->cur.mperf, cpudata->cur.aperf, cpudat in amd_pstate_update() [all...] |
H A D | intel_pstate.c | 98 * @aperf: Difference of actual performance frequency clock count 112 u64 aperf; 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 2208 rdmsrl(MSR_IA32_APERF, aperf); in intel_pstate_sample() 2219 cpu->sample.aperf = aperf; in intel_pstate_sample() 2222 cpu->sample.aperf -= cpu->prev_aperf; in intel_pstate_sample() 2226 cpu->prev_aperf = aperf; in intel_pstate_sample() 2325 sample->aperf, in intel_pstate_adjust_pstate() [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/ |
H A D | aperfmperf.c | 23 u64 aperf; member 41 u64 aperf, aperf_delta; in aperfmperf_snapshot_khz() local 47 rdmsrl(MSR_IA32_APERF, aperf); in aperfmperf_snapshot_khz() 51 aperf_delta = aperf - s->aperf; in aperfmperf_snapshot_khz() 62 s->aperf = aperf; in aperfmperf_snapshot_khz()
|
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/ |
H A D | aperfmperf.c | 31 u64 aperf; member 41 u64 aperf, mperf; in init_counter_refs() local 43 rdmsrl(MSR_IA32_APERF, aperf); in init_counter_refs() 46 this_cpu_write(cpu_samples.aperf, aperf); in init_counter_refs() 385 u64 acnt, mcnt, aperf, mperf; in arch_scale_freq_tick() local 390 rdmsrl(MSR_IA32_APERF, aperf); in arch_scale_freq_tick() 392 acnt = aperf - s->aperf; in arch_scale_freq_tick() 395 s->aperf in arch_scale_freq_tick() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/intel_pstate/ |
H A D | aperf.c | 27 long long aperf, old_aperf, new_aperf; in main() local 83 aperf = new_aperf-old_aperf; in main() 91 printf("freq: %7.0f\n", tsc / (1.0*aperf / (1.0 * mperf)) / total); in main()
|
H A D | Makefile | 9 TEST_GEN_FILES := msr aperf
|
H A D | run.sh | 7 # test runs the aperf.c program to put load on each processor. 54 echo "launching aperf load on $cpu" 55 ./aperf $cpu &
|
/kernel/linux/linux-6.6/tools/testing/selftests/intel_pstate/ |
H A D | aperf.c | 27 long long aperf, old_aperf, new_aperf; in main() local 83 aperf = new_aperf-old_aperf; in main() 91 printf("freq: %7.0f\n", tsc / (1.0*aperf / (1.0 * mperf)) / total); in main()
|
H A D | Makefile | 9 TEST_GEN_FILES := msr aperf
|
H A D | run.sh | 7 # test runs the aperf.c program to put load on each processor. 54 echo "launching aperf load on $cpu" 55 ./aperf $cpu &
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | power.h | 72 u64 aperf, 83 aperf, 95 __field(u64, aperf) 107 __entry->aperf = aperf; 113 TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu io_boost=%lu", 119 (unsigned long long)__entry->aperf,
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | power.h | 94 u64 aperf, 105 aperf, 117 __field(u64, aperf) 129 __entry->aperf = aperf; 135 TP_printk("core_busy=%lu scaled=%lu from=%lu to=%lu mperf=%llu aperf=%llu tsc=%llu freq=%lu io_boost=%lu", 141 (unsigned long long)__entry->aperf,
|
/kernel/linux/linux-6.6/tools/power/x86/amd_pstate_tracer/ |
H A D | amd_pstate_trace.py | 156 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+)' 215 aperf = search_obj.group(20) 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/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): 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+)' 453 aperf = search_obj.group(20) 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 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): 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+)' 449 aperf = search_obj.group(20) 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 D | amd-pstate.h | 25 * @aperf: actual performance frequency clock count 30 u64 aperf; member
|
/kernel/linux/linux-5.10/arch/x86/events/ |
H A D | msr.c | 112 PMU_EVENT_ATTR_STRING(aperf, attr_aperf, "event=0x01" ); 124 PMU_EVENT_GROUP(events, aperf);
|
/kernel/linux/linux-6.6/arch/x86/events/ |
H A D | msr.c | 124 PMU_EVENT_ATTR_STRING(aperf, attr_aperf, "event=0x01" ); 136 PMU_EVENT_GROUP(events, aperf);
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | smpboot.c | 2036 u64 aperf, mperf; in init_counter_refs() local 2038 rdmsrl(MSR_IA32_APERF, aperf); in init_counter_refs() 2041 this_cpu_write(arch_prev_aperf, aperf); in init_counter_refs() 2083 u64 aperf, mperf; in arch_scale_freq_tick() local 2089 rdmsrl(MSR_IA32_APERF, aperf); in arch_scale_freq_tick() 2092 acnt = aperf - this_cpu_read(arch_prev_aperf); in arch_scale_freq_tick() 2095 this_cpu_write(arch_prev_aperf, aperf); in arch_scale_freq_tick()
|
/kernel/linux/linux-5.10/drivers/cpufreq/ |
H A D | intel_pstate.c | 106 * @aperf: Difference of actual performance frequency clock count 120 u64 aperf; 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 1865 rdmsrl(MSR_IA32_APERF, aperf); in intel_pstate_sample() 1876 cpu->sample.aperf = aperf; in intel_pstate_sample() 1879 cpu->sample.aperf -= cpu->prev_aperf; in intel_pstate_sample() 1883 cpu->prev_aperf = aperf; in intel_pstate_sample() 1982 sample->aperf, in intel_pstate_adjust_pstate() [all...] |
/kernel/linux/linux-6.6/tools/power/x86/turbostat/ |
H A D | turbostat.c | 347 unsigned long long aperf; member 1026 outp += sprintf(outp, "aperf: %016llX\n", t->aperf); in dump_counters() 1187 outp += sprintf(outp, "%s%.0f", (printed++ ? delim : ""), 1.0 / units * t->aperf / interval_float); 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() 1205 outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 1.0 * t->instr_count / t->aperf); in format_counters() 1571 if ((new->aperf > old->aperf) && (new->mperf > old->mperf)) { in delta_thread() 1572 old->aperf in delta_thread() [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | stat-shadow.c | 766 double smi_num, aperf, cycles, cost = 0.0; in print_smi_cost() local 771 aperf = runtime_stat_avg(st, STAT_APERF, ctx, cpu); in print_smi_cost() 774 if ((cycles == 0) || (aperf == 0)) in print_smi_cost() 778 cost = (aperf - cycles) / aperf * 100.00; in print_smi_cost()
|
H A D | stat.c | 103 ID(APERF, msr/aperf/),
|
/kernel/linux/linux-5.10/tools/power/x86/turbostat/ |
H A D | turbostat.c | 173 unsigned long long aperf; member 929 outp += sprintf(outp, "aperf: %016llX\n", t->aperf); in dump_counters() 1096 1.0 / units * t->aperf / interval_float); 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() 1455 old->aperf = new->aperf in delta_thread() [all...] |