This document explains how to use the BTrace.exe
This document explains how to use the command line kernel trace tool to extract trace data from a device.
Intended Audience
Developers who need to debug a device using the command line kernel trace tool.
Required Background
An understanding of the trace macros in EUser.
Introduction
The command line kernel trace tool is a command line tool which displays trace data produced by the BTrace framework.
Setup and Configuration Requirements
The command line kernel trace tool is included in all Base Text-Shell ROMs but must be manually added to other kinds of ROM.
The following tasks will be covered in this tutorial:
Basic Procedure
The high level steps to setting a trace are shown here:
The syntax for the commands is this:
BTRACE [-fLIST] [-mN] [-bN] [-d] [filename]
where
LIST stands for a list of comma separated category numbers,
-mN stands for -m followed by an integer as defined in RBTrace::TMode,
-bN stands for the size in bytes of the capture buffer,
-d causes the contents of the trace buffer to be dumped to the debug port, and
filename is the file to which the trace data is to be written.
Here is an example command:
BTRACE -f1,2,3 -m3 -b1024 MyTestProgram.exe BTRACE d:\MyLog.txt
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.