You copied the Doc URL to your clipboard.

Mali setup for Streamline

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.

Requirements

  • A Mali-400 based device.

  • A sufficiently recent version of the mali.ko driver. The driver must be capable of generating the tracepoints needed by the gator.ko driver. Consult your supplier to see if this version of the driver is available for your device. For more information, see the Mali developer site

Special instructions for building the gator driver

Follow normal installation and setup instructions for Streamline and the gator daemon. To build the gator driver, gator.ko with Mali support, add a build switch and an include to the make command. The build switch enables Mali support, and the include path allows the compiler to locate the mali_linux_trace.h header file containing the declaration of the Linux tracepoints necessary for Mali support. To build the gator module for Mali, follow these steps:

  1. Add the following options to your gator.ko make command:

    KCFLAGS="-IMali_driver_source_location/src/devicedrv/mali" GATOR_WITH_MALI_SUPPORT=MALI_400

  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-400*

    This 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 The ARM Streamline Data view .

Was this page helpful? Yes No