A configurable automatic instrumentation tool for ANSI C

Kevin Templer, Caroline Jeffery

2002 · 26 citations · 14 references

Concepts

TL;DR

Automatic software instrumentation is typically performed at the machine level or tailored to specific program behavior for a particular monitoring application. The paper presents CCI, an automatic software instrumentation tool for ANSI C designed to support a wide range of program execution monitors. CCI achieves this by offering high‑level instrumentation for application behavior and standard libraries, letting monitors define event generation, reducing code explosion and runtime cost through declarative configuration, and enabling higher‑level events via semantic analysis of the program.

Abstract

Automatic software instrumentation is usually done at the machine level or is targeted at specific program behavior for use with a particular monitoring application. The paper describes CCI, an automatic software instrumentation tool for ANSI C designed to serve a broad range of program execution monitors. CCI supports high level instrumentation for both application-specific behavior as well as standard libraries and data types. The event generation mechanism is defined by the execution monitor which uses CCI, providing flexibility for different monitors' execution models. Code explosion and the runtime cost of instrumentation are reduced by declarative configuration facilities that allow the monitor to select specific events to be instrumented. Higher level events can be defined by combining lower level events with information obtained from semantic analysis of the instrumented program.

References

14