インテル® VTune™ Amplifier 2018 ヘルプ

Configuring Yocto Project* and Intel® VTune™ Amplifier with the VTune Amplifier Integration Layer

Intel® VTune™ Amplifier can collect and analyze performance data on embedded Linux* devices running Yocto Project*. This topic provides an example of setting up the VTune Amplifier to collect performance data on an embedded device with Yocto Project 1.8 installed using the Intel VTune Amplifier integration layer provided with the product installation files. The process integrates the VTune Amplifier product drivers with the target package and includes them in the embedded device image. Root access to the kernel is required.

Prepare the Integration Layer

Prerequisite: Install VTune Amplifier on the host system.

  1. On the host system where Intel VTune Amplifier is installed, extract the <install-dir>/target/linux/vtune_amplifier_target_x86.tgz or <install-dir>/target/linux/vtune_amplifier_target_x86_64.tgz archive to a writeable location on the host system.

  2. Navigate to the directory where you extracted the archive and modify the sepdk/vtune-layer/conf/user.conf file to specify user settings.

    1. Specify one of the following paths:

      • Path to unzipped target package: VTUNE_TARGET_PACKAGE_DIR = "/tmp/vtune_amplifier/target/"

      • Path to VTune Amplifier: VTUNE_AMPLIFIER_DIR = "/opt/intel/vtune_amplifier"

    2. (Optional) To integrate the SEP driver during system book, specify ADD_TO_INITD = "y".

  3. In the Yocto Project development environment, add the path to the layer to the bblayer.conf file. For example:

    vi conf/bblayers.conf
    BBLAYERS = "$HOME/source/poky/vtune-layer\" 

    Your file should look similar to the following:

    BBLAYERS ?= " \
      $HOME/source/poky/meta \
      $HOME/source/poky/meta-poky \
      $HOME/source/poky/meta-yocto-bsp \
      $HOME/source/poky/meta-intel \
      $HOME/source/poky/vtune-layer \
      "
  4. Add the Intel VTune Amplifier recipe to conf/local.conf. Two recipes are available, intel-vtune-drivers and intel-vtune-sep-driver. In this example, the intel-vtune-drivers is used so the analysis can be run from the VTune Amplifier GUI on the host system.

    vi "conf/local.conf"
    IMAGE_INSTALL_append = " intel-vtune-drivers"

    Note

    You cannot add both intel-vtune-drivers and intel-vtune-sep-driver at the same time.

Build and Flash the Target Operating System

  1. Build the target operating system. For example:

    bitbake core-image-sato
  2. Flash the operating system to the embedded device.

Configure and Run Remote Analysis

Use the following steps on the host system to set up and launch the analysis on the embedded device:

  1. Set up a password-less SSH access to the target using RSA keys.

  2. Create a new project.

  3. Select the remote Linux (SSH) analysis target and specify the collection details.

  4. Configure the analysis type.

  5. Start the analysis.

関連情報