2.4
Mali setup for Streamline
2.4.1
Requirements
2.4.2
Special instructions for building the gator driver
2.4.3
See also
ARM DUI 0482K
ID120712
Streamline enables you to gather GPU-specific profiling data on a Mali-400 based device,
adding a significant amount of data about the graphical performance of your target to the
Analysis Reports.
•
A Mali-400 or Mali-T6xx based device.
•
A sufficiently recent version of the
generating the tracepoints needed by the
this version of the driver is available for your device. For more information, see the Mali
developer site, http://www.malideveloper.com
Follow normal installation and setup instructions for Streamline and the gator daemon. To build
the gator driver,
with Mali support, add a build switch and an include to the make
gator.ko
command. The build switch enables Mali support, and the include path allows the compiler to
locate the
mali_linux_trace.h
necessary for Mali support. To build the gator module for Mali, follow these steps:
1.
Add the following options to your
KCFLAGS="-IMali_driver_source_location/src/devicedrv/mali"
GATOR_WITH_MALI_SUPPORT=MALI_Device_Number
Replace
Device_Number
device type.
Note
If you are using a Mali-T6xx device you must add one additional option to your gator.ko
make command:
DDK_DIR=path_to_dev_driver_directory
2.
Insert the gator module as normal:
insmod gator.ko
3.
Verify that you built the module successfully:
ls -l /dev/gator/events/ARM_Mali_Device_Type
Replace
Mali_Device_Type
command should produce a list of counters.
If you have successfully built the gator module with Mali support, you can run a capture session
on a Mali target. Follow the normal instructions for setting capture options and a triggering a
capture session. For more information on how to do this, see
page
3-2.
Tasks
•
Opening the Capture Options dialog box on page 4-2
•
Setting up an ARM Linux target on page
Reference
•
Target connection issues on page 14-2
Copyright © 2010-2012 ARM. All rights reserved.
Non-Confidential
driver. The driver must be capable of
mali.ko
gator.ko
header file containing the declaration of the Linux tracepoints
command:
gator.ko make
in the command with either
in the command with either
2-2.
Setting Up Your Target
driver. Consult your supplier to see if
or
, depending on your Mali
400
T6xx
.
or
Mali-400*
Mali-T6xx*
The Streamline Data view on
. This
2-11