Files Selection Window
The File Selection Window is displayed when the Automated
Instrumentation Tool is started. The user can select files to be
instrumented in this window. Enter a base directory in the directory
entry box or use the browse feature to select one. The Automated
Instrumentation Tool will created an instrumented/ directory
within the base directory and place annotated files there. Files to
be instrumented must be within the base directory. Multiple base
directories may be selected by clicking the Add button instead of the
Change button.
Once the base directories are added, the individual files to be
instrumented can be selected. Left click on a directory to open or
close it, and left click on a file to select or de-select it. Right
clicking on a file will allow you to view additional information about
the file, and right clicking on a directory will enable functions such
as selecting all files within a directory.
When all the files to be instrumented are selected, the Next button
may be used to begin parsing the selected files. In addition, the
save function in the file menu may be used at any time to save your
current work as an EDF file. The load function may also be used to
load a previously saved EDF file.
Parsing Status Window
The Parsing Status Window is displayed while the program is parsing
the selected files. It shows what files is being parsed and whether
the file had any parsing errors. If no errors are present, the window
will close automatically. If there were errors, you will be able to
see which files the errors were in. Details about the errors are
printed on standard output.
Instrumentation Selection Window
Once parsing is done, the user can select portions of the source
code to be instrumented. The interface presented allows you to select
critical events such as functions, loops or function calls to be
instrumented. To select a function to be instrumented, left click on
the function name. To highlight a function without selecting it for
instrumentation, right click on it. The list of loops and function
calls within a function will only appear when a function is
highlighted. The source code of the function will appear in the file
source view window as well. To view the context around the function,
select the Entire File option instead of Function
Only.
Similarly, loops and function calls can be selected or
highlighted. When they are highlighted, the corresponding code in the
source view will be highlighted as well. Additionally, a loop
instrumentation can be specified to be inside or outside the loop. An
instrumentation inside the loop will be probed once per iteration,
while an instrumentation outside the loop will be probed only once per
invocation. Click on the corresponding button on top of the loop
window while a loop is highlighted to select inside or outside
instrumentation.
An additional hardware instrumentation window allows the user to
easily specify hardware instrumentation options. First, change the
preset pulldown list to match the architecture where the
instrumentation will be ran on. This will limit the list of hardware
counters to only those supported by the architecture. Free can
be chosen if you wish all known hardware counters to be displayed.
If a large number of functions are present, it may take some time
to find a function in the list. To simplify the task, the Find
and Goto feature are available. The Find feature
searches for a string within the list of functions, and the
Goto feature allows you to select a function by its file and a
line number.
Finally...
When all the functions are selected, hit next to begin annotating the
source files. The final display shows you the location of the
original and annotated files. Hit exit to quit the program.