Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5104 Discussions

VTune sampling driver does not compile on Fedora 17

Jeffrey_B_
Beginner
410 Views

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

kernel-devel-3.5.3-1.fc17.x86_64

kernel-headers-3.5.3-1.fc17.x86_64

kernel-3.5.3-1.fc17.x86_64

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

CC /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.

0 Kudos
2 Replies
Jeffrey_B_
Beginner
409 Views
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
0 Kudos
Minh-Nhut_Hong
Beginner
409 Views
vtsspp/lbr.c - add include of linux/percpu.h
0 Kudos
Reply