1. A method for replaying a program, said method comprising the steps of:
recording for a given execution of said program:
one or more checkpoints of said program, said one or more checkpoints containing program state information; and
a recorded list of values for one or more identified variables executing in one or more threads of said program; and
during a replay execution of said program:
commencing execution from a particular one of said recorded checkpoints;
restoring said program state information associated with said particular one of said recorded checkpoints;
comparing an observed list of values to said recorded list of values for said one or more identified variables executing in each of said one or more threads; and
identifying a difference between said observed list of values and said recorded list of values; and
restarting a replay at a previous successful checkpoint based upon an occurrence of said identification of said difference between said observed list of values and said recorded list of values.
2. The method of claim 1, wherein said observed list of values comprises an ordered list of value changes for each of said one or more identified variables executing in said one or more threads of said program.
3. The method of claim 1, wherein said observed list of values comprises before and after values for each value change for each of said one or more identified variables.
4. The method of claim 3, wherein said observed list of values comprises a time-stamp for each of said value changes.
5. The method of claim 1, wherein said recorded list of values for one or more identified variables is obtained for a determined set of recorded threads of said program and wherein said replay execution of said program comprises replaying said determined set of recorded threads.
6. The method of claim 1, wherein said comparing step is performed for each of said threads for each value change to compare before and after values for each value change.
7. The method of claim 1, wherein said identifying step further comprises the step of launching a debugging tool.
8. The method of claim 1, further comprising the step of introducing a perturbation or suspend statement into said replay execution of said program.
9. The method of claim 1, wherein a plurality of threads in said program are inter-dependent and said plurality of threads are partitioned into one or more partitions and said method further comprising the step of replaying program threads in each of said one or more partitions separately until a successful execution.
10. The method of claim 1, wherein said recorded list of values comprises a new value for said one or more identified variables following a value change.
11. A system for replaying a program, comprising:
a memory; and
at least one processor, coupled to the memory, operative to:
record for a given execution of said program:
one or more checkpoints of said program, said one or more checkpoints containing program state information; and
a recorded list of value changes for one or more identified variables executing in one or more threads of said program; and
during a replay execution of said program:
commence execution from a particular one of said recorded checkpoints;
restore said program state information associated with said particular one of said recorded checkpoints;
compare an observed list of values to said recorded list of values for said one or more identified variables executing in each of said one or more threads; and
identify a difference between said observed list of values and said recorded list of values; and
restart a replay at a previous successful checkpoint based upon an occurrence of said identification of said difference between said observed list of values and said recorded list of values.
12. The system of claim 11, wherein said observed list of values comprises an ordered list of value changes for each of said one or more identified variables executing in said one or more threads of said program.
13. The system of claim 11, wherein said observed list of values comprises before and after values for each value change for each of said one or more identified variables.
14. The system of claim 11, wherein said recorded list of values for one or more identified variables is obtained for a determined set of recorded threads of said program and wherein said replay execution of said program comprises replaying said determined set of recorded threads.
15. The system of claim 11, wherein said comparison is performed for each of said threads for each value change to compare before and after values for each value change.
16. The system of claim 11, wherein said processor is further configured to introduce a perturbation or suspend statement into said replay execution of said program.
17. The system of claim 11, wherein a plurality of threads in said program are interdependent and said plurality of threads are partitioned into one or more partitions and said processor is further configured to replay program threads in each of said one or more partitions separately until a successful execution.
18. The system of claim 11, wherein said recorded list of values comprises a new value for said one or more identified variables following a value change.
19. An article of manufacture for replaying a program, comprising a non-transitory computer readable recordable medium containing one or more other programs which when executed implement the steps of:
recording for a given execution of said program:
one or more checkpoints of said program, said one or more checkpoints containing program state information; and
a recorded list of values for one or more identified variables executing in one or more threads of said program; and
during a replay execution of said program:
commencing execution from a particular one of said recorded checkpoints;
restoring said program state information associated with said particular one of said recorded checkpoints;
comparing an observed list of values to said recorded list of values for said one or more identified variables executing in each of said one or more threads; and
identifying a difference between said observed list of values and said recorded list of values; and
restarting a replay at a previous successful checkpoint based upon an occurrence of said identification of said difference between said observed list of values and said recorded list of values.
20. The article of manufacture of claim 19, wherein said observed list of values comprises before and after values for each value change for each of said one or more identified variables.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A lancing device for propelling a lancet through a lancing stroke, the lancing device comprising:
a housing including an axial bore;
a drive mechanism including a lancet carrier and a drive spring, the lancet carrier holding the lancet and translatable axially within the housing through the lancing stroke, and the drive spring adapted to propel the lancet carrier through the lancing stroke; and
a charging mechanism adapted to retract the lancet carrier to a charged position and including a charging button, a motion-conversion member, and a first cam-engaging surface, wherein the charging button includes a second cam-engaging surface, the first cam-engaging surface is formed by a portion of the drive mechanism, and the motion-conversion member includes first and second cam surfaces engaged respectively by the first cam-engaging surface and the second cam-engaging surface and configured to convert movement of the charging button in a first axial direction to movement of the lancet carrier in a second axial direction generally opposite from the first axial direction to retract the lancet carrier to the charged position;
wherein the first and second cam surfaces are formed by slots in the motion-conversion member, the first cam-engaging surface is formed by a boss on the portion of the drive mechanism, and the second cam-engaging surface is formed by a boss on the charging button.
2. The lancing device of claim 1, wherein the motion-conversion member moves in a first transverse direction generally transverse to the first and second axial directions in response to movement of the charging button in the first axial direction.
3. The lancing device of claim 2, wherein actuation of the charging button in the first axial direction causes interaction of the axially moving second cam-engaging surface with the second cam surface to move the motion-conversion member in the first transverse direction, and interaction of the transversely moving first cam surface with the first cam-engaging surface causes movement of the lancet carrier in the second opposite axial direction to retract the lancet carrier to the charged position.
4. The lancing device of claim 2, wherein the charging button and the first cam-engaging surface translate axially relative to the housing with lateral constraint.
5. The lancing device of claim 4, wherein the charging button is movable between an extended position and a depressed position, and is spring-biased toward the extended position.
6. The lancing device of claim 5, wherein the motion-conversion member moves in a second transverse direction generally opposite the first transverse direction in response to the charging button moving from the depressed position to the extended position.
7. The lancing device of claim 1, wherein the lancet carrier comprises the first cam-engaging surface.
8. The lancing device of claim 1, wherein the motion-conversion member translates transversely relative to the housing with axial constraint.
9. The lancing device of claim 1, wherein the motion-conversion member includes a first side and a second side opposite the first side, with the first and second cam slots formed in the respective first and second sides.
10. The lancing device of claim 1, wherein the first and second cam surfaces are substantially similar in configuration, but oppositely arranged from each other in a generally mirror-image fashion.
11. The lancing device of claim 10, wherein the first and second cam surfaces are arranged at about 180 degrees from each other relative to a lancing-stroke axis.
12. The lancing device of claim 11, wherein the first cam surface is at a first angle from the lancing-stroke axis, the second cam surface is at a second angle from the lancing-stroke axis, and the first and second angles have generally the same absolute value but are negative from each other.
13. A lancing device for propelling a lancet through a lancing stroke, the lancing device comprising:
a housing including an axial bore;
a drive mechanism including a lancet carrier and a drive spring, the lancet carrier holding the lancet and translatable axially within the housing through the lancing stroke, and the drive spring adapted to propel the lancet carrier through the lancing stroke; and
a charging mechanism adapted to retract the lancet carrier to a charged position and including a charging button, a motion-conversion member, and a first cam-engaging surface, wherein the charging button includes a second cam-engaging surface, the first cam-engaging surface is formed by a portion of the drive mechanism, and the motion-conversion member includes first and second cam surfaces engaged respectively by the first cam-engaging surface and the second cam-engaging surface and configured to convert movement of the charging button in a first axial direction to movement of the lancet carrier in a second axial direction generally opposite from the first axial direction to retract the lancet carrier to the charged position;
wherein the first and second cam surfaces are substantially similar in configuration, but oppositely arranged from each other in a generally mirror-image fashion, and wherein the first and second cam surfaces are generally linear to form a crisscross pattern.
14. The lancing device of claim 13, wherein the motion-conversion member moves in a first transverse direction generally transverse to the first and second axial directions in response to movement of the charging button in the first axial direction.
15. The lancing device of claim 14, wherein actuation of the charging button in the first axial direction causes interaction of the axially moving second cam-engaging surface with the second cam surface to move the motion-conversion member in the first transverse direction, and interaction of the transversely moving first cam surface with the first cam-engaging surface causes movement of the lancet carrier in the second opposite axial direction to retract the lancet carrier to the charged position.
16. The lancing device of claim 14, wherein the charging button is movable between an extended position and a depressed position, and is spring-biased toward the extended position.
17. The lancing device of claim 16, wherein the motion-conversion member moves in a second transverse direction generally opposite the first transverse direction in response to the charging button moving from the depressed position to the extended position.
18. The lancing device of claim 13, wherein the lancet carrier comprises the first cam-engaging surface.
19. The lancing device of claim 13, wherein the charging button and the first cam-engaging surface translate axially relative to the housing with lateral constraint.
20. The lancing device of claim 13, wherein the motion-conversion member translates transversely relative to the housing with axial constraint.
21. A charging mechanism for a lancing device for propelling a lancet through a lancing stroke, the lancing device comprising a housing including an axial bore, a lancet carrier translational axially within the housing through the lancing stroke with the lancet coupled to the lancet carrier, and a drive spring for propelling the lancet carrier through the lancing stroke, the charging mechanism comprising:
a charging button that is mounted to translate axially relative to the housing, with lateral constraint, and that includes a second cam-engaging surface;
a first cam-engaging surface that is formed by the lancet, which is mounted to translate axially relative to the housing with lateral constraint; and
a motion-conversion member that is mounted to translate transversely relative to the housing, with axial constraint, wherein the motion-conversion member includes first and second cam surfaces engaged respectively by the first cam-engaging surface and the second cam-engaging surface and configured to convert movement of the charging button in a first axial-push direction to movement of the lancet carrier in a second axial-pull direction generally opposite from the first axial-push direction to retract the lancet carrier to a charged position, wherein the motion-conversion member moves in a first transverse direction generally transverse to the first and second axial directions in response to movement of the charging button in the first axial-push direction, and wherein the first and second cam surfaces are substantially similar in configuration, but oppositely arranged from each other in a generally mirror-image fashion,
wherein pushing actuation of the charging button in the first axial-push direction causes interaction of the now axially moving second cam-engaging surface of the charging button with the second cam surface of the charging button to move the motion-conversion member in the first transverse direction, and interaction of the now transversely moving first cam surface of the charging button with the first cam-engaging surface of the lancet carrier causes movement of the lancet carrier in the second opposite axial-pull direction to retract the lancet carrier to the charged position; and
wherein the first and second cam surfaces are formed by slots in the motion-conversion member, the first cam-engaging surface is formed by a boss on the portion of the drive mechanism, and the second cam-engaging surface is formed by a boss on the charging button, and wherein the motion-conversion member includes a first side and a second side opposite the first side, with the first and second cam slots formed in the respective first and second sides.
22. The charging mechanism of claim 21, wherein the charging button is movable between an extended position and a depressed position, and is spring-biased toward the extended position.
23. The charging mechanism of claim 22, wherein the motion-conversion member moves in a second transverse direction generally opposite the first transverse direction in response to the charging button moving from the depressed position to the extended position.
24. A charging mechanism for a lancing device for propelling a lancet through a lancing stroke, the lancing device comprising a housing including an axial bore, a lancet carrier translational axially within the housing through the lancing stroke with the lancet coupled to the lancet carrier, and a drive spring for propelling the lancet carrier through the lancing stroke, the charging mechanism comprising:
a charging button that is mounted to translate axially relative to the housing, with lateral constraint, and that includes a second cam-engaging surface;
a first cam-engaging surface that is formed by the lancet, which is mounted to translate axially relative to the housing with lateral constraint; and
a motion-conversion member that is mounted to translate transversely relative to the housing, with axial constraint, wherein the motion-conversion member includes first and second cam surfaces engaged respectively by the first cam-engaging surface and the second cam-engaging surface and configured to convert movement of the charging button in a first axial-push direction to movement of the lancet carrier in a second axial-pull direction generally opposite from the first axial-push direction to retract the lancet carrier to a charged position, wherein the motion-conversion member moves in a first transverse direction generally transverse to the first and second axial directions in response to movement of the charging button in the first axial-push direction, and wherein the first and second cam surfaces are substantially similar in configuration, but oppositely arranged from each other in a generally mirror-image fashion,
wherein pushing actuation of the charging button in the first axial-push direction causes interaction of the now axially moving second cam-engaging surface of the charging button with the second cam surface of the charging button to move the motion-conversion member in the first transverse direction, and interaction of the now transversely moving first cam surface of the charging button with the first cam-engaging surface of the lancet carrier causes movement of the lancet carrier in the second opposite axial-pull direction to retract the lancet carrier to the charged position; and
wherein the first and second cam surfaces are generally linear to form a crisscross pattern, wherein the first and second cam surfaces are arranged at about 180 degrees from each other relative to lancing-stroke axis, and wherein the first cam surface is at a first angle from the lancing-stroke axis, the second cam surface is at a second angle from the lancing-stroke axis, and the first and second angles have generally the same absolute value but are negative from each other.
25. The charging mechanism of claim 24, wherein the charging button is movable between an extended position and a depressed position, and is spring-biased toward the extended position.
26. The charging mechanism of claim 25, wherein the motion-conversion member moves in a second transverse direction generally opposite the first transverse direction in response to the charging button moving from the depressed position to the extended position.