Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
5262 Discussions

Vtune Amplifier installation on Linux

Allahverdiyev__Mahmu
1,094 Views

When installing Vtune from CLI_INSTALL/, the following error occurs in the log file.

ERROR: Improper Linux Kernel source directory "/usr/src/linux" is specified ... exiting.

 

 

0 Kudos
1 Reply
Ekaterina_L_Intel
1,094 Views

Hi Mahmud,

Linux kernel source directory with kernel headers is needed to build VTune sampling drivers for hardware PMU-based analysis. If your Linux kernel is >2.6.32 and configured with Linux* Perf support, you can install VTune w/o building sampling drivers, then VTune will collect hardware PMU events in "driverless" mode via Perf tool: https://software.intel.com/en-us/vtune-amplifier-cookbook-profiling-hardware-without-sampling-drivers

If your system is not Linux Perf-enabled and you need VTune sampling drivers, follow instructions from https://software.intel.com/en-us/vtune-amplifier-help-building-and-installing-the-sampling-drivers-for-linux-targets

Installation seems cannot detect your kernel source directory automatically or it's missed maybe.

You can modify sampling driver build options by setting up parameters in Advanced Options -> Driver Build Options dialog.  

Make sure to install kernel headers, execute one of the following commands specific to your operating system:

  • Fedora / Red Hat Enterprise Linux

        On a system with the default kernel, install the kernel-devel package:
            yum install kernel-devel
        On a system with the PAE kernel, install the kernel-PAE package:
            yum install kernel-PAE-devel

  • OpenSUSE / SUSE Linux Enterprise

        zypper install kernel-source

  • Ubuntu / Debian

        apt-get install linux-headers-4.4.120-94.17-default

 

Regards, Katya

0 Kudos
Reply