the gamma project
play

The GAMMA Project Jim Clause Overall picture Overall picture - PDF document

The GAMMA Project Jim Clause Overall picture Overall picture Overall picture Overall picture Overall picture Debugging Regression testing Impact analysis Behavior classification Refactoring ... Overall picture Debugging Regression


  1. The GAMMA Project Jim Clause Overall picture

  2. Overall picture Overall picture

  3. Overall picture Overall picture Debugging Regression testing Impact analysis Behavior classification Refactoring ...

  4. Overall picture Debugging Regression testing Impact analysis Behavior classification Refactoring ...

  5. Field failures: Anomalous behavior (or crashes) of deployed software that occur on user machines

  6. Crash logs User-provided information Our solution

  7. Our solution Record Our solution Record Replay

  8. Our solution Record Replay Minimize ! Our solution Record Replay Minimize ! Debug

  9. Usage Scenario In house In the field Develop Record / Monitor ! / " ! Execution repository Replay / Debug Minimize ! ! ! Existing record / replay approaches Deterministic debugging Regression testing (e.g. Chen et al. 01, King et al. 05, (e.g. Elbaum et al. 06, Orso et al. 06, Orso Narayanasamy et al. 05, Netzer and Weaver and Kennedy 05, Saff et al. 05, Mercury 94, Srinivasan et al. 04, VMWare) WinRunner) • Replay an entire execution by • Replay only a portion of an recording every component of execution by recording events an application for specific subsystems Both types of technique are not amenable to minimization and may cause unacceptable overhead

  10. Outline • Our technique • record / replay • minimization • Empirical evaluation • Conclusions • Future work Record & Replay • Goal: develop an approach that has low overhead and is amenable to minimization • Key insight: avoid focusing on low-level (internal) events • expensive (large number of events) • not amenable to minimization (high interdependence)

  11. Record & Replay • Goal: develop an approach that has low overhead and is amenable to minimization • Key insight: avoid focusing on low-level (internal) events • expensive (large number of events) • not amenable to minimization (high interdependence) ! Focus on high-level (external) interactions with the environment • efficient (fewer, more “expensive” interactions) • amenable to minimization (low interdependence) Environment interactions

  12. Environment interactions Streams Environment interactions Streams Files

  13. Environment interactions Streams Files Environment interactions Streams Files Interaction events : FILE — interaction with a file POLL — checks for availability of data on a stream PULL — read data from a stream

  14. Event log : Environment data (streams): Environment data (files): Event log : FILE foo.1 Environment data (streams): Environment data (files): foo.1

  15. Event log : FILE foo.1 Environment data (streams): Environment data (files): foo.1 Event log : FILE foo.1 POLL KEYBOARD NOK Environment data (streams): Environment data (files): foo.1

  16. Event log : FILE foo.1 POLL KEYBOARD NOK Environment data (streams): Environment data (files): foo.1 Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK Environment data (streams): KEYBOARD: {5680} Environment data (files): foo.1

  17. Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK Environment data (streams): KEYBOARD: {5680} Environment data (files): foo.1 Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 5 Environment data (streams): KEYBOARD: {5680} hello Environment data (files): foo.1

  18. Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 5 Environment data (streams): KEYBOARD: {5680} hello Environment data (files): foo.1 Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 5 POLL NETWORK OK Environment data (streams): KEYBOARD: {5680} hello NETWORK: {3405} Environment data (files): foo.1

  19. Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 5 POLL NETWORK OK Environment data (streams): KEYBOARD: {5680} hello ! NETWORK: {3405} Environment data (files): foo.1 Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 5 POLL NETWORK OK Environment data (streams): KEYBOARD: {5680} hello ! NETWORK: {3405} Environment data (files): foo.1

  20. Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 5 POLL NETWORK OK PULL NETWORK 1024 FILE bar.1 POLL NETWORK NOK POLL NETWORK OK FILE foo.2 ... PULL NETWORK 1024 FILE foo.2 POLL KEYBOARD NOK ... Environment data (streams): KEYBOARD: {5680}hello ! {4056}c ! {300}... NETWORK: {3405}<html><body>... ! {202}... Environment data (files): foo.1 foo.2 bar.1 Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 5 POLL NETWORK OK PULL NETWORK 1024 FILE bar.1 POLL NETWORK NOK POLL NETWORK OK FILE foo.2 ... PULL NETWORK 1024 FILE foo.2 POLL KEYBOARD NOK ... Environment data (streams): KEYBOARD: {5680}hello ! {4056}c ! {300}... NETWORK: {3405}<html><body>... ! {202}... Environment data (files): foo.1 foo.2 bar.1

  21. Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 5 POLL NETWORK OK PULL NETWORK 1024 FILE bar.1 POLL NETWORK NOK POLL NETWORK OK FILE foo.2 ... PULL NETWORK 1024 FILE foo.2 POLL KEYBOARD NOK ... Environment data (streams): KEYBOARD: {5680}hello ! {4056}c ! {300}... NETWORK: {3405}<html><body>... ! {202}... Environment data (files): foo.1 foo.2 bar.1 Event log : " FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 5 POLL NETWORK OK PULL NETWORK 1024 FILE bar.1 POLL NETWORK NOK POLL NETWORK OK FILE foo.2 ... PULL NETWORK 1024 FILE foo.2 POLL KEYBOARD NOK ... Environment data (streams): KEYBOARD: {5680}hello ! {4056}c ! {300}... NETWORK: {3405}<html><body>... ! {202}... Environment data (files): foo.1 foo.2 bar.1

  22. Event log : " FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 5 POLL NETWORK OK PULL NETWORK 1024 FILE bar.1 POLL NETWORK NOK POLL NETWORK OK FILE foo.2 ... PULL NETWORK 1024 FILE foo.2 POLL KEYBOARD NOK ... Environment data (streams): KEYBOARD: {5680}hello ! {4056}c ! {300}... NETWORK: {3405}<html><body>... ! {202}... Environment data (files): foo.1 foo.2 bar.1 Event log : " FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 5 POLL NETWORK OK PULL NETWORK 1024 FILE bar.1 POLL NETWORK NOK POLL NETWORK OK FILE foo.2 ... PULL NETWORK 1024 FILE foo.2 POLL KEYBOARD NOK ... Environment data (streams): KEYBOARD: {5680}hello ! {4056}c ! {300}... NETWORK: {3405}<html><body>... ! {202}... Environment data (files): foo.1 foo.2 bar.1

  23. Event log : " FILE foo.1 " POLL KEYBOARD NOK " POLL KEYBOARD OK " PULL KEYBOARD 5 POLL NETWORK OK " " PULL NETWORK 1024 " FILE bar.1 " POLL NETWORK NOK " POLL NETWORK OK " FILE foo.2 ... " PULL NETWORK 1024 FILE foo.2 " " POLL KEYBOARD NOK ... Environment data (streams): KEYBOARD: {5680}hello ! {4056}c ! {300}... NETWORK: {3405}<html><body>... ! {202}... Environment data (files): foo.1 foo.2 bar.1 Minimize ! Goal: focus debugging effort

  24. Minimize ! Goal: focus debugging effort Execution recording Minimize ! Goal: focus debugging effort Execution recording Time minimization !

  25. ✂ Minimize ! Goal: focus debugging effort Execution Execution recording recording Time minimization ! Minimize ! Goal: focus debugging effort Execution Execution recording recording Time Data minimization minimization !

  26. ✂ Minimize ! Goal: focus debugging effort Execution Execution Execution recording recording recording Time Data minimization minimization ! Minimize: time Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 1 POLL NETWORK OK PULL NETWORK 1024 FILE bar.1 POLL KEYBOARD NOK POLL NETWORK OK FILE foo.2 PULL NETWORK 1024 FILE foo.2 POLL KEYBOARD NOK Environment data (streams): KEYBOARD: {5680}hello ! {4056}c ! {300}... NETWORK: {3405}<html><body>... ! {202}... Environment data (files):

  27. Minimize: time Remove idle time Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 1 POLL NETWORK OK PULL NETWORK 1024 FILE bar.1 POLL KEYBOARD NOK POLL NETWORK OK FILE foo.2 PULL NETWORK 1024 FILE foo.2 POLL KEYBOARD NOK Environment data (streams): KEYBOARD: {5680}hello ! {4056}c ! {300}... NETWORK: {3405}<html><body>... ! {202}... Environment data (files): Minimize: time Remove idle time Event log : FILE foo.1 POLL KEYBOARD NOK POLL KEYBOARD OK PULL KEYBOARD 1 POLL NETWORK OK PULL NETWORK 1024 FILE bar.1 POLL KEYBOARD NOK POLL NETWORK OK FILE foo.2 PULL NETWORK 1024 FILE foo.2 POLL KEYBOARD NOK Environment data (streams): KEYBOARD: {5680}hello ! {4056}c ! {300}... NETWORK: {3405}<html><body>... ! {202}... Environment data (files):

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