Generic wrapper scheme
Abstract
A method instruments a function in an executable file so that the instrumented function calls a generic preprocessor prior to execution of the body of the function. After the preprocessor modifies the original function's incoming parameters, the body of the function itself is executed. Finally, execution is directed to a generic postprocessor prior to returning from the function. The postprocessor modifies the outgoing parameters and return value. In one implementation, the parameters of an instrumented function are described and packaged into a descriptor data structure. The descriptor data structure is passed to the generic preprocessor and postprocessor. A generic processor uses the descriptor to select changed behaviors based on the calling context.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 20.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method of instrumenting target code to provide changed behavior, comprising: receiving target code as input; displaying a list of functions in the target code; receiving an association of at least two of the functions on the list with a same generic wrapper function, wherein the generic wrapper function comprises a first behavior associated with a first one of the at least two functions and a second behavior associated with a second one of the at least two functions; performing an instrumentation of the target code comprising: creating a descriptor data structure for eac
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 20 total)
References Cited — Backward Prior Art (12)
Non-Patent Literature (5)
- Parson, Dale. "Using Java Reflection to Automate Extension Language Parsing". Bell Laboratories, Lucent Technologies, ACM SIGPLAN Notices, Proceedings of the 2nd conference on Domain-specific languages PLAN '99, ACM Press, vol. 35 Issue 1, Dec. 1999., pp. 67-80, retrieved from ACM/PORTAL.
- Schmitt et al., "ExWrap: Semi-Automatic Wrapper Generation by Example", Aug. 2002, ACM, SIGIR '02, p. 452.
- The Authoritative Dictionary of IEEE standards terms-7<SUP>th </SUP>Edition, p. 691, Copyright (C) 2000 by the Institute of Electrical and Electronics Engineers, Inc.
- U.S. Appl. No. 09/343,276, filed Jun. 30, 1999, Srivastava, A. et al., Application Program Interface for Transforming Heterogeneous Programs.
- U.S. Appl. No. 09/503,215, filed Feb. 12, 2000, Niewiadomski, J., et al., Function Injector.