Community
cancel
Showing results for 
Search instead for 
Did you mean: 
biederman__steve
Beginner
301 Views

Profiler Drivers missing

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
301 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-t...

 

 

 

biederman__steve
Beginner
301 Views

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

biederman__steve
Beginner
301 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.

Kirill_U_Intel
Employee
301 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

ArunJ_Intel
Moderator
301 Views

Hi Steve,

 

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

 

Arun

biederman__steve
Beginner
301 Views

That resolved my issue, thanks.

ArunJ_Intel
Moderator
301 Views

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

 

Reply