Download Configurable Binary Instrumenter User Manual

Transcript
13
Chapter 4
The Adapter Specification
As mentioned earlier, the adapter specification is an XML document, containing multiple
elements to define the following:
• List of libraries to add
• An adapter filter to remove, e.g., the measurement system
• One or multiple code defining elements
The adapter specification separates the code definition from the filter definition, because
the adapter spec is expected to be constant and delivered alongside the measurement system, whereas the filter spec will be changed by the user. Listing 4.1 provides a simple
example of the three top elements defined within the adapter root element.
1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="UTF-8"?>
<adapter>
<dependencies>
</dependencies>
<adapterfilter>
</adapterfilter>
<code name="instfunctions">
</code>
</adapter>
Listing 4.1: Adapter Specification Root Elements