Qualcomm Snapdragon Performance Visualizer Tool
Version: 9.0
Installation File: Qualcomm CM DCN: HK11-N8928-1 Version 9.0
User Guide: Qualcomm CM DCN: 80-N4717-1 Rev. H.
 
Snapdragon Performance Visualizer 9.0 PACKAGE CREATION SCRIPT
--------------------------------------------
USAGE
make clean all
--------------------------------------------
You must read and accept the terms of the LICENSE file prior to proceeding.
- Run the make in a terminal, ensuring the working directory is the same as that of the script. Eg, make clean all
- Running the make will download buildroot, apply several patches, and run buildroot.  A spv.zip file will be created in the same directory as the script. The spv.zip file will contain the SPV image and shell scripts to install and manage Snapdragon Performance Visualizer on a target device, using adb.
 
BUILD HOST REQUIREMENTS
- Ubuntu 10.04, 11.04, 12.04, 12.10, 13.04, 13.10. Other Ubuntu versions will run, but are not supported. The script will not run on other operating systems.
- Packages: automake, bison, flex, g++, gettext, git, nmap, texinfo, subversion, subversion-tools, libcurl3, tofrodos, python-dev, libc6-i386.
- A network connection to download buildroot. It is recommended that port 9418 be open for Git.
- At least 10GB of free disk space.
 
LINUX KERNEL REQUIREMENTS
- Snapdragon based processor build, CONFIG_KALLSYMS and CONFIG_KALLSYMS_ALL for inclusion of kernel debug symbols
- General performance monitoring requires, CONFIG_PERF_EVENTS and CONFIG_HW_PERF_EVENTS
- Dynamic Printk require CONFIG_KPROBE_EVENT
- Time chart  requires CONFIG_ENABLE_DEFAULT_TRACERS
- GPU markers in Timechart requires the KGSL tracers patches
- ConfigMon requires CONFIG_CP_ACCESS for 32-bit kernels and CONFIG_CP_ACCESS64 for 64-bit kernels
- CPU Frequency requires CONFIG_CPU_FREQ_STAT
- Dynamic Profiling requires PERF_EVENTS and HW_PERF_EVENTS

Patches to support Dalvik profiling is available on Code Aurora Forum under the SPV project patch section:
  https://www.codeaurora.org/patches/quic/qview/
The specific patch required is:
  PATCH_QVIEWEXT4.0_19870_JVM_DALVIK_PROFILING_SUPPORT_20121213.tar.gz
Please see the users guide for patch application instructions.

Patches to support performance monitoring.  Depending on the kernel version and date the below patches could already be included in your kernel:

For kernel 3.10, 32-bit, the patches listed here are included in the Code Aurora Forum linux kernel 3.10 as of  March 27 2014. If you use the kernel from this date onward, you will automatically pick up all these patches and no further action is necessary. If you use a kernel from an earlier date, some or all of these patches may need to be applied.

Kernel 3.10, 32-bit: perf (link to patch list includes oprofile, LiveView)

https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/log/arch/arm/mach-msm/perf_debug.c?h=msm-3.10

For kernel 3.10, 64-bit, the patches listed here are included in the Code Aurora Forum linux kernel 3.10 as of March 31 2014. If you use the kernel from this date onward, you will automatically pick up all these patches and no further action is necessary. If you use a kernel from an earlier date, some or all of these patches may need to be applied.

Kernel 3.10: perf (link to patch list includes oprofile, LiveView)

https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/log/arch/arm64/kernel/perf_debug.c?h=msm-3.10

Kernel 3.10: configmon for 64-bit, AARCH64:

soc: qcom: Add cpaccess for AARCH64 targets https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/commit/?h=msm-3.10&id=ac446cd5b7111d66bd29860a732360c968637a96 

For kernel 3.4, the patches listed here are included in the Code Aurora Forum linux kernel 3.4, branch kk_3.5, as of February 7 2014. If you use the kernel from this date onward, you will automatically pick up all these patches and no further action is necessary. If you use a kernel from an earlier date, some or all of these patches may need to be applied.

Kernel 3.4: configmon:

arm: common: fix cpaccess asm instruction https://www.codeaurora.org/gitweb/quic/la/?p=kernel/msm.git;a=commit;h=e1bb10a173de0327171c2c8d16f64af34a5ca937 

Kernel 3.4: perf (link to patch list includes oprofile, LiveView)

https://www.codeaurora.org/cgit/quic/la/kernel/msm/log/arch/arm/mach-msm/perf_debug.c?h=kk_3.5
