Skip to main content

Formally Efficient Program Instrumentation

  • Conference paper
Runtime Verification (RV 2010)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 6418))

Included in the following conference series:

  • 1547 Accesses

Abstract

The term “instrumentation” refers to modification of a program or its runtime environment to make hidden details of execution visible. Instrumentation can severely compromise program execution speed. Frameworks like DTrace (Sun Microsystems) and VProbes (VMware) offer practical ways of addressing performance concerns, but there has been no formal understanding of what it means for instrumentation to be efficient. To fill this gap, we propose a criterion based on that of Popek and Goldberg for virtual machines and on our previous work relating this to Jones optimality of program specializers. We further suggest linguistic constraints on instrumentation code to enable more aggressive static optimization of dynamically instrumented programs.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Benton, N.: Simple relational correctness proofs for static analyses and program transformations. In: Proceedings of POPL, pp. 14–25 (2004)

    Google Scholar 

  2. Berndl, M., Vitale, B., Zaleski, M., Brown, A.D.: Context threading: A flexible and efficient dispatch technique for virtual machine interpreters. In: Proceedings of CGO, pp. 15–26 (2005)

    Google Scholar 

  3. Cantrill, B., Shapiro, M.W., Leventhal, A.H.: Dynamic instrumentation of production systems. In: Proceedings of USENIX ATC, pp. 15–28 (2004)

    Google Scholar 

  4. Carette, J., Kiselyov, O., Shan, C.: Finally tagless, partially evaluated: Tagless staged interpreters for simpler typed languages. Journal of Functional Programming 19(5), 509–543 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  5. Feigin, B., Mycroft, A.: Jones optimality and hardware virtualization: a report on work in progress. In: Proceedings of PEPM, pp. 169–175 (2008)

    Google Scholar 

  6. Jones, N.D.: Challenging problems in partial evaluation and mixed computation. New Generation Comput. 6(2&3), 291–302 (1988)

    Google Scholar 

  7. Jones, N.D.: Transformation by interpreter specialisation. Science of Computer Programming 52, 307–339 (2004)

    Article  MathSciNet  MATH  Google Scholar 

  8. Jones, N.D., Gomard, C.K., Sestoft, P.: Partial Evaluation and Automatic Program Generation. Prentice-Hall, Englewood Cliffs (1993)

    MATH  Google Scholar 

  9. Nethercote, N., Mycroft, A.: Redux: A dynamic dataflow tracer. ENTCS 89(2) (2003)

    Google Scholar 

  10. Popek, G.J., Goldberg, R.P.: Formal requirements for virtualizable third generation architectures. Communications of the ACM 17(7), 412–421 (1974)

    Article  MathSciNet  MATH  Google Scholar 

  11. Tolmach, A.P., Appel, A.W.: A debugger for standard ML. Journal of Functional Programming 5(2), 155–200 (1995)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Feigin, B., Mycroft, A. (2010). Formally Efficient Program Instrumentation. In: Barringer, H., et al. Runtime Verification. RV 2010. Lecture Notes in Computer Science, vol 6418. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-16612-9_19

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-16612-9_19

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-16611-2

  • Online ISBN: 978-3-642-16612-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics