Setting Up An Android Target - ARM DS-5 Manual

Hide thumbs Also See for DS-5:
Table of Contents

Advertisement

2.2

Setting up an Android target

2.2.1
Prepare and build your kernel
ARM DUI 0482K
ID120712
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.
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,
performance event and counters option,
Kernel Hacking
Enable the Tracers option,
context switches and events option,
add the following options,
To populate the Mutex CPU Wait chart you must enable the Kernel hacking →
Mutex debugging: basic checks option,
hacking → Compile the kernel with debug info option,
CONFIG_DEBUG_KERNEL_INFO
Kernel Features
Enable the High Resolution Timer Support option,
the Enable hardware performance counter support option,
CONFIG_HW_PERF_EVENTS
CONFIG_LOCAL_TIMERS
CPU Power Management
To enable the CPU Freq Timeline view chart,
or greater and that you define the CPU Frequency scaling → CPU Frequency
scaling option,
Note
The Trace context switches and events option,
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
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.
Copyright © 2010-2012 ARM. All rights reserved.
Non-Confidential
CONFIG_PROFILING
CONFIG_FTRACE
CONFIG_ENABLE_DEFAULT_TRACERS
CONFIG_DEBUG_MUTEXES
.
. Enable the Use local timer interrupts option,
, if you are using a Symmetric MultiProcessing (SMP) target.
.
CONFIG_CPU_FREQ
CONFIG_ENABLE_DEFAULT_TRACERS
or
also work. The Trace process context
CONFIG_TRACING
Setting Up Your Target
and the Kernel
.
CONFIG_PERF_EVENTS
, and the Tracers → Trace process
, and.the Kernel
CONFIG_HIGH_RES_TIMERS
requires kernel version 2.6.38
gator
, is not be
. You must
and
2-6

Advertisement

Table of Contents
loading

Table of Contents