.. | .. |
---|
4 | 4 | |
---|
5 | 5 | #include <linux/types.h> |
---|
6 | 6 | |
---|
7 | | -#include "event.h" |
---|
8 | | - |
---|
9 | 7 | struct perf_tsc_conversion { |
---|
10 | 8 | u16 time_shift; |
---|
11 | 9 | u32 time_mult; |
---|
12 | 10 | u64 time_zero; |
---|
| 11 | + u64 time_cycles; |
---|
| 12 | + u64 time_mask; |
---|
| 13 | + |
---|
| 14 | + bool cap_user_time_zero; |
---|
| 15 | + bool cap_user_time_short; |
---|
13 | 16 | }; |
---|
| 17 | + |
---|
14 | 18 | struct perf_event_mmap_page; |
---|
15 | 19 | |
---|
16 | 20 | int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc, |
---|
.. | .. |
---|
20 | 24 | u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc); |
---|
21 | 25 | u64 rdtsc(void); |
---|
22 | 26 | |
---|
23 | | -struct perf_event_mmap_page; |
---|
24 | | -struct perf_tool; |
---|
25 | | -struct machine; |
---|
26 | | - |
---|
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); |
---|
31 | | - |
---|
32 | | -#endif |
---|
| 27 | +#endif // __PERF_TSC_H |
---|