12 #define MAX_TIMESTAMPS 192
38 ts_cache = (
void *)_timestamp;
101 return "Unknown timestamp ID";
137 if (
CONFIG(TIMESTAMPS_ON_CONSOLE))
172 if (!ts_cache_table) {
199 for (i = 0; i < ts_cache_table->
num_entries; i++) {
225 if (ts_cbmem_table ==
NULL) {
249 if (N == 0 ||
M == 0)
255 if (ts_table ==
NULL) {
291 if (!
CONFIG(HAVE_MONOTONIC_TIMER))
uint64_t timestamp_get(void)
int timestamp_tick_freq_mhz(void)
void timer_monotonic_get(struct mono_time *mt)
#define assert(statement)
#define offsetof(TYPE, MEMBER)
void * cbmem_add(u32 id, u64 size)
void * cbmem_find(u32 id)
#define ROMSTAGE_CBMEM_INIT_HOOK(init_fn_)
#define CBMEM_ID_TIMESTAMP
#define printk(level,...)
POSTCAR_CBMEM_INIT_HOOK(migrate_ehci_debug)
RAMSTAGE_CBMEM_INIT_HOOK(migrate_ehci_debug)
#define REGION_SIZE(name)
static void mono_time_set_usecs(struct mono_time *mt, long us)
static long mono_time_diff_microseconds(const struct mono_time *t1, const struct mono_time *t2)
static int timestamp_should_run(void)
void timestamp_add_now(enum timestamp_id id)
static struct timestamp_table * timestamp_cache_get(void)
static struct timestamp_table * timestamp_table_get(void)
static void timestamp_table_set(struct timestamp_table *ts)
void timestamp_rescale_table(uint16_t N, uint16_t M)
uint32_t get_us_since_boot(void)
static void timestamp_cache_init(struct timestamp_table *ts_cache, uint64_t base)
void timestamp_add(enum timestamp_id id, int64_t ts_time)
static const char * timestamp_name(enum timestamp_id id)
static void timestamp_reinit(int is_recovery)
static struct timestamp_table * timestamp_alloc_cbmem_table(void)
static void timestamp_sync_cache_to_cbmem(struct timestamp_table *ts_cbmem_table)
static void timestamp_add_table_entry(struct timestamp_table *ts_table, enum timestamp_id id, int64_t ts_time)
static struct timestamp_table * glob_ts_table
void timestamp_init(uint64_t base)
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
#define ENV_PAYLOAD_LOADER
#define ENV_ROMSTAGE_OR_BEFORE
const struct smm_save_state_ops *legacy_ops __weak
unsigned long long uint64_t
struct timestamp_entry entries[0]
static const struct timestamp_id_to_name timestamp_ids[]