Intel® VTune™ Amplifier XE and Intel® VTune™ Amplifier for Systems Help

Building and Managing Energy Analysis Driver

Note

Energy analysis with the Intel® SoC Watch data collector is available for target Android*, Windows*, or Linux* devices and provided only with the Intel® VTune™ Amplifier for Systems.

Before running an energy analysis on a system, the appropriate drivers should be available on that system. Energy analysis drivers for Windows* systems are pre-built as part of the Intel SoC Watch package. Energy analysis drivers for Linux* or Android* systems must be installed manually.

Installing Drivers on a Linux* System

Intel® VTune™ Amplifier for Systems uses the kernel driver to enable the energy analysis. The energy analysis driver, or Intel SoC Watch driver, is typically installed by default during the product installation. If the kernel on your Linux* system is not one of the supported kernels listed in the Release Notes, you need to build and load the driver manually as follows:

  1. Configure the basic software environment.

  2. Build and (re)load the energy analysis driver.

Configuring the Basic Software Environment

To compile the energy analysis driver, the target system must have the following software installed:

In addition, the kernel version must be 2.6.32 or later and must be configured with the following options enabled:

Note

You can verify these options by checking the kernel config file (for example, /boot/config, /proc/config.gz, /usr/src/linux/.config). Normally, these tools are installed, and kernel options are enabled, by default. However, administrators may remove/disable them from deployment systems, such as servers or embedded systems.

Building and (Re)Loading the Driver

If the drivers are not installed or if the Intel SoC Watch executable requires a more recent version of the drivers then you will need to compile the drivers from source. To compile drivers from source, the kernel-headers package for the kernel running on the target machine must be installed. For instance, if your target device is running kernel version 3.9.10-100.fc17.x86_64 then the package kernel-headers-3.9.10-100.fc17.x86_64 must be installed.

Note

To perform these steps, make sure you have root or sudo permissions.

Detailed steps are available in the Intel SoC Watch User's Guide for Linux* OS and Android* OS, which can be found in the <install-dir>/documentation/en directory.

Installing the Energy Analysis Collector on the Target Android System

  1. On the host, unzip the remote target package, system_studio_target.tgz, located, by default, in the Targets subdirectory of the Intel System Studio installation directory.

  2. Depending on the target operating system or Intel architecture, run the required install script:

    • socwatch_android_vx.x.x/socwatch_android_install.bat on a Windows host.

    • socwatch_android_vx.x.x/socwatch_android_install.sh script on a Linux host or a Cygwin window on a Windows host.

    By default, the script installs the collector executables to the /data/socwatch directory on the Android target system. Use the -d option to select a different install directory and the -s option to define a specific target device if multiple devices are connected to the host.

Note

  • The -s option is not supported with socwatch_android_install.bat.

  • See the Intel SoC Watch User's Guide (socwatch_<OS>_users_guide.pdf), for detailed instructions on building and loading the Intel SoC Watch drivers for your target system, and instructions and tips for viewing the data directly on the target.

See Also