Lines Matching refs:rec
64 struct time_bench_record rec; member
202 int (*func)(struct time_bench_record *rec, void *data));
203 bool time_bench_calc_stats(struct time_bench_record *rec);
214 static __always_inline void time_bench_start(struct time_bench_record *rec) in time_bench_start() argument
217 ktime_get_real_ts64(&rec->ts_start); in time_bench_start()
218 if (rec->flags & TIME_BENCH_PMU) { in time_bench_start()
219 rec->pmc_inst_start = pmc_inst(); in time_bench_start()
220 rec->pmc_clk_start = pmc_clk(); in time_bench_start()
222 rec->tsc_start = tsc_start_clock(); in time_bench_start()
225 static __always_inline void time_bench_stop(struct time_bench_record *rec, in time_bench_stop() argument
228 rec->tsc_stop = tsc_stop_clock(); in time_bench_stop()
229 if (rec->flags & TIME_BENCH_PMU) { in time_bench_stop()
230 rec->pmc_inst_stop = pmc_inst(); in time_bench_stop()
231 rec->pmc_clk_stop = pmc_clk(); in time_bench_stop()
234 ktime_get_real_ts64(&rec->ts_stop); in time_bench_stop()
235 rec->invoked_cnt = invoked_cnt; in time_bench_stop()