Persistent context-based behavior injection or testing of a computing system
First Claim
1. A method of execution by a processor to inject behaviors into a code block, the method comprising:
- invoking, upon execution of a breakout line in the code block, a behavior action block specified in a behavior injection filter if a current context of the code block matches a trigger condition for the behavior injection filter, wherein the behavior injection filter is one of a plurality of behavior injection filters corresponding to multiple contexts, and the breakout line indicating a location to inject a behavior; and
invoking, upon execution of a scope update line in the code block, a scope action block specified in the behavior injection filter, wherein the scope update line indicates a change in scope of the current context.
2 Assignments
0 Petitions
Accused Products
Abstract
The invention provides a method and system for persistent context-based behavior injection in a computing system, such as in a redundant storage system or another system having a layered or modular architecture. Behaviors that are injected can be specified to have triggering conditions, such that the behavior is not injected unless the conditions are true. Triggering conditions may include a selected ordering of conditions and a selected context for each behavior. In a system having a layered architecture, behavior injection might be used to evaluate correct responses in the face of cascaded errors in a specific context or thread, other errors that are related by context, concurrent errors, or multiple errors. Behavior injection uses non-volatile memory to preserve persistence of filter context information across possible system errors, for reporting of the results of behavior injection, and to preserve information across recovery from system errors. Multiple behavior injection threads are also provided. Behavior injection can also be performed in a logically distributed system or from a logically remote system.
31 Citations
10 Claims
-
1. A method of execution by a processor to inject behaviors into a code block, the method comprising:
-
invoking, upon execution of a breakout line in the code block, a behavior action block specified in a behavior injection filter if a current context of the code block matches a trigger condition for the behavior injection filter, wherein the behavior injection filter is one of a plurality of behavior injection filters corresponding to multiple contexts, and the breakout line indicating a location to inject a behavior; and invoking, upon execution of a scope update line in the code block, a scope action block specified in the behavior injection filter, wherein the scope update line indicates a change in scope of the current context. - View Dependent Claims (2, 3)
-
- 4. The method of claim, wherein the scope update line indicates that execution of the code block is exiting the scope of the current context.
-
6. A system comprising:
-
a processor coupled to a memory through a bus, wherein the memory stores a code block for execution by the processor, the code block comprising breakout lines indicating locations to inject behavior, and scope update lines indicating changes in scope of a current context of the code block; operations executed from the memory to cause the processor to manage a plurality of behavior injection filters corresponding to multiple contexts; operations executed from the memory to cause the processor, upon execution of a breakout line, to invoke a behavior action block specified in a behavior injection filter if the current context matches a trigger condition for the behavior injection filter; and operations executed from the memory to cause the processor, upon execution of a scope update line in the code block, to invoke a scope action block specified in the behavior injection filter. - View Dependent Claims (7, 8, 9, 10)
-
Specification