* Ready's the structure for a new log statement by reassigning the static * log information. Dynamic arguments can then be push()-ed into the * structure. * * \param meta * Static log data to refer to * \param logId * Preprocessor assigned log id of the log message * \param rdtsc * Invocation time of the log message */
| 554 | * Invocation time of the log message |
| 555 | */ |
| 556 | void |
| 557 | Log::LogMessage::reset(FormatMetadata *meta, uint32_t logId, uint64_t rdtsc) |
| 558 | { |
| 559 | this->metadata = meta; |
| 560 | this->rdtsc = rdtsc; |
| 561 | this->logId = logId; |
| 562 | numArgs = 0; |
| 563 | } |
| 564 | |
| 565 | // Indicates whether the structure stores a valid log statement or not |
| 566 | bool Log::LogMessage::valid() { |
no outgoing calls