core/sal: interface for backend-specific notion of time
This adds an interface for a backend-specific notion of time, e.g. CPU cycles since simulator start, and a concrete implementation for the Bochs backend. This is needed to record CPU idle times (e.g., HLT instruction), and for target backends capable of more timing-accurate execution. This change also modifies the tracing plugin to add the time to all trace events. Change-Id: I93ac1d54c07f32b0b8f84f333417741d8e9c8288
This commit is contained in:
@ -18,6 +18,10 @@ message Trace_Event_Extended {
|
||||
|
||||
message Trace_Event {
|
||||
required uint64 ip = 1;
|
||||
// backend-specific notion of time since last event, counted, e.g., in
|
||||
// CPU cycles; needed to record CPU idle times (e.g., HLT instruction),
|
||||
// and for target backends capable of timing-accurate execution
|
||||
optional int64 time_delta = 6;
|
||||
optional uint64 memaddr = 2;
|
||||
optional uint32 width = 3;
|
||||
enum AccessType {
|
||||
|
||||
Reference in New Issue
Block a user