Patent ID: 8694757

Claim:
A method for recording co-processor command execution data in a system comprising a host central processing unit (CPU) configured to execute main application code and a co-processor separate from the host CPU and configured to execute co-processor commands exclusively from the host CPU, wherein the host CPU is communicatively coupled to the co-processor via a command queue, and the co-processor is configured to receive co-processor commands via the command queue, the method comprising: maintaining, at the host CPU, a record of the co-processor commands written into the command queue; monitoring, via a hardware trace logic, one or more events based, at least in part, on the co-processor commands; storing in a first memory via the hardware trace logic the one or more events; and in response to filling the first memory, transferring, via a software element, the one or more events from the first memory to a main memory to thereby form a small memory trace data set in the main memory so that multiple small memory trace data sets in the main memory can be aggregated into a single large memory trace based, at least in part, on the record of the co-processor commands.