scarpe a technique and tool for selective capture and
play

SCARPE: A Technique and Tool for Selective Capture and Replay of - PowerPoint PPT Presentation

SCARPE: A Technique and Tool for Selective Capture and Replay of Program Executions Shrinivas Joshi Alessandro Orso Advanced Micro Devices Georgia Institute of Technology Shrinivas.Joshi@amd.com orso@cc.gatech.edu This work was supported in


  1. SCARPE: A Technique and Tool for Selective Capture and Replay of Program Executions Shrinivas Joshi Alessandro Orso Advanced Micro Devices Georgia Institute of Technology Shrinivas.Joshi@amd.com orso@cc.gatech.edu This work was supported in part by NSF awards CCF-0541080 and CCR-0205422 to Georgia Tech.

  2. Collecting Field Data In house In the field Developers

  3. Collecting Field Data In house In the field Developers

  4. Collecting Field Data In house In the field ? Developers

  5. Collecting Field Data In house In the field ? Developers Field Data

  6. Collecting Field Data In house In the field ? Developers Field Data

  7. Collecting Field Data In house In the field ? Maintenance tasks: Debugging Regression testing Developers Impact analysis Behavior classification ... Field Data

  8. Presentation Outline • Motivation and Overview • Record & Replay Technique • Implementation and Evaluation • Conclusions and Future Work

  9. Presentation Outline • Motivation and Overview • Record & Replay Technique • Implementation and Evaluation • Conclusions and Future Work

  10. Record & Replay: Issues

  11. Record & Replay: Issues Users Network DB

  12. Record & Replay: Issues • Practicality • High volume of data • Ad-hoc mechanisms Users • Inefficiency in recording Network DB

  13. Record & Replay: Issues • Practicality • High volume of data • Ad-hoc mechanisms Users • Inefficiency in recording • Privacy • Sensitive information Network DB

  14. Record & Replay: Issues • Practicality • High volume of data • Ad-hoc mechanisms Users • Inefficiency in recording • Privacy • Sensitive information Network • Safety • Side effects DB

  15. Record & Replay: Issues • Practicality • High volume of data Our technique • Is specifically designed to be used on deployed software • Ad-hoc mechanisms Users (but can also be used in-house) • Inefficiency in recording • Mitigates practicality, safety, and privacy issues through • Privacy • novel technical solutions • Sensitive information • careful engineering Network • Safety • Side effects DB

  16. Overview of the Approach d r o c e R y a l p e R

  17. Overview of the Approach d r o c e R y a l p e R

  18. Overview of the Approach d r o Subsystem c of interest e R y a l p e R

  19. Overview of the Approach d r o Subsystem c of interest e R y a l p e R

  20. Overview of the Approach Output d Input r o Subsystem c of interest e R Environment y a l p e R

  21. Overview of the Approach Output d Input r o Subsystem c of interest e R Event Environment Log y a l p e R

  22. Overview of the Approach Output d Input r o Subsystem c of interest e R Event Environment Log y a l p Subsystem e R of interest

  23. Overview of the Approach Output d Input r o Subsystem c of interest e R Event Environment Log Replay Scaffolding y a l p Subsystem e R of interest

  24. Overview of the Approach Output d Input r o Subsystem c of interest e R Event Environment Log Replay Scaffolding y a l p Event Subsystem e Log R of interest

  25. Overview of the Approach Output d Input r o Subsystem c of interest e R Event Environment Log Replay Scaffolding y a l p Event Subsystem e Log R of interest

  26. Record: Recorded Events Subsystem of interest

  27. Record: Recorded Events ... x = getRatio(myTree) Method calls ... • INCALL • INCALLRET • Subsystem OUTCALL of interest • OUTCALLRET

  28. Record: Recorded Events ... x = getRatio(myTree) Method calls Method calls ... • • INCALL INCALL • • INCALLRET INCALLRET x = getRatio(myTree) • • Subsystem OUTCALL OUTCALL of interest • • OUTCALLRET OUTCALLRET

  29. Record: Recorded Events ... x = getRatio(myTree) Method calls Method calls Method calls ... • • • INCALL INCALL INCALL • • • INCALLRET INCALLRET INCALLRET x = getRatio(myTree) • • • Subsystem OUTCALL OUTCALL OUTCALL 28.5 of interest • • • OUTCALLRET OUTCALLRET OUTCALLRET

  30. Record: Recorded Events Method calls • INCALL • INCALLRET • Subsystem OUTCALL of interest • OUTCALLRET

  31. Record: Recorded Events Method calls ... • n = it.next() INCALL ... • INCALLRET • Subsystem OUTCALL of interest • OUTCALLRET

  32. Record: Recorded Events Method calls Method calls ... • • n = it.next() INCALL INCALL ... • • INCALLRET INCALLRET it.next() • • Subsystem OUTCALL OUTCALL of interest • • OUTCALLRET OUTCALLRET

  33. Record: Recorded Events Method calls Method calls Method calls ... • • • n = it.next() INCALL INCALL INCALL ... • • • INCALLRET INCALLRET INCALLRET it.next() • • • Subsystem OUTCALL OUTCALL OUTCALL <some object> of interest • • • OUTCALLRET OUTCALLRET OUTCALLRET

  34. Record: Recorded Events Method calls • INCALL • INCALLRET • Subsystem OUTCALL of interest • OUTCALLRET INCALL / OUTCALL event { • Callee’s type • Callee’s object ID • Callee’s signature • Parameter*

  35. Record: Recorded Events Method calls • INCALL • INCALLRET • OUTCALL • OUTCALLRET

  36. Record: Recorded Events Method calls Field Accesses • • INCALL INWRITE • • INCALLRET OUTWRITE • • OUTCALL OUTREAD • OUTCALLRET

  37. Record: Recorded Events Method calls Field Accesses Exceptions • • • INCALL INWRITE EXCIN • • • INCALLRET OUTWRITE EXCOUT • • OUTCALL OUTREAD • OUTCALLRET

  38. Record: Capturing Partial Data Subsystem of interest

  39. Record: Capturing Partial Data • Recording complete data is impractical (huge time/space overhead in preliminary studies) Subsystem of interest

  40. Record: Capturing Partial Data • Recording complete data is impractical (huge time/space overhead in preliminary studies) x = getRatio(hugeTree) Subsystem 28.5 of interest

  41. Record: Capturing Partial Data • Recording complete data is impractical (huge time/space overhead in preliminary studies) double getRatio(HugeTree ht) { Iterator it = ht.iterator(); while (it.hasNext()) { Node n = (Node)it.next(); double res = n.val; x = getRatio(hugeTree) if (res > 0) Subsystem 28.5 return res / norm; of interest }

  42. Record: Capturing Partial Data • Recording complete data is impractical (huge time/space overhead in preliminary studies) ➡ Record only data that affect the computation • Scalar values • Object IDs and Types double getRatio(HugeTree ht) { Iterator it = ht.iterator(); while (it.hasNext()) { Node n = (Node)it.next(); double res = n.val; x = getRatio(hugeTree) if (res > 0) Subsystem 28.5 return res / norm; of interest }

  43. Record: Capturing Partial Data • Recording complete data is impractical (huge time/space overhead in preliminary studies) ➡ Record only data that affect the computation • Scalar values • Object IDs and Types double getRatio(HugeTree ht) { Iterator it = ht.iterator(); while (it.hasNext()) { Node n = (Node)it.next(); double res = n.val; x = getRatio(hugeTree) if (res > 0) Subsystem 28.5 return res / norm; of interest } 28.5

  44. Record: Capturing Partial Data • Recording complete data is impractical (huge time/space overhead in preliminary studies) ➡ Record only data that affect the computation • Scalar values • Object IDs and Types double getRatio(HugeTree ht) { Iterator it = ht.iterator(); while (it.hasNext()) { <1110, some.package.HugeTree> Node n = (Node)it.next(); double res = n.val; x = getRatio(hugeTree) if (res > 0) Subsystem 28.5 return res / norm; of interest } 28.5

  45. Possible Applications

  46. Possible Applications Output Input Subsystem of interest Event Environment Log 1. Debugging of field failures 2. Unit test cases from user executions 3. Post-mortem dynamic analysis

  47. Possible Applications Subsystem of interest Environment 1. Debugging of field failures 2. Unit test cases from user executions 3. Post-mortem dynamic analysis

  48. Possible Applications Output Input Subsystem of interest Event Environment Log 1. Debugging of field failures 2. Unit test cases from user executions 3. Post-mortem dynamic analysis

  49. Possible Applications Output Input Subsystem of interest Event Environment Log 1. Debugging of field failures 2. Unit test cases from user executions 3. Post-mortem dynamic analysis

  50. Possible Applications Output Input Subsystem of interest Event Environment Log 1. Debugging of field failures 2. Unit test cases from user executions 3. Post-mortem dynamic analysis • For component failures [WODA 06] • For complete executions [ICSE 07]

  51. Possible Applications Output Input Subsystem of interest Event Environment Log 1. Debugging of field failures 2. Unit test cases from user executions 3. Post-mortem dynamic analysis

  52. Possible Applications Output Input Subsystem Unit of of interest interest Event Environment Log 1. Debugging of field failures 2. Unit test cases from user executions 3. Post-mortem dynamic analysis

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend