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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Benton, N.: Simple relational correctness proofs for static analyses and program transformations. In: Proceedings of POPL, pp. 14–25 (2004)
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)
Cantrill, B., Shapiro, M.W., Leventhal, A.H.: Dynamic instrumentation of production systems. In: Proceedings of USENIX ATC, pp. 15–28 (2004)
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)
Feigin, B., Mycroft, A.: Jones optimality and hardware virtualization: a report on work in progress. In: Proceedings of PEPM, pp. 169–175 (2008)
Jones, N.D.: Challenging problems in partial evaluation and mixed computation. New Generation Comput. 6(2&3), 291–302 (1988)
Jones, N.D.: Transformation by interpreter specialisation. Science of Computer Programming 52, 307–339 (2004)
Jones, N.D., Gomard, C.K., Sestoft, P.: Partial Evaluation and Automatic Program Generation. Prentice-Hall, Englewood Cliffs (1993)
Nethercote, N., Mycroft, A.: Redux: A dynamic dataflow tracer. ENTCS 89(2) (2003)
Popek, G.J., Goldberg, R.P.: Formal requirements for virtualizable third generation architectures. Communications of the ACM 17(7), 412–421 (1974)
Tolmach, A.P., Appel, A.W.: A debugger for standard ML. Journal of Functional Programming 5(2), 155–200 (1995)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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)