Lines Matching defs:sample

100  * struct sample -	Store performance sample
102 * performance during last sample period
107 * read from APERF MSR between last and current sample
109 * read from MPERF MSR between last and current sample
111 * current sample
114 * This structure is used in the cpudata structure to store performance sample
117 struct sample {
210 * current sample
211 * @sample: Storage for storing last Sample data
249 struct sample sample;
1792 cpu->last_update = cpu->sample.time;
1801 expired = time_after64(cpu->sample.time, cpu->last_update +
1808 cpu->last_update = cpu->sample.time;
1814 cpu->sample.time = time;
1853 struct sample *sample = &cpu->sample;
1855 sample->core_avg_perf = div_ext_fp(sample->aperf, sample->mperf);
1874 cpu->last_sample_time = cpu->sample.time;
1875 cpu->sample.time = time;
1876 cpu->sample.aperf = aperf;
1877 cpu->sample.mperf = mperf;
1878 cpu->sample.tsc = tsc;
1879 cpu->sample.aperf -= cpu->prev_aperf;
1880 cpu->sample.mperf -= cpu->prev_mperf;
1881 cpu->sample.tsc -= cpu->prev_tsc;
1888 * previous sample data fields are equal to zero or stale and they must
1890 * that sample.time will always be reset before setting the utilization
1891 * update hook and make the caller skip the sample then.
1902 return mul_ext_fp(cpu->sample.core_avg_perf, cpu_khz);
1908 cpu->sample.core_avg_perf);
1913 struct sample *sample = &cpu->sample;
1917 busy_frac = div_fp(sample->mperf << cpu->aperf_mperf_shift,
1918 sample->tsc);
1923 sample->busy_scaled = busy_frac * 100;
1966 struct sample *sample;
1976 sample = &cpu->sample;
1977 trace_pstate_sample(mul_ext_fp(100, sample->core_avg_perf),
1978 fp_toint(sample->busy_scaled),
1981 sample->mperf,
1982 sample->aperf,
1983 sample->tsc,
2018 delta_ns = time - cpu->sample.time;
2169 cpu->sample.time = 0;
2508 struct sample *sample;
2516 sample = &cpu->sample;
2521 sample->mperf,
2522 sample->aperf,
2523 sample->tsc,