Home
last modified time | relevance | path

Searched refs:aperf (Results 1 – 12 of 12) sorted by relevance

/linux/arch/x86/kernel/cpu/
H A Daperfmperf.c32 u64 aperf; member
42 u64 aperf, mperf; in init_counter_refs() local
44 rdmsrq(MSR_IA32_APERF, aperf); in init_counter_refs()
47 this_cpu_write(cpu_samples.aperf, aperf); in init_counter_refs()
477 u64 acnt, mcnt, aperf, mperf; in arch_scale_freq_tick() local
482 rdmsrq(MSR_IA32_APERF, aperf); in arch_scale_freq_tick()
484 acnt = aperf - s->aperf; in arch_scale_freq_tick()
487 s->aperf = aperf; in arch_scale_freq_tick()
/linux/tools/testing/selftests/intel_pstate/
H A Daperf.c27 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.gitignore2 aperf
H A DMakefile9 TEST_GEN_FILES := msr aperf
H A Drun.sh60 ./aperf $cpu &
/linux/tools/power/x86/amd_pstate_tracer/
H A Damd_pstate_trace.py155 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+)'
214 aperf = search_obj.group(20)
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/drivers/cpufreq/
H A Damd-pstate.c537 u64 aperf, mperf, tsc; in amd_pstate_sample() local
541 rdmsrq(MSR_IA32_APERF, aperf); in amd_pstate_sample()
552 cpudata->cur.aperf = aperf; in amd_pstate_sample()
555 cpudata->cur.aperf -= cpudata->prev.aperf; in amd_pstate_sample()
559 cpudata->prev.aperf = aperf; 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 Damd-pstate.h55 u64 aperf; member
H A Dintel_pstate.c115 u64 aperf; 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
2484 rdmsrq(MSR_IA32_APERF, aperf); in intel_pstate_sample()
2495 cpu->sample.aperf = aperf; in intel_pstate_sample()
2498 cpu->sample.aperf -= cpu->prev_aperf; in intel_pstate_sample()
2502 cpu->prev_aperf = aperf; in intel_pstate_sample()
2599 sample->aperf, in intel_pstate_adjust_pstate()
3138 sample->aperf, in intel_cpufreq_trace()
/linux/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, ts… argument
336 …_dec), int(core_busy), int(scaled), int(_from), int(_to), int(mperf), int(aperf), int(tsc), freq_g…
449 aperf = search_obj.group(20)
480 …u_int, time_pre_dec, time_post_dec, core_busy, scaled, _from, _to, mperf, aperf, tsc, freq_ghz, io…
/linux/tools/perf/Documentation/
H A Dperf-stat.txt532 Measure SMI cost if msr/aperf/ and msr/smi/ events are supported.
536 The aperf counter will not be effected by the setting.
537 The cost of SMI can be measured by (aperf - unhalted core cycles).
541 The output is SMI cycles%, equals to (aperf - unhalted core cycles) / aperf
/linux/tools/power/x86/turbostat/
H A Dturbostat.c2015 unsigned long long aperf; member
3033 outp += sprintf(outp, "aperf: %016llX\n", t->aperf); in dump_counters()
3261 …outp += sprintf(outp, "%s%.0f", (printed++ ? delim : ""), 1.0 / units * t->aperf / interval_float); in format_counters()
3268 outp += sprintf(outp, "%s%.0f", (printed++ ? delim : ""), base_hz / units * t->aperf / t->mperf); in format_counters()
3270 …outp += sprintf(outp, "%s%.0f", (printed++ ? delim : ""), tsc / units * t->aperf / t->mperf / inte… in format_counters()
3277 outp += sprintf(outp, "%s%.2f", (printed++ ? delim : ""), 1.0 * t->instr_count / t->aperf); in format_counters()
3804 if ((new->aperf > old->aperf) && (new->mperf > old->mperf)) { in delta_thread()
3805 old->aperf = new->aperf - old->aperf; in delta_thread()
3922 t->aperf = 0; in clear_counters()
4033 average.threads.aperf += t->aperf; in sum_counters()
[all …]