hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/tools/perf/util/tsc.h
....@@ -4,13 +4,17 @@
44
55 #include <linux/types.h>
66
7
-#include "event.h"
8
-
97 struct perf_tsc_conversion {
108 u16 time_shift;
119 u32 time_mult;
1210 u64 time_zero;
11
+ u64 time_cycles;
12
+ u64 time_mask;
13
+
14
+ bool cap_user_time_zero;
15
+ bool cap_user_time_short;
1316 };
17
+
1418 struct perf_event_mmap_page;
1519
1620 int perf_read_tsc_conversion(const struct perf_event_mmap_page *pc,
....@@ -20,13 +24,4 @@
2024 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
2125 u64 rdtsc(void);
2226
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