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

intel-oneapi-vtune package using kernel 6.8.x/6.8.0 not installed completly

IonutNechita
Employee
2,101 Views

Hi,

 

I tried to install Intel® oneAPI Base Toolkit using "apt install intel-basekit", but intel-oneapi-vtune package is not installed completly.

 

ERROR: modpost: module sep5 uses symbol pmt_telem_get_next_endpoint from namespace INTEL_PMT_TELEMETRY, but does not import it. ERROR: modpost: "__SCT__apic_call_write" [/opt/intel/oneapi/vtune/2024.0/sepdk/src/sep5.ko] undefined!

 

OS: Ubuntu 24.04 with 6.8.0-rc3-1-lowlatency

 

I have this messages:

 

 

 sudo apt install --reinstall intel-oneapi-vtune
[sudo] password for qa:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libopenblas-dev libopenblas-pthread-dev libopenblas0 libpython3-all-dev libpython3.12-dev libxsimd-dev python3-all-dev python3-beniget python3-gast python3-ply python3-pythran python3.12-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 488 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://apt.repos.intel.com/oneapi all/main amd64 intel-oneapi-vtune amd64 2024.0.1-11 [488 MB]
Fetched 488 MB in 10s (46.9 MB/s)
(Reading database ... 319706 files and directories currently installed.)
Preparing to unpack .../intel-oneapi-vtune_2024.0.1-11_amd64.deb ...
Warning:  no socwatch driver was found loaded in the kernel.
Using C compiler = gcc
Using kernel build dir = /lib/modules/6.8.0-rc3-1-lowlatency/build
No module symvers file found
Using common inc dir = /opt/intel/oneapi/vtune/2024.0/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/6.8.0-rc3-1-lowlatency/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/6.8.0-rc3-1-lowlatency/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/opt/intel/oneapi/vtune/2024.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver
make -C /lib/modules/6.8.0-rc3-1-lowlatency/build M=/opt/intel/oneapi/vtune/2024.0/sepdk/src/socwatch/socwatch_driver clean
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-rc3-1-lowlatency'
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-rc3-1-lowlatency'
Warning:  no vtsspp driver was found loaded in the kernel.
  CLEAN   /opt/intel/oneapi/vtune/2024.0/sepdk/src/vtsspp

Warning:  the following driver(s) were not found loaded in the kernel:  sep5.

Warning:  no vtsspp driver was found loaded in the kernel.

Warning: skipping SOCWATCH driver unload, not built


Warning:  the following driver(s) were not found loaded in the kernel:  socperf3.


The PAX service is not loaded anymore.
No previously installed pax driver boot script was found.
Stop and disable sep5.service ...
Removed "/etc/systemd/system/multi-user.target.wants/sep5.service".
done.
rm -f sep5*.ko
make[1]: Entering directory '/opt/intel/oneapi/vtune/2024.0/sepdk/src/pax'
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno .cache.mk *.o.ur-safe .*.o.tmp *.mod .*.mod.cmd
rm -f pax.ko pax.ko.unsigned pax-x32_64-6.8.0-rc3-1-lowlatencysmp.ko
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers .modules.order.cmd .Module.symvers.cmd
rm -rf .tmp_versions
rm -f pax*.ko
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2024.0/sepdk/src/pax'
make[1]: Entering directory '/opt/intel/oneapi/vtune/2024.0/sepdk/src/socperf/src'
rm -f *.o .*.o.cmd .*.o.d .*.ko.cmd .*.ko.unsigned.cmd *.gcno .cache.mk *.o.ur-safe .*.o.tmp *.mod .*.mod.cmd
rm -f socperf3.ko socperf3.ko.unsigned
rm -f socperf3*x32_64-6.8.0-rc3-1-lowlatencysmp.ko
rm -f Module.symvers Modules.symvers *.mod.c modules.order Module.markers .modules.order.cmd .Module.symvers.cmd
rm -rf .tmp_versions
rm -f socperf3*.ko
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2024.0/sepdk/src/socperf/src'
Unpacking intel-oneapi-vtune (2024.0.1-11) over (2024.0.1-11) ...
Setting up intel-oneapi-vtune (2024.0.1-11) ...
C compiler version: 13.2.0
Make version: 4.3
Kernel version: 6.8.0-rc3-1-lowlatency

Cleaning workspaces ...
Done

Building socperf driver ...
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Debian 13.2.0-13) 13.2.0
  You are using:           gcc (Ubuntu 13.2.0-13ubuntu1) 13.2.0
/opt/intel/oneapi/vtune/2024.0/sepdk/src/socperf/src/socperfdrv.c:214:13: warning: no previous prototype for ‘SOCPERF_Read_Data3’ [-Wmissing-prototypes]
  214 | extern VOID SOCPERF_Read_Data3(PVOID data_buffer)
      |             ^~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/socperf/src/socperfdrv.c:997:11: warning: no previous prototype for ‘SOCPERF_Switch_Group3’ [-Wmissing-prototypes]
  997 | OS_STATUS SOCPERF_Switch_Group3(VOID)
      |           ^~~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/socperf/src/socperfdrv.c:1182:13: warning: no previous prototype for ‘lwpmudrv_Stop_Mem’ [-Wmissing-prototypes]
 1182 | extern VOID lwpmudrv_Stop_Mem(VOID)
      |             ^~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/socperf/src/socperfdrv.c:1400:1: warning: no previous prototype for ‘socperf_Service_IOCTL’ [-Wmissing-prototypes]
 1400 | socperf_Service_IOCTL(IOCTL_USE_INODE struct file *filp,
      | ^~~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/socperf/src/socperfdrv.c:1525:1: warning: no previous prototype for ‘socperf_Device_Control’ [-Wmissing-prototypes]
 1525 | socperf_Device_Control(IOCTL_USE_INODE struct file *filp,
      | ^~~~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/socperf/src/socperfdrv.c:1562:1: warning: no previous prototype for ‘socperf_Device_Control_Compat’ [-Wmissing-prototypes]
 1562 | socperf_Device_Control_Compat(struct file  *filp,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/socperf/src/socperfdrv.c:1614:12: warning: no previous prototype for ‘SOCPERF_Abnormal_Terminate’ [-Wmissing-prototypes]
 1614 | extern int SOCPERF_Abnormal_Terminate(void)
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
Done

Building sep driver ...
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Debian 13.2.0-13) 13.2.0
  You are using:           gcc (Ubuntu 13.2.0-13ubuntu1) 13.2.0
/opt/intel/oneapi/vtune/2024.0/sepdk/src/eventmux.c:386:1: warning: no previous prototype for ‘EVENTMUX_Start’ [-Wmissing-prototypes]
  386 | EVENTMUX_Start(VOID)
      | ^~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/eventmux.c:416:1: warning: no previous prototype for ‘EVENTMUX_Initialize’ [-Wmissing-prototypes]
  416 | EVENTMUX_Initialize(VOID)
      | ^~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/eventmux.c:472:1: warning: no previous prototype for ‘EVENTMUX_Destroy’ [-Wmissing-prototypes]
  472 | EVENTMUX_Destroy(VOID)
      | ^~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/lwpmudrv.c:6524:1: warning: no previous prototype for ‘lwpmu_PMT_Add_Telemetry_Info’ [-Wmissing-prototypes]
 6524 | lwpmu_PMT_Add_Telemetry_Info(struct telem_endpoint      *ep,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/lwpmudrv.c:6703:1: warning: no previous prototype for ‘lwpmu_Service_IOCTL’ [-Wmissing-prototypes]
 6703 | lwpmu_Service_IOCTL(IOCTL_USE_INODE struct file *filp,
      | ^~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/lwpmudrv.c:7042:1: warning: no previous prototype for ‘lwpmu_Device_Control’ [-Wmissing-prototypes]
 7042 | lwpmu_Device_Control(IOCTL_USE_INODE struct file *filp,
      | ^~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/lwpmudrv.c:7081:1: warning: no previous prototype for ‘lwpmu_Device_Control_Compat’ [-Wmissing-prototypes]
 7081 | lwpmu_Device_Control_Compat(struct file  *filp,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/lwpmudrv.c:7137:1: warning: no previous prototype for ‘LWPMUDRV_Abnormal_Terminate’ [-Wmissing-prototypes]
 7137 | LWPMUDRV_Abnormal_Terminate(void)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/pmi.c:90:1: warning: no previous prototype for ‘pmi_Get_CSD’ [-Wmissing-prototypes]
   90 | pmi_Get_CSD(U32 seg, U32 *low, U32 *high)
      | ^~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/linuxos.c:858:1: warning: no previous prototype for ‘linuxos_online_cpu’ [-Wmissing-prototypes]
  858 | linuxos_online_cpu(unsigned int cpu)
      | ^~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/linuxos.c:884:1: warning: no previous prototype for ‘linuxos_offline_cpu’ [-Wmissing-prototypes]
  884 | linuxos_offline_cpu(unsigned int cpu)
      | ^~~~~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/sys64.o: warning: objtool: SYS_Get_GDT_Base+0x3: 'naked' return found in RETHUNK build
/opt/intel/oneapi/vtune/2024.0/sepdk/src/sys64.o: warning: objtool: SYS_IO_Delay+0x0: 'naked' return found in RETHUNK build
/opt/intel/oneapi/vtune/2024.0/sepdk/src/apic.c:66:1: warning: no previous prototype for ‘apic_Get_APIC_ID’ [-Wmissing-prototypes]
   66 | apic_Get_APIC_ID(S32 cpu)
      | ^~~~~~~~~~~~~~~~
/opt/intel/oneapi/vtune/2024.0/sepdk/src/pebs.c:1426:1: warning: no previous prototype for ‘PEBS_Fill_Phy_Addr’ [-Wmissing-prototypes]
 1426 | PEBS_Fill_Phy_Addr(LATENCY_INFO latency_info)
      | ^~~~~~~~~~~~~~~~~~
ERROR: modpost: module sep5 uses symbol pmt_telem_get_next_endpoint from namespace INTEL_PMT_TELEMETRY, but does not import it.
ERROR: modpost: "__SCT__apic_call_write" [/opt/intel/oneapi/vtune/2024.0/sepdk/src/sep5.ko] undefined!
ERROR: modpost: module sep5 uses symbol pmt_telem_register_endpoint from namespace INTEL_PMT_TELEMETRY, but does not import it.
ERROR: modpost: "__SCK__apic_call_write" [/opt/intel/oneapi/vtune/2024.0/sepdk/src/sep5.ko] undefined!
ERROR: modpost: "__SCT__apic_call_read" [/opt/intel/oneapi/vtune/2024.0/sepdk/src/sep5.ko] undefined!
ERROR: modpost: module sep5 uses symbol pmt_telem_get_endpoint_info from namespace INTEL_PMT_TELEMETRY, but does not import it.
ERROR: modpost: "__SCK__apic_call_read" [/opt/intel/oneapi/vtune/2024.0/sepdk/src/sep5.ko] undefined!
ERROR: modpost: module sep5 uses symbol pmt_telem_read from namespace INTEL_PMT_TELEMETRY, but does not import it.
make[3]: *** [scripts/Makefile.modpost:217: /opt/intel/oneapi/vtune/2024.0/sepdk/src/Module.symvers] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-rc3-1-lowlatency/Makefile:2083: modpost] Error 2
make[1]: *** [Makefile:257: __sub-make] Error 2
make: *** [Makefile:224: default] Error 2

Failed to build the drivers


Warning:  the following driver(s) were not found loaded in the kernel:  sep5.

Warning:  no vtsspp driver was found loaded in the kernel.

Warning: skipping SOCWATCH driver unload, not built


Warning:  the following driver(s) were not found loaded in the kernel:  socperf3.


The PAX service is not loaded anymore.
PYTHON is set to python3

ERROR: sep5 driver "sep5-x32_64-6.8.0-rc3-1-lowlatencysmp.ko"
was not found in directory "." !

This means you may need to build sep5 driver from the provided
driver sources. Please see the driver README for instructions.

Note: Ensure that the driver is built for kernel version 6.8.0-rc3-1-lowlatency

Configuring sep5 boot script with the following options:
    driver files = /opt/intel/oneapi/vtune/2024.0/sepdk/src/.
Creating systemd load script /usr/local/sbin/sep5-load.sh ...
done.
Creating systemd boot config file /lib/systemd/system/sep5.service ...
done.
Configuring autoload of sep5.service service ...
Created symlink /etc/systemd/system/multi-user.target.wants/sep5.service → /lib/systemd/system/sep5.service.
Job for sep5.service failed because the control process exited with error code.
See "systemctl status sep5.service" and "journalctl -xeu sep5.service" for details.
WARNING: systemctl start returned error 1 ...
done.

 

 

 

Labels (1)
0 Kudos
1 Solution
yuzhang3_intel
Moderator
1,809 Views

Thanks for the confirmation.

View solution in original post

0 Kudos
3 Replies
yuzhang3_intel
Moderator
2,067 Views

It is one known issue, which will be fixed in VTune 2024.1. Maybe you can use perf or user-mode sampling instead of SEP.

0 Kudos
IonutNechita
Employee
1,814 Views

Hi @yuzhang3_intel ,

 

I tested today with 6.8.2 kernel version with Ubuntu 22.04 and Ubuntu 24.04.

And this issue is fixed now.

Thanks.

 

sudo dmesg | grep -E "sep5|vts"
[    5.837007] sep5_45: Driver loading... sym_lookup_func_addr=ffffffff861fbd10
[    5.838052] sep5_45: [load] [UTILITY_Driver_Log_Init@1193]: Initialized driver log using contiguous physical memory.
[    5.838058] sep5_45: [load] [lwpmu_Load@7471]: Major number is 510
[    5.838061] sep5_45: [load] [lwpmu_Load@7479]: Detected 8 total CPUs and 8 active CPUs.
[    5.846028] sep5_45: [load] [lwpmu_Load@7870]: PMU collection driver v5.45.16 Beta has been loaded.
[    5.846034] sep5_45: [load] [lwpmu_Load@7880]: NMI will be used for handling PMU interrupts.
[    5.846039] sep5_45: [load] [PMU_LIST_Initialize@652]: PMU check enabled! F6.M8c.S1 index=29 drv_type=PUBLIC arch_pmu_info_used=no
[    5.846063] sep5_45: [load] [PMU_LIST_Build_PCI_List@729]: No PCI list information detected!
[    6.986891] vtsspp: Driver version: 1.8.408-627630
[    6.986898] vtsspp: Driver options: uid: 0, gid: 1001, mode: 660
[    6.986901] vtsspp: Kernel version: 6.8.2-lowlatency1
[    6.986904] vtsspp: Detected 8 CPU(s) and 2 thread(s) per core
[    6.986905] vtsspp: CPU family: 0x6, model: 0x8c, stepping: 0x1
[    6.986907] vtsspp: CPU freq: 2803200KHz, timer freq: 1000000KHz
[    6.986936] vtsspp: Driver options: ksyms: ffffffff861fbd10
[    6.986938] vtsspp: CPU feature: IBT disabled
[    6.986994] vtsspp: PERFMONv5: fixed events: 4, generic counters: 8
[    6.987004] vtsspp: Kernel: KPTI detected
[    6.987005] vtsspp: Kernel: KASLR detected
[    6.987005] vtsspp: Driver has been loaded

 

0 Kudos
yuzhang3_intel
Moderator
1,810 Views

Thanks for the confirmation.

0 Kudos
Reply