How to generate a basic trace
Overview
In certain cases, it may be useful to analyse a problem further by looking at a trace that was taken while the problem was being reproduced. This can be done using the trace program that can be found in the /usr/lib/opendiva/divas directory.
To start a basic trace via the shell follow these steps:
cd /usr/lib/opendiva/divas
./Trace
The following screen will then be displayed.
NOTE
Actual options displayed will depend upon the version of the driver that you have installed
If you have an older version of the driver installed, not all options will be shown.
Select the "Standard trace level” option abd select OK.
On the screen "Selective Tracing - Trace all calls" select YES
Accept default ring buffer size
On the screen "Stop trace automatically" select NO.
When the trace process is running in the background, reproduce the problem.
Stop the Trace by typing ./Trace and select the option 'Stop trace process Trace and compress trace file'.
You can use the compressed trace file '/var/log/ditrace.tar.gz' for support requests.
How to convert the Trace to text format
Once the trace has been generated, a file called /var/log/ditrace.bin will be created. To convert the trace into a file that can be read easily, type the following command in the /usr/lib/opendiva/divas directory.
./divactrl ditrace -i /var/log/ditrace.bin > ditrace.txt
This will create a file called ditrace.txt in the /usr/lib/opendiva/divas directory.