Patent ID: 8832664

Claim:
A method of tracing in a system on chip comprising a trace monitor, the system on chip further comprising a master device and slave device exchanging a plurality of signals comprising a plurality of requests and a plurality of responses, the method comprising; tracing by the trace monitor comprising receiving and storing one or more requests and one or more responses from the plurality of requests and the plurality of responses; and tracking, by the trace monitor a set of one or more requests and a set of one or more responses made between the master device and the slave device before and after tracing is activated to determine which responses from the set of responses to trace after tracing is activated and which of the remaining responses from the set of responses to trace after tracing is deactivated, wherein for each request from the set of requests, the tracking comprises identifying the request from the master device to the slave device in the plurality of signals, determining whether tracing is activated when the request is issued, responsive to determining that tracing is deactivated, incrementing a discard counter; and responsive to determining that tracing is activated, incrementing a trace counter; wherein the set of requests and the set of responses have a first thread ID.