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

socwatch2_15 module is not loaded correctly when using kernel 6.8.x - vtune/oneapi 2024.1 version

IonutNechita
Employee
608 Views

Hi,

 

I notice this when trying to use VTune 2024.1 version:

Building socwatch driver ...
Building drivers for Linux target
-n switch is deprecated. Now it does not have any effect.
/lib/modules/6.8.2-lowlatency1/build will be used as the kernel build directory
Removing previously built driver and scripts from /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/drivers
-c /bin/gcc -l -k /lib/modules/6.8.2-lowlatency1/build will be used to build the SoCWatch driver
-c /bin/gcc -l -k /lib/modules/6.8.2-lowlatency1/build
************ Building socwatch2_15-x32_64-6.8.2-lowlatency1smp.ko driver ************
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/6.8.2-lowlatency1/build
No module symvers file found
Using common inc dir = /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/6.8.2-lowlatency1/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/6.8.2-lowlatency1/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver
make[1]: Entering directory '/opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/6.8.2-lowlatency1/build M=/opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-6.8.2-lowlatency1'
make[2]: Leaving directory '/usr/src/linux-headers-6.8.2-lowlatency1'
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver'
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/6.8.2-lowlatency1/build
No module symvers file found
Using common inc dir = /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/6.8.2-lowlatency1/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/6.8.2-lowlatency1/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver
make[1]: Entering directory '/opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/6.8.2-lowlatency1/build M=/opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-6.8.2-lowlatency1'
make[2]: Leaving directory '/usr/src/linux-headers-6.8.2-lowlatency1'
************************************************************
KERNEL_SRC_DIR=/lib/modules/6.8.2-lowlatency1/build
CPUFREQ_FIX_BACKPORTED=1
MODULE_SYMVERS_FILE=
DO_DRIVER_PROFILING=0
INCDIR_1=/opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/../common/include
************************************************************
make -C /lib/modules/6.8.2-lowlatency1/build M=/opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver modules PWD=/opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver
make[2]: Entering directory '/usr/src/linux-headers-6.8.2-lowlatency1'
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_driver.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_hardware_io.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_output_buffer.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_tracepoint_handlers.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_collector.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_mem.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_internal.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_file_ops.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_ops_provider.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_trace_notifier_provider.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_reader.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_telem.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_pmt.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_counter_list.o
  CC [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/./src/sw_pci.o
  LD [M]  /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/socwatch2_15.o
  MODPOST /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/Module.symvers
ERROR: modpost: module socwatch2_15 uses symbol pmt_telem_get_next_endpoint from namespace INTEL_PMT_TELEMETRY, but does not import it.
ERROR: modpost: module socwatch2_15 uses symbol pmt_telem_register_endpoint from namespace INTEL_PMT_TELEMETRY, but does not import it.
ERROR: modpost: module socwatch2_15 uses symbol pmt_telem_unregister_endpoint from namespace INTEL_PMT_TELEMETRY, but does not import it.
ERROR: modpost: module socwatch2_15 uses symbol pmt_telem_get_endpoint_info from namespace INTEL_PMT_TELEMETRY, but does not import it.
ERROR: modpost: module socwatch2_15 uses symbol pmt_telem_read from namespace INTEL_PMT_TELEMETRY, but does not import it.
make[4]: *** [scripts/Makefile.modpost:217: /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver/Module.symvers] Error 1
make[3]: *** [/usr/src/linux-headers-6.8.2-lowlatency1/Makefile:2084: modpost] Error 2
make[2]: *** [Makefile:257: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-6.8.2-lowlatency1'
make[1]: *** [Makefile:114: default] Error 2
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/socwatch_driver'
ERROR: Failed to build socwatch2_15-x32_64-6.8.2-lowlatency1smp.ko driver

****** Errors occurred. Please check /opt/intel/oneapi/vtune/2024.1/sepdk/src/socwatch/driver_build_errors.txt for errors and the stderr/stdout for more information ******

 

 

0 Kudos
8 Replies
yuzhang3_intel
Moderator
593 Views

Which platform? Kernel version is 6.8.2?

0 Kudos
IonutNechita
Employee
590 Views

Ubuntu 22.04 OS with kernel 6.8.2 and GCC 11.4.0 using TGL board.

0 Kudos
yuzhang3_intel
Moderator
588 Views

Let me check and update later. If you don't measure power, VTune should work.

0 Kudos
Jennifer_D_Intel
Moderator
405 Views

I can also validate, but I don't believe Linux kernel 6.x is supported yet for VTune.


0 Kudos
IonutNechita
Employee
393 Views

Hi @Jennifer_D_Intel ,

 

Ok. Understood. Maybe in feature will be ready for Ubuntu 24.04 LTS.

0 Kudos
zamazan4ik
Beginner
243 Views

Are there public-available plans or something like that about Linux kernel 6.x support for VTune? I also met this limitation. We use 6.x kernels since it consist of useful techs for us.

0 Kudos
Jennifer_D_Intel
Moderator
106 Views

I will follow up with the development team on the current status of kernel 6.x support. It looks like there are some issues with 6.8, but earlier than that should work.

0 Kudos
IonutNechita
Employee
90 Views

Thank you for this resolution.

 

Will be wait to have one VTune version with socwatch module correctly inserted in 6.8.x kernel.

 

Good day.

0 Kudos
Reply