Technical Helpweb

- more articles

How to generate a basic trace

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.
trace_shell.jpg 

Note that 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. 

1. Select the "Standard trace level” option abd select OK.

2. On the screen "Selective Tracing - Trace all calls" select YES

3. Accept default ring buffer size

4. On the screen "Stop trace automatically" select NO.

5. When the trace process is running in the background, reproduce the problem.

6. 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.


See also:
How to generate traces for SDK issues in Linux


Feedback

Please rate the usefulness of this page:  
0 - not useful at all
1 - potentially useful
2 - quite useful
3 - very useful
4 - exactly the information I needed     

Please enter a comment about this page:

First published: 14-Feb-2011
Open access: Product rule: ; Page rule: Auto

Service Center Logon