Community
cancel
Showing results for 
Search instead for 
Did you mean: 
147 Views

vtsspp seems to be broken with the lastest update to the kernel in Ubuntu 16.04 (Kernel 4.4.0-112 update)

I'm evaulating VTUNE but I ran into a problem. It looks like X86_FEATURE_MFENCE_RDTSC was removed? (IDK if it is related to this ... https://lkml.org/lkml/2018/1/5/383) linux-headers-4.4.0-104/arch/x86/include/asm/cpufeatures.h:#define X86_FEATURE_MFENCE_RDTSC ( 3*32+17) /* "" Mfence synchronizes RDTSC */ linux-headers-4.4.0-104/arch/x86/include/asm/msr.h: alternative_2("", "mfence", X86_FEATURE_MFENCE_RDTSC, linux-headers-4.4.0-104/arch/x86/include/asm/mmu_context.h: * and neither LOCK nor MFENCE orders them. linux-headers-4.4.0-104/arch/x86/include/asm/special_insns.h: * // MFENCE via mb() also works linux-headers-4.4.0-104/arch/x86/include/asm/special_insns.h: * PCOMMIT must always be ordered by an MFENCE or SFENCE, so to help simplify linux-headers-4.4.0-112/arch/x86/include/asm/special_insns.h: * // MFENCE via mb() also works linux-headers-4.4.0-112/arch/x86/include/asm/special_insns.h: * PCOMMIT must always be ordered by an MFENCE or SFENCE, so to help simplify *************************** ./build-driver log Options in brackets "[ ... ]" indicate default values that will be used when only the ENTER key is pressed. C compiler to use: [ /usr/bin//gcc ] Make command to use: [ /usr/bin//make ] Kernel source directory: [ /lib/modules/4.4.0-112-generic/build ] rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno rm -f sep4_1.ko sep4_1.ko.unsigned rm -f sep4_1*x32_64-4.4.0-112-genericsmp.ko rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers rm -rf .tmp_versions make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax' rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno rm -f pax.ko pax.ko.unsigned pax-x32_64-4.4.0-112-genericsmp.ko rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers rm -rf .tmp_versions make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax' make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src' rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno rm -f socperf2_0.ko socperf2_0.ko.unsigned rm -f socperf2_0*x32_64-4.4.0-112-genericsmp.ko rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers rm -rf .tmp_versions make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src' make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp' rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers rm -rf .tmp_versions rm -f /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/vtss_autoconf.h rm -f vtsspp.ko vtsspp.ko.unsigned vtsspp-x32_64-4.4.0-112-genericsmp.ko make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp' make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src' /usr/bin//make -C /lib/modules/4.4.0-112-generic/build M=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src LDDINCDIR=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/../include LDDINCDIR1=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/inc modules PWD=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src -j4 make[2]: Entering directory '/usr/src/linux-headers-4.4.0-112-generic' CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperfdrv.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/control.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/utility.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/pci.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/soc_uncore.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/haswellunc_sa.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/axi_uncore.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/npk_uncore.o LD /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperf2_0.o Building modules, stage 2. MODPOST 1 modules CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperf2_0.mod.o LD /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src/socperf2_0.ko make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-112-generic' cp socperf2_0.ko socperf2_0-x32_64-4.4.0-112-genericsmp.ko make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/socperf/src' /usr/bin//make -C /lib/modules/4.4.0-112-generic/build M=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src LDDINCDIR=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/../include LDDINCDIR1=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/inc modules PWD=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src make[1]: Entering directory '/usr/src/linux-headers-4.4.0-112-generic' *************************************************************** NOTE: NMI Interrupt Mode is set on 4.4.0-112-generic kernel *************************************************************** CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/lwpmudrv.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/control.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/cpumon.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/eventmux.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/linuxos.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/output.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pmi.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sys_info.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/utility.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/valleyview_sochap.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_power.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pci.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/chap.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/gmch.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/gfx.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_sa.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/core2.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/perfver4.o AS /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sys64.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/silvermont.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/apic.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pebs.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_gt.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_mmio.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_msr.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_common.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/unc_pci.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sepdrv_p_state.o LD /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sep4_1.o Building modules, stage 2. *************************************************************** NOTE: NMI Interrupt Mode is set on 4.4.0-112-generic kernel *************************************************************** MODPOST 1 modules CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sep4_1.mod.o LD /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/sep4_1.ko make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-112-generic' cp sep4_1.ko sep4_1-x32_64-4.4.0-112-genericsmp.ko make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax' /usr/bin//make -C /lib/modules/4.4.0-112-generic/build M=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax LDDINCDIR=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax/../../include LDDINCDIR1=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax/../inc modules PWD=/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax make[2]: Entering directory '/usr/src/linux-headers-4.4.0-112-generic' CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax/pax.o Building modules, stage 2. MODPOST 1 modules CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax/pax.mod.o LD /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax/pax.ko make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-112-generic' cp pax.ko pax-x32_64-4.4.0-112-genericsmp.ko make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/pax' make[1]: Entering directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp' make[2]: Entering directory '/usr/src/linux-headers-4.4.0-112-generic' CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/module.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/collector.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/procfs.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/transport.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/record.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/task_map.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/globals.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/cpuevents.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/user_vm.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/stack.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/apic.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/dsa.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/bts.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/pebs.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/lbr.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/nmiwd.o CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/ipt.o AS /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/sys64.o LD /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/vtsspp.o Building modules, stage 2. MODPOST 1 modules WARNING: "X86_FEATURE_MFENCE_RDTSC" [/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/vtsspp.ko] undefined! CC /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/vtsspp.mod.o LD /opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp/vtsspp.ko make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-112-generic' cp -f vtsspp.ko vtsspp-x32_64-4.4.0-112-genericsmp.ko make[1]: Leaving directory '/opt/intel/vtune_amplifier_2018.1.0.535340/sepdk/src/vtsspp' ****************DMESG [20838.643824] socperf2_0: SocPerf Driver loading... [20838.643831] socperf2_0: SocPerf Driver about to register chrdev... [20838.643836] socperf2_0: SocPerf Driver: result of alloc_chrdev_region is 0 [20838.643839] socperf2_0: SocPerf Driver: major number is 237 [20838.643842] socperf2_0: SocPerf Driver: detected 8 CPUs in lwpmudrv_Load [20838.643847] socperf2_0: SocPerf Driver v2.0.0 has been loaded. [20839.663683] sep4_1: PMU collection driver v4.1.0 has been loaded. [20839.663688] sep4_1: Chipset support is enabled. [20839.663690] sep4_1: Graphics support is enabled. [20839.663692] sep4_1: NMI will be used for handling PMU interrupts. [20843.750448] vtsspp: Unknown symbol X86_FEATURE_MFENCE_RDTSC (err 0)
0 Kudos
2 Replies
Jackson_M_Intel
Employee
147 Views

It looks like your issue may be related to this article. Please take a look:

https://software.intel.com/en-us/articles/intel-vtune-amplifier-impact-of-recent-os-security-updates  

As the article states, we're still investigating this.

Gorjiara__Hamed
Beginner
147 Views

Hi Jackson,

Thanks, we understand this issue is now under investigation but is there any temporal solution for that? I ran into this issue as well. I tried to downgrade the version of my kernel (i.e. in Ubuntu 16.04 LTS, I downgraded v4.4.0-122 to v4.4.0-109) to make it work, but it wasn't successful and still when I use:  

./insmod-sep -q

I get the following error that shows vtsspp driver cannot be loaded properly:

pax driver is loaded and owned by group "vtune" with file permissions "666".
socperf2_0 driver is loaded and owned by group "vtune" with file permissions "666".
sep4_1 driver is loaded and owned by group "vtune" with file permissions "666".
vtsspp driver is not loaded.

 

What's the recommended version of the kernel that Vtune is stable on it?

Thanks,

Hamed

Reply