Setting Up Your Target
ARM DUI 0482K
Copyright © 2010-2012 ARM. All rights reserved.
2-6
ID120712
Non-Confidential
2.2
Setting up an Android target
These instructions are specific to targets running Android.
Note
You can locate all of the files provided by DS-5 by selecting
Help
→
ARM Extras...
from the
main menu.
2.2.1
Prepare and build your kernel
You must enable certain kernel configuration options to run Streamline. In the kernel
configuration menu, use the arrow keys to navigate to the required submenu and press Enter.
Each submenu is listed with the action you must take within it.
General Setup
Enable the
Profiling Support
option,
CONFIG_PROFILING
and the
Kernel
performance event and counters option
,
CONFIG_PERF_EVENTS
.
Kernel Hacking
Enable the
Tracers
option,
CONFIG_FTRACE
, and the
Tracers
→
Trace process
context switches and events
option,
CONFIG_ENABLE_DEFAULT_TRACERS
. You must
add the following options,
To populate the Mutex CPU Wait chart you must enable the
Kernel hacking
→
Mutex debugging: basic checks
option,
CONFIG_DEBUG_MUTEXES
, and.the
Kernel
hacking
→
Compile the kernel with debug info
option,
CONFIG_DEBUG_KERNEL_INFO
.
Kernel Features
Enable the
High Resolution Timer Support
option,
CONFIG_HIGH_RES_TIMERS
and
the
Enable hardware performance counter support
option,
CONFIG_HW_PERF_EVENTS
. Enable the
Use local timer interrupts
option,
CONFIG_LOCAL_TIMERS
, if you are using a
Symmetric MultiProcessing
(SMP) target.
CPU Power Management
To enable the CPU Freq Timeline view chart,
gator
requires kernel version 2.6.38
or greater and that you define the
CPU Frequency scaling
→
CPU Frequency
scaling
option,
CONFIG_CPU_FREQ
.
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.
If these options are not set correctly, you must change them and rebuild your kernel. If they are
set correctly, you are ready to build and install the gator driver.