Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
4751 Discussions

Sampling driver installation error

dark-dante
Beginner
293 Views

I am using an AWS EC2 instance (r6in.2xlarge) which uses the Intel Xeon 8375C (Ice Lake) with an Ubuntu 22.04 image. I am followed all instructions to ensure I have the system requirements for the intel oneapi base kit, which was downloaded successully. However to use some tools such as the microarchitecture performance insights, I need the sampling drivers. However, I get the following problem:

 

ubuntu@ip-172-31-44-3:/opt/intel/oneapi/vtune/2023.0.0/sepdk/src$ sudo ./build-driver -ni
C compiler version: 11.3.0
Make version: 4.3
Kernel version: 5.15.0-1028-aws

Cleaning workspaces ... 
Done

Building socperf driver ... 
Skipping BTF generation for /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socperf/src/socperf3.ko due to unavailability of vmlinux
Done

Building sep driver ... 
/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_Get_GDT_Base()+0x3: 'naked' return found in RETHUNK build
/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_IO_Delay()+0x0: 'naked' return found in RETHUNK build
/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_Get_GDT_Base()+0x3: missing int3 after ret
/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_IO_Delay()+0x0: missing int3 after ret
Skipping BTF generation for /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/sep5.ko due to unavailability of vmlinux
Done

Building pax driver ... 
Skipping BTF generation for /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/pax/pax.ko due to unavailability of vmlinux
Done

Building vtsspp driver ... 
make[1]: Entering directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/vtsspp'
Skipping BTF generation for /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/vtsspp/vtsspp.ko due to unavailability of vmlinux
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/vtsspp'
Done

Building socwatch driver ... 
Building drivers for Linux target
-n switch is deprecated. Now it does not have any effect.
/lib/modules/5.15.0-1028-aws/build will be used as the kernel build directory
Removing previously built driver and scripts from /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/drivers
mkdir: cannot create directory ‘/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/drivers’: File exists
-c /bin/gcc -l -k /lib/modules/5.15.0-1028-aws/build will be used to build the SoCWatch driver
-c /bin/gcc -l -k /lib/modules/5.15.0-1028-aws/build
************ Building socwatch2_15.ko driver ************
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/5.15.0-1028-aws/build
No module symvers file found
Using common inc dir = /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/5.15.0-1028-aws/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/5.15.0-1028-aws/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver 
make[1]: Entering directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/5.15.0-1028-aws/build M=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-1028-aws'
  CLEAN   /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/Module.symvers
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-1028-aws'
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/5.15.0-1028-aws/build
No module symvers file found
Using common inc dir = /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/5.15.0-1028-aws/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/5.15.0-1028-aws/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver 
make[1]: Entering directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/5.15.0-1028-aws/build M=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-1028-aws'
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-1028-aws'
************************************************************
KERNEL_SRC_DIR=/lib/modules/5.15.0-1028-aws/build
CPUFREQ_FIX_BACKPORTED=1
DO_SOCPERF=0
MODULE_SYMVERS_FILE=
DO_DRIVER_PROFILING=0
INCDIR_1=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
************************************************************
make -C /lib/modules/5.15.0-1028-aws/build M=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver modules PWD=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-1028-aws'
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_driver.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_hardware_io.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_output_buffer.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_tracepoint_handlers.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_collector.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_mem.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_internal.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_file_ops.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_ops_provider.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_trace_notifier_provider.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_reader.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_telem.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pmt.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_counter_list.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pci.o
  LD [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.o
  MODPOST /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/Module.symvers
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.mod.o
  LD [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko
  BTF [M] /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko
Skipping BTF generation for /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-1028-aws'
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
************ Built drivers are copied to /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/drivers directory ************
Done
mv: cannot stat 'socwatch/drivers/socwatch2_15-x32_64-5.ko': No such file or directory
make: *** [Makefile:224: default] Error 1

Failed to build the drivers

 

 

I have followed this thread: https://community.intel.com/t5/Analyzers/Unable-to-build-sepdk-driver/m-p/1369494#M21980 but it hasn't helped my case. Is there a reason why this is happening ? Can anyone point me to a fix ? Thanks.

0 Kudos
5 Replies
dark-dante
Beginner
268 Views

An update to the post above:

When I ran ./insmod-sep -q, I get the following:

ubuntu@ip-172-31-86-17:/opt/intel/oneapi/vtune/2023.0.0/sepdk/src$ ./insmod-sep -q
pax driver is loaded and owned by group "vtune" with file permissions "660".
socperf3 driver is not correctly loaded.
sep5 driver is not correctly loaded.

socwatch driver is loaded and owned by group "vtune" with file permissions "660".

 I tried to follow Vladimir_T_Intel's advice from https://community.intel.com/t5/Analyzers/Sampling-drivers-not-loaded-correctly/m-p/1184259 where I fully unloaded the driver (./rmmod-sep -s) and loaded it again (./insmod-sep). After that, this is the output:

ubuntu@ip-172-31-86-17:/opt/intel/oneapi/vtune/2023.0.0/sepdk/src$ ./rmmod-sep -s
NOTE:  super-user or "root" privileges are required in order to continue.
Please enter "root" Password: 
Removing sep5 driver from the kernel ... done.
The sep5 driver has been successfully unloaded.

Removing vtsspp driver from the kernel ... done.
The vtsspp driver has been successfully unloaded.

Removing socwatch2_15 driver from the kernel ... done.
The socwatch2_15 driver has been successfully unloaded.

Removing socperf3 driver from the kernel ... done.
The socperf3 driver has been successfully unloaded.

Attempting to stop PAX service ...
Removing pax driver from the kernel ... done.
The pax driver has been successfully unloaded.
PAX service has been stopped.
ubuntu@ip-172-31-86-17:/opt/intel/oneapi/vtune/2023.0.0/sepdk/src$ sudo ./build-driver -ni
C compiler version: 11.3.0
Make version: 4.3
Kernel version: 5.15.0-1028-aws

Cleaning workspaces ... 
Done

Building socperf driver ... 
Skipping BTF generation for /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socperf/src/socperf3.ko due to unavailability of vmlinux
Done

Building sep driver ... 
/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_Get_GDT_Base()+0x3: 'naked' return found in RETHUNK build
/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_IO_Delay()+0x0: 'naked' return found in RETHUNK build
/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_Get_GDT_Base()+0x3: missing int3 after ret
/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_IO_Delay()+0x0: missing int3 after ret
Skipping BTF generation for /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/sep5.ko due to unavailability of vmlinux
Done

Building pax driver ... 
Skipping BTF generation for /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/pax/pax.ko due to unavailability of vmlinux
Done

Building vtsspp driver ... 
make[1]: Entering directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/vtsspp'
Skipping BTF generation for /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/vtsspp/vtsspp.ko due to unavailability of vmlinux
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/vtsspp'
Done

Building socwatch driver ... 
Building drivers for Linux target
-n switch is deprecated. Now it does not have any effect.
/lib/modules/5.15.0-1028-aws/build will be used as the kernel build directory
Removing previously built driver and scripts from /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/drivers
mkdir: cannot create directory ‘/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/drivers’: File exists
-c /bin/gcc -l -k /lib/modules/5.15.0-1028-aws/build will be used to build the SoCWatch driver
-c /bin/gcc -l -k /lib/modules/5.15.0-1028-aws/build
************ Building socwatch2_15.ko driver ************
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/5.15.0-1028-aws/build
No module symvers file found
Using common inc dir = /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/5.15.0-1028-aws/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/5.15.0-1028-aws/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver 
make[1]: Entering directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/5.15.0-1028-aws/build M=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-1028-aws'
  CLEAN   /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/Module.symvers
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-1028-aws'
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/5.15.0-1028-aws/build
No module symvers file found
Using common inc dir = /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/5.15.0-1028-aws/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/5.15.0-1028-aws/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver 
make[1]: Entering directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/5.15.0-1028-aws/build M=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-1028-aws'
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-1028-aws'
************************************************************
KERNEL_SRC_DIR=/lib/modules/5.15.0-1028-aws/build
CPUFREQ_FIX_BACKPORTED=1
DO_SOCPERF=0
MODULE_SYMVERS_FILE=
DO_DRIVER_PROFILING=0
INCDIR_1=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
************************************************************
make -C /lib/modules/5.15.0-1028-aws/build M=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver modules PWD=/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-1028-aws'
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_driver.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_hardware_io.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_output_buffer.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_tracepoint_handlers.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_collector.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_mem.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_internal.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_file_ops.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_ops_provider.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_trace_notifier_provider.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_reader.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_telem.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pmt.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_counter_list.o
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pci.o
  LD [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.o
  MODPOST /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/Module.symvers
  CC [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.mod.o
  LD [M]  /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko
  BTF [M] /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko
Skipping BTF generation for /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-1028-aws'
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
************ Built drivers are copied to /opt/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/drivers directory ************
Done
mv: cannot stat 'socwatch/drivers/socwatch2_15-x32_64-5.ko': No such file or directory
make: *** [Makefile:224: default] Error 1

Failed to build the drivers

ubuntu@ip-172-31-86-17:/opt/intel/oneapi/vtune/2023.0.0/sepdk/src$ ./insmod-sep -q
pax driver is not loaded.
socperf3 driver is not loaded.
sep5 driver is not loaded.

socwatch driver is not loaded.

vtsspp driver is not loaded.

Now, no driver is loaded and it is worse than before. 

RemyaP_Intel
Moderator
204 Views

Hi,

 

Thank you for posting in Intel communities.

 

We are unable to reproduce your issue. We followed the same steps for loading the drivers in Ice Lake machine(Ubuntu 22.04). All the drivers were loaded successfully without any error messages.

 

sdp@001b21ea7043:~/intel/oneapi/vtune/2023.0.0/sepdk/src$ sudo su
root@001b21ea7043:/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src# ./insmod-sep -q
pax driver is not loaded.
socperf3 driver is not loaded.
sep5 driver is not loaded.

socwatch driver is not loaded.

vtsspp driver is not loaded.
root@001b21ea7043:/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src# ./build-driver -ni
C compiler version: 11.3.0
Make version: 4.3
Kernel version: 5.15.0-57-generic

Cleaning workspaces ...
Done

Building socperf driver ...
Skipping BTF generation for /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socperf/src/socperf3.ko due to unavailability of vmlinux
Done

Building sep driver ...
/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_Get_GDT_Base()+0x3: 'naked' return found in RETHUNK build
/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_IO_Delay()+0x0: 'naked' return found in RETHUNK build
/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_Get_GDT_Base()+0x3: missing int3 after ret
/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/sys64.o: warning: objtool: SYS_IO_Delay()+0x0: missing int3 after ret
Skipping BTF generation for /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/sep5.ko due to unavailability of vmlinux
Done

Building pax driver ...
Skipping BTF generation for /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/pax/pax.ko due to unavailability of vmlinux
Done

Building vtsspp driver ...
make[1]: Entering directory '/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/vtsspp'
Skipping BTF generation for /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/vtsspp/vtsspp.ko due to unavailability of vmlinux
make[1]: Leaving directory '/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/vtsspp'
Done

Building socwatch driver ...
Building drivers for Linux target
-n switch is deprecated. Now it does not have any effect.
/lib/modules/5.15.0-57-generic/build will be used as the kernel build directory
Removing previously built driver and scripts from /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/drivers
mkdir: cannot create directory ‘/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/drivers’: File exists
-c /bin/gcc -l -k /lib/modules/5.15.0-57-generic/build will be used to build the SoCWatch driver
-c /bin/gcc -l -k /lib/modules/5.15.0-57-generic/build
************ Building socwatch2_15.ko driver ************
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/5.15.0-57-generic/build
No module symvers file found
Using common inc dir = /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/5.15.0-57-generic/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/5.15.0-57-generic/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver
make[1]: Entering directory '/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/5.15.0-57-generic/build M=/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-57-generic'
  CLEAN   /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/Module.symvers
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-57-generic'
make[1]: Leaving directory '/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/5.15.0-57-generic/build
No module symvers file found
Using common inc dir = /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/5.15.0-57-generic/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/5.15.0-57-generic/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver
make[1]: Entering directory '/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/5.15.0-57-generic/build M=/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-57-generic'
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-57-generic'
************************************************************
KERNEL_SRC_DIR=/lib/modules/5.15.0-57-generic/build
CPUFREQ_FIX_BACKPORTED=1
DO_SOCPERF=0
MODULE_SYMVERS_FILE=
DO_DRIVER_PROFILING=0
INCDIR_1=/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
************************************************************
make -C /lib/modules/5.15.0-57-generic/build M=/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver modules PWD=/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver
make[2]: Entering directory '/usr/src/linux-headers-5.15.0-57-generic'
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_driver.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_hardware_io.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_output_buffer.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_tracepoint_handlers.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_collector.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_mem.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_internal.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_file_ops.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_ops_provider.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_trace_notifier_provider.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_reader.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_telem.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pmt.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_counter_list.o
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pci.o
  LD [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.o
  MODPOST /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/Module.symvers
  CC [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.mod.o
  LD [M]  /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko
  BTF [M] /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko
Skipping BTF generation for /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.15.0-57-generic'
make[1]: Leaving directory '/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/socwatch_driver'
************ Built drivers are copied to /home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src/socwatch/drivers directory ************
Done

Done building the drivers

root@001b21ea7043:/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src# ./insmod-sep
PYTHON is set to python3
Detecting Secure Boot status...
Secure Boot is disabled
---------------------    Loading PAX driver    ---------------------
Detecting Secure Boot status...
Secure Boot is disabled
Checking for PMU arbitration service (PAX) ... not detected.
Attempting to start PAX service ...
Executing: insmod ./pax/pax-x32_64-5.15.0-57-genericsmp.ko
Setting group ownership of devices to group "vtune" ... done.
Setting file permissions on devices to "660" ... done.
The pax driver has been successfully loaded.

---------------------  Loading SOCPERF driver  ---------------------
Detecting Secure Boot status...
Secure Boot is disabled
Checking for socperf driver ... not detected.
Attempting to start socperf service ...
Executing: insmod ./socperf/src/socperf3-x32_64-5.15.0-57-genericsmp.ko
Setting group ownership of devices to group "vtune" ... done.
Setting file permissions on devices to "660" ... done.
The socperf3 driver has been successfully loaded.

---------------------    Loading SEP driver    ---------------------
Executing: insmod ./sep5-x32_64-5.15.0-57-genericsmp.ko sym_lookup_func_addr="ffffffff927984e0"
Setting group ownership of devices to group "vtune" ... done.
Setting file permissions on devices to "660" ... done.
The sep5 driver has been successfully loaded.

---------------------  Loading VTSSPP driver  ---------------------
Checking for vtsspp driver ... not detected.
Executing: insmod ./vtsspp/vtsspp-x32_64-5.15.0-57-genericsmp.ko gid=1003 mode=0660 ksyms="ffffffff927984e0"
The vtsspp driver has been successfully loaded.

--------------------- Loading SOCWATCH driver ---------------------
Checking for socwatch driver ... not detected.

Executing: insmod ./socwatch/drivers/socwatch2_15-x32_64-5.15.0-57-genericsmp.ko

Setting group ownership of device file to group "vtune" ... done.
Setting file permissions of device file to "660" ... done.

The socwatch driver has been successfully loaded.

NOTE:

The driver is accessible only to users under the group vtune.
Please add the users to the group 'vtune' to use the tool.

To change driver access group, reinstall the driver using -g <desired_group> option.


NOTE:
The driver is accessible only to users under the group vtune.
Please add the users to the group vtune to use the tool.

To change driver access group, reload the driver using -g <desired_group> option.

root@001b21ea7043:/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src# ./insmod-sep -q
pax driver is loaded and owned by group "vtune" with file permissions "660".
socperf3 driver is loaded and owned by group "vtune" with file permissions "660".
sep5 driver is loaded and owned by group "vtune" with file permissions "660".

socwatch driver is loaded and owned by group "vtune" with file permissions "660".

vtsspp driver is loaded and owned by group "vtune" with file permissions "660".
root@001b21ea7043:/home/sdp/intel/oneapi/vtune/2023.0.0/sepdk/src#

 

We assume, the reason could be because of using the AWS EC2 instance. Could you please try loading the drivers without using EC2 instance and let us know the results

 

--

Regards,

Remya Premdas

 

dark-dante
Beginner
160 Views

Unfortunately, I need to use the EC2 Instance to access the a system with an Intel Xeon. I have tried this with both the r5.metal and r6in.2xlarge instances. Both fail to install the drivers properly. 

RemyaP_Intel
Moderator
101 Views

Hi,


Please follow the steps given in the below link and see if that resolves your issue.


https://www.intel.com/content/www/us/en/develop/documentation/vtune-cookbook/top/configuration-recip...



Regards,

Remya Premdas


RemyaP_Intel
Moderator
29 Views

Hi,


We haven't received any response from your end. Is your issue resolved?


Regards,

Remya Premdas


Reply