Patents
US 9,645,912 B2#27042425 Most CitedActiveUnited States (USPTO)Utility

In-place function modification

4Forward Citations (#27042425 Global)
0.4/yrCitation Velocity (#18542165 Global)
1.12Citation PageRank (#35802803 Global)
50Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Modifying computer program code can be performed at or immediately prior to runtime of the computer code in a runtime environment of a common language infrastructure of a language-neutral framework for developing and executing computer applications. A function in a computer program can be modified at runtime by injecting arbitrary code, while mitigating an alteration of a program's call stack. A just-in-time compilation service is used to compile and execute intermediate language code of the program, and the runtime environment sends callback functions to an event-based profiling agent (profiler) attached to the runtime environment. The profiler can trap desired functions, as determined by configuration data, and inject modification code from stub methods in a stub assembly file. The modified code can be sent back to the runtime environment to be executed by the just-in-time compilation service.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method, comprising: comparing a function associated with a computer program being executed to configuration data from a user created configuration file to determine whether the function is to be modified, the function specified within a callback sent from a runtime library, the configuration data identifying functions desired for modification; and responsive to determining that the function is to be modified: trapping the callback before delivery of the callback to a compiler associated with the computer program; injecting modifying intermediate language code from a file separate from the co

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 5,596,702 AMethod and system for dynamically sharing user interface displays among a plurality of application program1997281
US 6,308,320 B1Method and apparatus for incremental selective compilation of intermediate code files during computer system compilation and linking200178
US 2002052856 A1Method of data-dependence analysis and display for procedure call—28
US 6,397,378 B1Test executive system and method including distributed type storage and conflict resolution2002135
US 6,405,316 B1Method and system for injecting new code into existing application code2002155
US 2002152455 A1Dynamic instrumentation of an executable program—49
US 6,484,276 B1Method and apparatus for providing extensible object-oriented fault injection2002186
US 2002194580 A1Edge profiling for executable program code having branches through stub code segments—30
US 2002199172 A1Dynamic instrumentation event trace system and methods—269
US 2003163608 A1Instrumentation and workload recording for a system for performance testing of N-tiered computer systems using recording and playback of workloads—83
US 2003212988 A1Preserving program context when adding probe routine calls for program instrumentation—21
US 2004049579 A1Capacity-on-demand in distributed computing environments—215
US 2004163077 A1Apparatus and method for dynamic instrumenting of code to minimize system perturbation—182
US 2004168156 A1Dynamic instrumentation of related programming functions—15
US 2004199904 A1Method and apparatus for obtaining profile data for use in optimizing computer programming code—33
US 2004243882 A1System and method for fault injection and monitoring—58
US 2004268244 A1Scalable storage and processing of hierarchical documents—61
US 2004268367 A1Method for managing a callback object in an event-based environment using weak references—9
US 2005010930 A1System and method for high-performance profiling of application events—51
US 2005102656 A1Instrumentation injection for common language runtime—18
US 2005114848 A1Dynamic instrumentation for a mixed mode virtual machine—64
US 2005216885 A1Attribute-Based Component Programming System and Methodology for Object-Oriented Languages—111
US 2006015854 A1Providing instrumentation data to an instrumentation data source from within a managed code—20
US 2006080394 A1Web service broadcast engine—46
US 2006095895 A1Method and apparatus for inserting code—75
US 2006101438 A1Conditional compilation of intermediate language code based on current environment—21

Non-Patent Literature (5)

  • "Microsfot Computer Dictionary 5th Edition" , Microsoft Corporation , 2002, pp. 79, 280, 293-294, and 339.
  • Carroll et al., A framework for incremental extensible compiler construction, Jun. 2003, 10 pages.
  • Couvreur Julien, "IL Modification at Runtime (Step III)", Retrieved at<<http://blog.monstuff.com/archives/000077.html>>, Oct. 14, 2008, pp. 1-8.
  • Drape et al., Transforming the .NET intermediate language using path logic programming, Oct. 2002, 12 pages.
  • Feijao Antonio, "InjLib-A Library that Implements Remote Code Injection for All Windows Versions" , Retrieved at<<http://69.10.233.10/KB/library/InjLib.aspx?display=Print>>, Oct. 14, 2008 , pp. 1-11.