1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
9 struct perf_tsc_conversion {
14 struct perf_event_mmap_page;
16 int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc,
17 struct perf_tsc_conversion *tc);
19 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc);
20 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
23 struct perf_event_mmap_page;
27 int perf_event__synth_time_conv(const struct perf_event_mmap_page *pc,
28 struct perf_tool *tool,
29 perf_event__handler_t process,
30 struct machine *machine);