Setting Up Your Target
ARM DUI 0482K
Copyright © 2010-2012 ARM. All rights reserved.
2-4
ID120712
Non-Confidential
Note
The
Trace context switches and events
option,
CONFIG_ENABLE_DEFAULT_TRACERS
, is not be
visible if you have other
Tracers
configuration options enabled. Enabling other
Tracers
configuration options is sufficient to turn on context switches and events and run
Streamline.
Note
The
Trace process context switches and events
option is not the only option that enables
tracing.
CONFIG_GENERIC_TRACER
or
CONFIG_TRACING
also work. The
Trace process context
switches and events
option may not be visible in menuconfig as an option if other trace
configurations are enabled. Enabling one of these other trace configurations works fine to
turn on tracing.
•
Use the following command to build the image:
make -j5 uImage
You may verify all of your kernel options on a running system using
/proc/config.gz
, if it exists
on your system. For example, to confirm that
CONFIG_PROFILING
is enabled, enter:
zcat
/proc/config.gz | grep CONFIG_PROFILING
2.1.4
Build the gator module
To use Streamline with your ARM target, you may build the gator driver on a Linux host or build
it locally on your target.
DS-5 provides a
gator-driver.tar.gz
source archive. Assuming that you have unzipped the file
and that you have all of the required tools for building kernel modules, enter the following
command on your target to create the
gator.ko
module:
make -C
kernel_build_dir
M=`pwd` ARCH=arm CROSS_COMPILE=<...> modules
Note
You can build the gator module on your target. To do so, it is not necessary to include the ARCH
or CROSS_COMPILE parameters. Enter the following command on your target:
make -C
kernel_build_dir
M=`pwd`.
2.1.5
Run the gator daemon on your target
When all of the necessary files are in place, you can start the gator daemon.
To run
gatord
:
1.
Copy
gatord
and
gator.ko
into the file system on the target.
2.
To ensure
gatord
has execute permission, enter the following command:
chmod +x gatord
3.
If
gatord
is in a different directory than
gator.ko
on the target, you must either:
•
Insert the gator.ko module manually using the following command:
insmod gator.ko
•
Include the path to
gator.ko
using the
-m
option of gatord. For example:
./gatord
-m /home/gator/gator.ko
&.