Analyzers
Community support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)

Profiler Drivers missing

biederman__steve
Beginner
1,626 Views

Brand new to vtune, on a Centos Linux machine.  "uname -r" gives "3.10.0-327.el7.x86_64".

When I installed vtune, it said

The install program cannot detect the kernel source directory for OS kernel
version 3.10.0-327.el7.x86_64. If kernel sources are already installed to custom
directory, set up this parameter in Advanced Options -> Driver Build Options
dialog.
To install kernel headers, execute one of the following commands specific to
your operating system:
- CentOS / Red Hat Enterprise Linux
   - On a system with the default kernel, install the kernel-devel package:
     sudo yum install kernel-devel-3.10.0-327.el7.x86_64
   - On a system with the PAE kernel, install the kernel-PAE package:
     sudo yum install kernel-PAE-devel-3.10.0-327.el7.x86_64
 

When I try to run that final "yum" line, I get:

No package kernel-PAE-devel-3.10.0-327.el7.x86_64 available.

When I run either vtune-self-checker.sh or try to set up a Microarchitecture Exploration inside the vtune GUI,
they tell me  "vtune: Error: This analysis type requires either an access to system-wide monitoring in the Linux perf subsystem or installation of the VTune Profiler drivers (see the "Sampling Drivers" help topic for further details). "

How do I install the VTune Profiler drivers?

0 Kudos
7 Replies
ArunJ_Intel
Moderator
1,624 Views

Hey Steve,

 

The error message suggests to install perf or vtune drivers. So to resolve the issue you could try any one among the 2 below alternatives:

 

alternative 1: Install perf

You can install perf on centos with the below command

sudo yum install perf gawk

 

alternative 2:

You could build vtune drivers by using the below command:

cd {VTUNE_INSTALLATION_PATH}/sepdk/src/
./build-driver -ni  --kernel-version="3.10.0-327.el7.x86_64" --kernel-src-dir="/usr/src/kernels/3.10.0-327.el7.x86_64"

Also find below a more detailed documentation on building drivers in the below link

https://software.intel.com/en-us/vtune-help-building-and-installing-the-sampling-drivers-for-linux-targets

 

 

 

0 Kudos
biederman__steve
Beginner
1,628 Views

My /usr/src/kernels is empty.  Is there something I can do or am I out of luck?

0 Kudos
biederman__steve
Beginner
1,628 Views

FYI, I do have a /lib/modules/3.10.0-327.el7.x86_64/source which is a symlink to the non-existent /usr/src/kernels/3.10.0-327.el7.x86_64.

0 Kudos
Kirill_U_Intel
Employee
1,628 Views

Hi, Steve.

Did you try 'sudo yum install kernel-devel-3.10.0-327.el7.x86_64'?

if the package is not avalable you could try to download and install it directly.

for example,  'sudo rpm -ivh kernel-devel-3.10.0-327.el7.x86_64.rpm' from

https://buildlogs.centos.org/c7.1511.00/kernel/20151119220809/3.10.0-327.el7.x86_64/ ;

 

Kirill

0 Kudos
ArunJ_Intel
Moderator
1,626 Views

Hi Steve,

 

Have you tried out the steps provided ?. Do the resolve your issue.

 

Arun

0 Kudos
biederman__steve
Beginner
1,628 Views

That resolved my issue, thanks.

0 Kudos
ArunJ_Intel
Moderator
1,628 Views

Thanks for the confirmation we are closing this case. Please feel free to  raise a new thread for further issues.

 

0 Kudos
Reply