Proceedings paper
Title:
DiSL: An Extensible Language for Efficient and Comprehensive Dynamic Program Analysis (Invited Paper)
Authors:
L. Marek, Y. Zheng, D. Ansaloni, W. Binder, Z. Qi, P. Tůma
Publication:
Proc. 7th Workshop on Domain-Specific Aspect Languages (DSAL)
Year:
2012
ISBN:
978-1-4503-1128-1
Abstract:
Dynamic program analysis tools support numerous software engineering tasks, including profiling, debugging, and reverse engineering. Prevailing techniques for building dynamic analysis tools are based on low-level abstractions that make tool development tedious, error-prone, and expensive. To simplify the development of dynamic analysis tools, some researchers promoted the use of aspect-oriented programming (AOP). However, as mainstream AOP languages have not been designed to meet the requirements of dynamic analysis, the success of using AOP in this context remains limited. For example, in AspectJ, join points that are important for dynamic program analysis (e.g., the execution of bytecodes or basic blocks of code) are missing, access to reflective dynamic join~point information is expensive, data passing between woven advice in local variables is not supported, and the mixing of low-level bytecode instrumentation and high-level AOP code is not foreseen. In this talk, we present DiSL [1], a new domain-specific aspect language for bytecode instrumentation. DiSL uses Java annotation syntax such that standard Java compilers can be used for compiling DiSL code. The language features an open join point model, novel constructs inspired by weave-time evaluation of conditional join~points and by staged execution, and access to custom static and dynamic context information. Moreover, the DiSL weaver guarantees complete bytecode coverage. We have implemented several dynamic analysis tools in DiSL, including profilers for the inter- and intra-procedural control flow, debuggers, dynamic metrics collectors integrated in the Eclipse IDE to augment the static source views with dynamic information, and tools for workload characterization. These tools are concise and perform equally well as implementations using low-level techniques. DiSL has also been conceived as an intermediate language for future domain-specific analysis languages, as well as for AOP languages.
BibTeX:
@inproceedings{marek_disl_2012, title = {{DiSL: An Extensible Language for Efficient and Comprehensive Dynamic Program Analysis (Invited Paper)}}, author = {Marek, Lukáš and Zheng, Yudi and Ansaloni, Danilo and Binder, Walter and Qi, Zhengwei and Tuma, Petr}, year = {2012}, booktitle = {{Proc. 7th Workshop on Domain-Specific Aspect Languages (DSAL)}}, publisher = {ACM}, series = {{DSAL '12}}, location = {New York, NY, USA}, doi = {10.1145/2162037.2162046}, isbn = {978-1-4503-1128-1}, pages = {27--28}, url = {http://doi.acm.org/10.1145/2162037.2162046}, shorttitle = {DiSL}, }