4 #include <linux/types.h>
8 struct perf_tsc_conversion {
13 struct perf_event_mmap_page;
15 int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc,
16 struct perf_tsc_conversion *tc);
18 u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc);
19 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
22 struct perf_event_mmap_page;
26 int perf_event__synth_time_conv(const struct perf_event_mmap_page *pc,
27 struct perf_tool *tool,
28 perf_event__handler_t process,
29 struct machine *machine);