| 99 | static unsigned long tick_freq_mhz; |
| 100 | |
| 101 | static void timestamp_set_tick_freq(unsigned long table_tick_freq_mhz) |
| 102 | { |
| 103 | tick_freq_mhz = table_tick_freq_mhz; |
| 104 | |
| 105 | /* Honor table frequency if present. */ |
| 106 | if (!tick_freq_mhz) |
| 107 | tick_freq_mhz = arch_tick_frequency(); |
| 108 | |
| 109 | if (!tick_freq_mhz) { |
| 110 | fprintf(stderr, "Cannot determine timestamp tick frequency.\n"); |
| 111 | exit(1); |
| 112 | } |
| 113 | |
| 114 | debug("Timestamp tick frequency: %ld MHz\n", tick_freq_mhz); |
| 115 | } |
| 116 | |
| 117 | static uint64_t arch_convert_raw_ts_entry(uint64_t ts) |
| 118 | { |
no test coverage detected