2.6.2 Install Graphics Analyzer on webOS

webOS devices are based on Linux and can use Graphics Analyzer executables that are intended for Linux.

Ensure that you use binaries that are compiled for the architecture of the target device, see 1.2 Installation package.

The installation steps are as follows:

  1. Make a directory on the device named /opt/graphics_analyzer/.
  2. Copy the following files into this new directory:
    • The Graphics Analyzer interceptor, libinterceptor.so
    • The Graphics Analyzer daemon process, aga-daemon
  3. Create a script named /opt/graphics_analyzer/aga-wrapper. This script applies the Graphics Analyzer interceptor to arbitrary applications. Populate the script as follows:
    #!/bin/sh
    MGD_LIBRARY_PATH=/usr/lib
    LD_PRELOAD=/usr/lib/libcbe.so:\
    `dirname $0`/ga/libinterceptor.so:\
    $LD_PRELOAD
    
    export MGD_LIBRARY_PATH LD_PRELOAD
    exec $0.bin "$@"
  4. Create a script named /etc/init/graphics_analyzer.conf. This script ensures that the Graphics Analyzer daemon launches at device boot. Populate the script as follows:
    description "Launch the Graphics Analyzer daemon from Arm Ltd."
    start on started sam
    respawn
    script
    exec /opt/graphics_analyzer/aga-daemon > /var/log/aga-daemon.log 2>&1
    end script

    Note:

    This script directs messages from the Graphics Analyzer daemon to /var/log/aga-daemon.log.
  5. Edit the file /etc/luna-service2/ls-hubd.conf as follows:
    • Locate the [Security] section.
    • Change the Enabled key from true to false and save it.

    This step allows you to change executables on the device without a security fault being issued.

Non-Confidential - RELPDF file icon PDF version101545__00_en
Copyright © 2020–2022, 2024 Arm Limited or its affiliates. All rights reserved.