MCPcopy Create free account
hub / github.com/coreboot/coreboot / timestamp_add_table_entry

Function timestamp_add_table_entry

src/lib/timestamp.c:105–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static void timestamp_add_table_entry(struct timestamp_table *ts_table,
106 enum timestamp_id id, int64_t ts_time)
107{
108 struct timestamp_entry *tse;
109
110 if (ts_table->num_entries >= ts_table->max_entries)
111 return;
112
113 tse = &ts_table->entries[ts_table->num_entries++];
114 tse->entry_id = id;
115 tse->entry_stamp = ts_time;
116
117 if (ts_table->num_entries == ts_table->max_entries)
118 printk(BIOS_ERR, "Timestamp table full\n");
119}
120
121void timestamp_add(enum timestamp_id id, int64_t ts_time)
122{

Callers 2

timestamp_addFunction · 0.85

Calls 1

printkFunction · 0.50

Tested by

no test coverage detected