1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
7 struct perf_tsc_conversion
{
14 bool cap_user_time_zero
;
15 bool cap_user_time_short
;
18 struct perf_event_mmap_page
;
20 int perf_read_tsc_conversion(const struct perf_event_mmap_page
*pc
,
21 struct perf_tsc_conversion
*tc
);
23 u64
perf_time_to_tsc(u64 ns
, struct perf_tsc_conversion
*tc
);
24 u64
tsc_to_perf_time(u64 cyc
, struct perf_tsc_conversion
*tc
);
27 #endif // __PERF_TSC_H