VTune sampling driver does not compile on Fedora 17

VTune sampling driver does not compile on Fedora 17

I downloaded the latest VTune (2013) and during installation it complained about the sampling driver.

I followed the instructions to build a sampling driver from source. My system is an up to date Fedora 17 and the prebuilt driver for Fedora 17 is from a few kernels back.

uname -a

Linux ivybridge 3.5.3-1.fc17.x86_64 #1 SMP Wed Aug 29 18:46:34 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

[root@ivybridge src]# rpm -qa | grep kernel




make[1]: Entering directory `/usr/src/kernels/3.5.3-1.fc17.x86_64'

CC [M] /opt/intel/vtune_amplifier_xe_2013/sepdk/src/lwpmudrv.o
/opt/intel/vtune_amplifier_xe_2013/sepdk/src/lwpmudrv.c:49:24: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[2]: *** [/opt/intel/vtune_amplifier_xe_2013/sepdk/src/lwpmudrv.o] Error 1
make[1]: *** [_module_/opt/intel/vtune_amplifier_xe_2013/sepdk/src] Error 2

seems a bit strange that there is no asm/system.h

Any help to get the driver compiled and installed would be appreciated.

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I was able to fix the driver code and get it build/load. The problem is that system.h was removed.

The following changes allowed the code to compile.

lwpudrv.c - remove include of system.h
eventmux.c - add include of linux/percpu.h
pebs.c - add include of linux/percpu.h

vtsspp/lbr.c - add include of linux/percpu.h

Leave a Comment

Please sign in to add a comment. Not a member? Join today