发明名称 Method, system, and computer program product
摘要 A method for retrieving trace data from a target device is proposed. The target device comprises a program memory, a processor, a trace unit, and a trace buffer. The processor is operable to retrieve instructions from the program memory and to execute them. The trace buffer may contain trace data generated by the trace unit in response to the processor retrieving or executing instructions from the program memory. One or more patch instructions are written to the program memory. The processor executes said one or more patch instructions. The target device, in response to the processor executing said one or more patch instructions, performs a data transfer operation for copying the trace data from the trace buffer to a second memory outside the target device.
申请公布号 US9348723(B2) 申请公布日期 2016.05.24
申请号 US201113977076 申请日期 2011.01.21
申请人 Freescale Semiconductor, Inc. 发明人 Ionescu Razvan;Vicovan Ionut-Valentin
分类号 G06F11/34;G06F11/36 主分类号 G06F11/34
代理机构 代理人
主权项 1. A method of retrieving trace data from a target device, the target device comprising: a program memory, a processor for retrieving instructions from the program memory and executing them, a trace unit, and a trace buffer including trace data generated by the trace unit in response to the processor retrieving or executing instructions from the program memory; wherein the method comprises: writing one or more patch instructions to the program memory, the patch instructions comprising at least a first patch instruction;operating the processor to execute said one or more patch instructions; andthe target device performing a data transfer operation for copying the trace data from the trace buffer to a second memory outside the target device, in response to the processor executing said patch instructions, wherein said operating the processor to execute said one or more patch instructions comprises: the processor retrieving or executing a triggering instruction;the trace unit advancing a Trace Write Pointer by a defined increment in response to said retrieving or executing the triggering instruction;the Trace Write Pointer thus hitting a Trace Event Request address of the trace buffer; andthe trace unit triggering the data transfer operation in response to the Trace Write Pointer hitting the Trace Event Request address.
地址 Austin TX US