发明名称 Dynamic software code instrumentation method and system
摘要 A method and system of monitoring code as it is executed by a target processor is provided for debugging, etc. Standardized software code function preamble and postamble instructions are dynamically replaced with instructions that will generate a predetermined exception. This exception is of a type included in the standard instruction set of the target processor, such as a misalignment exception. The exception generates a branch to a conventional exception vector table. An exception routine is inserted into the vector table, and includes instruction(s) to disable the data and/or address caches. Subsequent instructions in the vector table execute the replaced preamble instruction and, with or without re-enabling the cache, branch back to the address of the program code immediately following the faulted preamble address. Instructions of the function executed while cache is disabled are executed on the bus where they are visible, as opposed to within cache. The function continues to execute until the substitute postamble instruction generates a second misalignment exception. This second exception will branch the program back to the exception table which executes as discussed above and then re-enables the cache. The vector table branches back to an address subsequent to the faulted postamble and then to the calling function to enable the remainder of the program to run in a cache-enabled fashion.
申请公布号 US2004025145(A1) 申请公布日期 2004.02.05
申请号 US20020114793 申请日期 2002.05.06
申请人 DAWSON PETER S. 发明人 DAWSON PETER S.
分类号 G06F11/36;(IPC1-7):G06F9/44 主分类号 G06F11/36
代理机构 代理人
主权项
地址