2.5.3 Capture a Linux application on Chrome OS

Use the Linux interceptor and Graphics Analyzer daemon to capture a Linux application running on a Chrome OS device.

Note:

You must set up SSH access to your Chrome OS device before you can capture native Linux applications with Graphics Analyzer. For details, see Setting up SSH Access to your test device.
  1. SSH into the Chrome OS device as root using the command:
    ssh root@(IP address)
  2. Create a directory to store the Graphics Analyzer daemon and interceptor library, for example:
    mkdir /usr/bin/aga
  3. To allow connections on port 5002, run the following command:
    sudo iptables -A INPUT -p tcp -m tcp --dport 5002 -j ACCEPT
  4. Copy the Graphics Analyzer daemon and interceptor library onto your device. Depending on your device, use a version of the Linux Graphics Analyzer components appropriate to your architecture, either hard float, soft float, or 64-bit. You might need root access to copy files onto the Chrome OS file system. For example:
    scp libinterceptor.so root@(IP address):/usr/bin/aga/
  5. From your root user SSH session, launch aga-daemon.
  6. Using the Device Manager, connect to the running daemon by following the instructions in 3.3 Capture over TCP/IP for Android and Linux devices.
  7. Launch a new SSH session.
  8. Run your Linux application and preload the interceptor library by defining the LD_PRELOAD environment variable to point at this library. For example:
    LD_PRELOAD=/path/to/intercept/libinterceptor.so ./your_app

    Note:

As a result, the capture data starts appearing in the desktop Graphics Analyzer client.

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