Design and Implementation of A Monitoring Probe Description Language and Compiler
- Author
- WangTao
- Advisor
- ZouPeng
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 50
- Citations
- 2
- Software Monitoring
- Monitoring Probe Description Language
- Distributed Monitoring Model
- ANTLR
- Compiler
Abstract
With the continuous development of information technology, software has penetrated into almost every field of society and people’s dependence on software is increasing. However, as the size and complexity rise, the software fault and failure problems become more and more serious, which pose great impact on people’s lives and even the national security. As a result, the problem of assuring software running safely and reliably draws wide attentions. By acquiring software’s run-time behaviors and comparing them with expectation, software monitoring technology can effectively grasp the software’s running status, help to analysis and locate software failures. And it can also contribute to evaluate the software performance and improve system’s availability and maintainability. All these make software monitoring an important way to guarantee system’s security and reliability. Thus, it is of great theoretical significant and application value to do research on software monitoring technology.Software monitoring techniques have been widely used in software testing, system tuning, system accuracy assurance and other aspects, and have been proved to be very successful in the face of traditional software. However, as the development of software technologies, the software continuously presents new features, such as scale increasing, complexity rising, distribution character growing and opening up, which raise new demands on software monitoring technology, including simple and effective monitoring attribution description method, reducing the impact on the performance of target system, supporting monitoring distributed system and so on.In response to these new demands, through intensive study of software monitoring technology, our research group propose a distributed software monitoring model(DSMM), which can be divided into three module: monitoring information acquisition module, monitoring information P/S module and monitoring information processing module. Monitoring information acquisition module completes the description and instrumentation of monitoring probes as well as monitoring information obtaining and delivering; Monitoring information P/S module sends the converged monitoring information to corresponding part of the monitoring information process module; Monitoring information process module records, analyzes and displays the monitoring information. This paper mainly focus on the monitoring information acquisition module. We design a monitoring probe description language(MPDL) and implement its compiler, which help program developer to describe monitoring probes and inject monitoring ability into target system automatically. The main work of this article include the following aspects:1. In this paper, we study the basic principle of compile technology, analyze the working mechanism of ANTLR and use it as the implementation technique of the MPDL pre-compiler. Besides, we make deep research on AOP’s basic concepts and its technique features. After intensive study of the AspectJ’s language features, we choose it to be the base technology for the realization of monitoring ability automatically injecting module.2. Through comprehensive analysis of the new demands to monitoring technology brought up by the development of software techniques, we design a monitoring probe description language(MPDL). MPDL can assist developer to design monitoring probes during software design and implementation, and the written probe description file is separated from the function logic code of the target system, which makes it easy to modify and maintain.3. Based on the ANTLR, we implement a MPDL pre-compiler which can transform monitoring probe description file into monitoring aspect code. Meanwhile, we implement the monitoring ability injecting module based on AspectJ and achieve monitoring code automatically instrumentation.On the basis of the above work, this paper use a Producer/Consumer program to verify the designed MPDL and its compiler. The results show that MPDL can help developer describe monitoring probes correctly and effectively, and the compiler transforms the monitoring probes description file into monitoring code accurately and instrument it into the target system automatically. This preliminarily proves the feasible and effectiveness of our work.
Table of contents
Summary 9-11
ABSTRACT 11-13
first chapter 13-21
1.1 issues raised 13-16
1.2 Research Status development 16-20
1.2.1 software monitoring technology 16-18
1.2.2 method of monitoring logic description 18 - 20
1.3 The main work 20
1.4 thesis structure 20-21
The second chapter studies related technology 21-34
2.1 compiler technology research 22-27
2.1.1 compiler technology basic principle 22-25
2.1.2 ANTLR technology 25-27
2.2 AOP Research 27-33
2.2.1 AOP basic concepts 27-29
2.2.2 AOP technical features 29-30
2.2.3 AspectJ technology 30-33
2.3 Summary 33-34
Chapter distributed software monitoring model 34-37
3.1 distributed Software monitoring model DSMM 34-35
3.2 distributed software monitoring model analysis 35-37
3.2.1 monitoring structural characteristics of the model analysis 35-36
3.2.2 monitor model features analysis 36-37
Chapter monitoring probe description language design 37-45
4.1 software monitoring requirements analysis 37 - 38
4.2 monitoring probe description language design elements 38-42
4.2.1 process monitoring probe 38-39
4.2.2 thread monitoring probe 39-40
4.2.3 function monitoring probe 40-41
4.2.4 key variables monitoring probe 41-42
4.2.5 other monitoring probe description language elements 42
4.3 monitoring probe description language 42-43
4.4 monitoring probe description language characterization 43-45
Chapter monitoring probe description language compiler design 45-53
5.1 compiler architecture 45-47
5.1.1 Description Module nbsp monitoring probe ; 46
5.1.2 precompiled processing module 46
5.1.3 monitoring capabilities into the module 46-47
5.1.4 runtime support environment 47
5.2 pre-compiled modules are designed 47-51
5.2.1 precompiled processing module architecture 47-48
5.2.2 precompiled selector design 48-49
5.2.3 pre-compiler J-preCompiler design 49-51
5.3 monitoring capability into the module design 51
5.4 Summary 51-53
Chapter VI monitoring probe description language compiler implementations 53-70
6.1 pre-compiled module 53-63
6.1 .1 precompiled selector 53-54
6.1.2 J-preCompiler precompiler 54-63
6.2 monitoring capabilities injection module 63-64
6.3 system verification 64-69
6.4 Summary 69-70
Conclusion 70-72
Thanks 72 - 74
References 74-79
author papers published during the master's degree 79-80
authors participating in the study for a master's degree research projects during 80
Related dissertations
- Research & Implementation of Content Query Language for Content Management System
- Research and Implementation on Conversion Framework of Test Scripts Based on Reverse Engineering
- The Design and Implementation of ANTLR-Based TTCN-3 Parser
- Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC
- The Design and Implementation of a Complier for SCADA Based on C
- Backend Porting for CSKY Based on LLVM Compiler Infrastructure
- Research on Accompanied Monitoring Techniques for Large-scale Distributed Software Systems
- Establishment and Verification of the Timing and Power Consumption Model for the Embedded SRAM Compiler
- The Embedded SRAM Compiler Design and IP Verification
- Design and Implementation of SQL Compiler on Column-Oriented Database
- Design and Implementation of Configurable Compiling Tools
- The Optimized Frontend Compiling System Design for Remus Ⅱ Reconfigurable Processor
- A Self-Adapted Prolog Compiler
- The Design and Implementation of the Abstract Synatax Tree in Safety Verifying Tool
- The Design and Realization of Programming Device Based on the Type of STM8S208Single Chip Microcomputer as the Controller
- Research and Design of Digital Broadcast Platforms
- Automatic Platform for Parameterized Design of ASIP
- The design of embedded SRAM compiler
- Design and Implementation of Memory Compiler for Embedded SOC
- Research on Automatic Conversion from Chemical Scripting Languages to UDLC