Patents
US 7,415,705 B2#19375420 Most CitedExpiredUnited States (USPTO)Utility

Autonomic method and apparatus for hardware assist for patching code

5Forward Citations (#19375420 Global)
0.3/yrCitation Velocity (#27103098 Global)
2.17Citation PageRank (#12733150 Global)
50Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A method, apparatus and computer instructions for hardware assist for autonomically patching code. The present invention provides hardware microcode to a new type of metadata to selectively identify instructions to be patched for specific performance optimization functions. The present invention also provides a new flag in the machine status register (MSR) to enable or disable a performance monitoring application or process to perform code-patching functions. If the code patching function is enabled, the application or process may patch code at run time by associating the metadata with the selected instructions. The metadata includes pointers pointing to the patch code block code. The program code may be patched autonomically without modifying original code.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 5.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method of autonomically patching computer program code, comprising: checking a flag in a machine status register to determine whether code patching functionality is to be enabled; responsive to determining that code patching functionality is to be enabled, enabling the code patching functionality; executing a computer program instruction, wherein the computer program instruction is located at a start of a block of code of an execution sequence of original code instructions; determining whether metadata is associated with the computer program instruction, wherein the metadata identifies the c

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (50)

PatentTitleYearCitations
US 4,291,371 AI/O Request interrupt mechanism198187
US 4,316,245 AApparatus and method for semaphore initialization in a multiprocessing computer system for process synchronization1982146
US 5,051,944 AComputer address analyzer having a counter and memory locations each storing count value indicating occurrence of corresponding memory address199158
US 5,103,394 ASoftware performance analyzer1992221
US 5,142,634 ABranch prediction1992254
US 5,212,794 AMethod for optimizing computer code to provide more efficient execution on computers having cache memories1993187
US 5,339,426 ASystem and method for resume processing initialization199480
US 5,394,529 ABranch prediction unit for high-performance processor1995149
US 5,544,342 ASystem and method for prefetching information in a processing system1996216
US 5,581,778 AAdvanced massively parallel computer using a field of the instruction to selectively enable the profiling counter to increase its value in response to the system clock1996122
US 5,603,004 AMethod for decreasing time penalty resulting from a cache miss in a multi-level cache system199797
US 5,659,679 AMethod and apparatus for providing breakpoints on taken jumps and for providing software profiling in a computer system199796
US 5,689,712 AProfile-based optimizing postprocessors for data references199787
US 5,691,920 AMethod and system for performance monitoring of dispatch unit efficiency in a processing system1997116
US 5,708,803 AData processor with cache memory199850
US 5,752,062 AMethod and system for performance monitoring through monitoring an order of processor events during execution in a processing system1998136
US 5,768,500 AInterrupt-based hardware support for profiling memory system performance1998306
US 5,774,724 ASystem and method for acquiring high granularity performance data in a computer system1998147
US 5,794,028 AShared branch prediction structure199886
US 5,875,334 ASystem, method, and program for extending a SQL compiler for handling control statements packaged with SQL query statements1999290
US 5,920,721 ACompiler generating functionally-alike code sequences in an executable program intended for execution in different run-time environments199977
US 5,930,508 AMethod for storing and decoding instructions for a microprocessor having a plurality of function units1999114
US 5,937,437 AMethod and apparatus for monitoring address translation performance199994
US 5,938,766 ASystem for extending functionality of a digital ROM using RAM/ROM jump tables and patch manager for updating the tables1999118
US 5,938,778 ASystem and method for tracing instructions in an information handling system without changing the system source code1999113

Non-Patent Literature (5)

  • Aho et al., "Compilers: Principles, Techniques, and Tools", Addison-Wesley, 1988, pp. 488-497.
  • Chang et al., "Using Profile Information to Assist Classic Code Optimizations", Software Pract. Exper. Dec. 21, 1991, pp. 1301-1321.
  • Cohen et al., "Hardware-Assisted Characterization of NAS Benchmarks", Cluster Computing, vol. 4, No. 3, Jul. 2001, pp. 189-196.
  • Conte et al., "Accurate and Practical Profile-Driven Compilation Using the Profile Buffer", Proceedings of the 29th Annual ACM/IEEE International Symposium on Microarchitecture, Paris, France, 1996, pp. 36-45.
  • Conte et al., "Using Branch Handling Hardware to Support Profile-Driven Optimization", Proceedings of the 27th Annual International Symposium on Microarchitecture, San Jose CA, 1994, pp. 12-21.