1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
9 struct perf_tsc_conversion
{
16 bool cap_user_time_zero
;
17 bool cap_user_time_short
;
20 struct perf_event_mmap_page
;
22 int perf_read_tsc_conversion(const struct perf_event_mmap_page
*pc
,
23 struct perf_tsc_conversion
*tc
);
25 u64
perf_time_to_tsc(u64 ns
, struct perf_tsc_conversion
*tc
);
26 u64
tsc_to_perf_time(u64 cyc
, struct perf_tsc_conversion
*tc
);
28 u64
arch_get_tsc_freq(void);
30 size_t perf_event__fprintf_time_conv(union perf_event
*event
, FILE *fp
);
32 #endif // __PERF_TSC_H