blob: a8b78f1b3243891c40560c6501c93ba2d377e37c [file] [log] [blame]
Adrian Hunter0b437862014-07-14 13:03:03 +03001#ifndef __PERF_TSC_H
2#define __PERF_TSC_H
3
4#include <linux/types.h>
5
6#include "../arch/x86/util/tsc.h"
7
8u64 perf_time_to_tsc(u64 ns, struct perf_tsc_conversion *tc);
9u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
Adrian Huntera6a69db2014-07-22 16:17:32 +030010u64 rdtsc(void);
Adrian Hunter0b437862014-07-14 13:03:03 +030011
12#endif