| 103 | } |
| 104 | |
| 105 | static 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 | |
| 121 | void timestamp_add(enum timestamp_id id, int64_t ts_time) |
| 122 | { |
no test coverage detected