Setting Up Your Target
ARM DUI 0482K
Copyright © 2010-2012 ARM. All rights reserved.
2-8
ID120712
Non-Confidential
# EXTRA_=-DGATOR_KERNEL_STACK_UNWINDING
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.2.4
Connect to the target
Streamline supports connection to your target using ethernet. Using the
Android Debug Bridge
(ADB) utility that is part of the Android SDK, it is possible to forward a TCP port from the target
to your localhost over a USB connection. ADB can also be configured to work over ethernet.
For more information about the Android SDK and ADB setup, see the Android website.
When ADB is set up, forward the Streamline port to your localhost using the following
command:
adb forward tcp:8080 tcp:8080
2.2.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. For example,
adb push
gatord_location
target_location
.
2.
To ensure
gatord
has execute permission, enter the following command on the target or
from your host using
adb shell
:
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 on the target:
insmod gator.ko
•
Include the path to
gator.ko
using the
-m
option of gatord. For example:
./gatord
-m /home/gator/gator.ko
&.
4.
After making sure that you have root privileges, enter the following to execute the gator
daemon:
./gatord &
You can use the following options with
gatord
:
-c
Sets the location of the
configuration.xml
file that defines the capture options.
Include the directory location and the file name. This option is useful when
directory containing
gatord
is not writable.
-e
Defines the location of the
events.xml
file to use with
gatord
.
events.xml
defines
the counters that Streamline collects during the capture session. Include the
directory location and the file name.
-h
Lists all of the available
gatord
command line options.