Generic wrapper scheme
AssigneeMicrosoft Corporation
InventorsQinlin Tang, Gurbakshish S. Rana, Richard Shupak
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Corporation
InventorsQinlin Tang, Gurbakshish S. Rana, Richard Shupak
Estimating the term…
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.
A computer implemented method of instrumenting target code to provide changed behavior, comprising:
A method of testing target code using a generic wrapper function that performs a changed behavior, the generic wrapper function called by plural functions in the target code, the method comprising:
A computer system comprising:
A computer readable medium comprising:
Dependencies are inferred from the claim text.