Intel® VTune™ Amplifier

Collecting Data from Target Android* System

To run Intel® VTune™ Amplifier directly from the target Android system, do the following:

  1. Prepare a Target Android* System for Remote Analysis.
  2. Enable root mode access on the target device:
    adb root
  3. Start a shell to the target device:
    adb shell
  4. Load required drivers. For drivers available with the build, enter:
    insmod system/lib/modules/pax.ko ; insmod system/lib/modules/vtsspp.ko ; insmod system/lib/modules/sep3_x.ko

    or

    insmod /lib/modules/pax.ko ; insmod /lib/modules/vtsspp.ko ; insmod /lib/modules/sep3_x.ko

    For drivers built manually, enter:

    insmod /data/data/com.intel.vtune/perfrun/drv32/pax.ko ; insmod /data/data/com.intel.vtune/perfrun/drv32/vtsspp.ko ; insmod /data/data/com.intel.vtune/perfrun/drv32/sep3_x.ko

  5. Change to the VTune Amplifier tmp directory:
    cd /data/data/com.intel.vtune/tmp
  6. Run the VTune Amplifier collector. For example, for the First Generation Intel Atom processors enter:

    /data/data/com.intel.vtune/perfrun/bin32/amplxe-runss.sh -result-dir xxx_@@@ -tmp-dir /data/data/com.intel.vtune/tmp -event-config CPU_CLK_UNHALTED.CORE:,CPU_CLK_UNHALTED.REF: -collector sep -target-process com.google.android.talk

Many counter names are different between various microarchitectures. The following correspondence table provides a short list of counters referenced in this manual:

Intel 22 nm ultra-mobile processor (code name: Silvermont)

First Generation Intel Atom™ Processors

4th Generation Intel Core™ processors (Intel microarchitecture code name Haswell)

CPU_CLK_UNHALTED.CORE

CPU_CLK_UNHALTED.CORE

CPU_CLK_UNHALTED.THREAD

CPU_CLK_UNHALTED.REF_TSC

CPU_CLK_UNHALTED.REF

CPU_CLK_UNHALTED.REF_TSC

INST_RETIRED.ANY

INST_RETIRED.ANY

INST_RETIRED.ANY

Use the event-config knob to display a list of events available on the target PMU, for example:

/data/data/com.intel.vtune/perfrun/bin32/amplxe-runss.sh -knob event-config=? <target>

The command returns names and short descriptions of available events. For more information on the events, use Intel Processor Events Reference.

See Also