7 #define MSEC_TO_USEC(x) (x * 1000)
13 s64 current_time, start_stamp;
14 int zero_point_idx = 0;
32 if (cse_perf_data.
timestamp[i] == 0xffffffff) {
52 if (ts[i] && ts[i] < ts[zero_point_idx]) {
54 " wraparound detected\n", __func__);
59 ts[i] -= ts[zero_point_idx];
80 printk(
BIOS_DEBUG,
"CSE is disabled, not sending `Get Boot Perf` message\n");
int timestamp_tick_freq_mhz(void)
bool is_cse_enabled(void)
#define printk(level,...)
@ PERF_DATA_CSME_POLL_FOR_PMC_PPS_START
@ PERF_DATA_CSME_RBE_BOOT_STALL_DONE_TO_PMC
@ PERF_DATA_CSME_GET_PERF_RESPONSE
@ PERF_DATA_CSME_HOST_BOOT_PREP_DONE
@ PERF_DATA_PMC_SENT_CRDA
#define NUM_CSE_BOOT_PERF_DATA
bool cse_get_boot_performance_data(struct cse_boot_perf_rsp *boot_perf_rsp)
void timestamp_add(enum timestamp_id id, int64_t ts_time)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
uint32_t timestamp[NUM_CSE_BOOT_PERF_DATA]
static void cbmem_inject_telemetry_data(void)
void cse_get_telemetry_data(void)
#define timestamp_get()
Workaround for guard combination above.
@ TS_ME_HOST_BOOT_PREP_END
@ TS_ME_RECEIVED_CRDA_FROM_PMC