- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We use vtune in oneapi versiion 2023.1.0 to profile our prgoram on Ubuntu 22.04. We installed sepdk driver. But when we use it to profile our program in architecture mode, it goes to crash randomly. I will crash 4 or 5 times everyday. it is very boring.
driver build & install :
(base) pscl01@pscl01-NF5280M6:~/intel/oneapi/vtune/latest/sepdk/src$ ./build-driver
C compiler to use: [ /bin/gcc ] /bin/gcc-11
C compiler version: 11.3.0
Make command to use: [ /bin/make ]
Make version: 4.3
Kernel source directory: [ /lib/modules/5.19.0-43-generic/build ]
Kernel version: 5.19.0-43-generic
Cleaning workspaces ...
Done
Building socperf driver ...
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc-11 (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
Skipping BTF generation for /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socperf/src/socperf3.ko due to unavailability of vmlinux
Done
Building sep driver ...
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc-11 (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/sys64.o: warning: objtool: SYS_Get_GDT_Base+0x3: 'naked' return found in RETHUNK build
/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/sys64.o: warning: objtool: SYS_IO_Delay+0x0: 'naked' return found in RETHUNK build
/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/sys64.o: warning: objtool: SYS_Get_GDT_Base+0x3: missing int3 after ret
/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/sys64.o: warning: objtool: SYS_IO_Delay+0x0: missing int3 after ret
Skipping BTF generation for /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/sep5.ko due to unavailability of vmlinux
Done
Building pax driver ...
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc-11 (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
Skipping BTF generation for /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/pax/pax.ko due to unavailability of vmlinux
Done
Building vtsspp driver ...
make[1]: Entering directory '/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/vtsspp'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc-11 (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
Skipping BTF generation for /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/vtsspp/vtsspp.ko due to unavailability of vmlinux
make[1]: Leaving directory '/home/pscl01/intel/oneapi/vtune/2023.1.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.19.0-43-generic/build will be used as the kernel build directory
Removing previously built driver and scripts from /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/drivers
mkdir: cannot create directory ‘/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/drivers’: File exists
-c /bin/gcc-11 -l -k /lib/modules/5.19.0-43-generic/build will be used to build the SoCWatch driver
-c /bin/gcc-11 -l -k /lib/modules/5.19.0-43-generic/build
************ Building socwatch2_15-x32_64-5.19.0-43-genericsmp.ko driver ************
Using C compiler = /bin/gcc-11
Using kernel build dir = /lib/modules/5.19.0-43-generic/build
No module symvers file found
Using common inc dir = /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/5.19.0-43-generic/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/5.19.0-43-generic/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver
make[1]: Entering directory '/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/5.19.0-43-generic/build M=/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-43-generic'
CLEAN /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/Module.symvers
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-43-generic'
make[1]: Leaving directory '/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver'
Using C compiler = /bin/gcc-11
Using kernel build dir = /lib/modules/5.19.0-43-generic/build
No module symvers file found
Using common inc dir = /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/5.19.0-43-generic/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/5.19.0-43-generic/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver
make[1]: Entering directory '/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/5.19.0-43-generic/build M=/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-43-generic'
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-43-generic'
************************************************************
KERNEL_SRC_DIR=/lib/modules/5.19.0-43-generic/build
CPUFREQ_FIX_BACKPORTED=1
DO_SOCPERF=0
MODULE_SYMVERS_FILE=
DO_DRIVER_PROFILING=0
INCDIR_1=/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/../common/include
************************************************************
make -C /lib/modules/5.19.0-43-generic/build M=/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver modules PWD=/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver
make[2]: Entering directory '/usr/src/linux-headers-5.19.0-43-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: gcc-11 (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_driver.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_hardware_io.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_output_buffer.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_tracepoint_handlers.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_collector.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_mem.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_internal.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_file_ops.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_ops_provider.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_trace_notifier_provider.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_reader.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_telem.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pmt.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_counter_list.o
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pci.o
LD [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.o
MODPOST /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/Module.symvers
CC [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.mod.o
LD [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko
BTF [M] /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko
Skipping BTF generation for /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-5.19.0-43-generic'
make[1]: Leaving directory '/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/socwatch_driver'
************ Built drivers are copied to /home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src/socwatch/drivers directory ************
Done
Done building the drivers
(base) pscl01@pscl01-NF5280M6:~/intel/oneapi/vtune/latest/sepdk/src$ sudo su
[sudo] password for pscl01:
root@pscl01-NF5280M6:/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src# ./insmod-sep -r -g pscl01
PYTHON is set to python3
Warning: the following driver(s) were not found loaded in the kernel: sep5.
Warning: no vtsspp driver was found loaded in the kernel.
Warning: no socwatch driver was found loaded in the kernel.
Warning: the following driver(s) were not found loaded in the kernel: socperf3.
The PAX service is not loaded anymore.
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.19.0-43-genericsmp.ko
Setting group ownership of devices to group "pscl01" ... 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.19.0-43-genericsmp.ko
Setting group ownership of devices to group "pscl01" ... 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.19.0-43-genericsmp.ko sym_lookup_func_addr="ffffffff867b8800"
Setting group ownership of devices to group "pscl01" ... 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.19.0-43-genericsmp.ko gid=1000 mode=0660 ksyms="ffffffff867b8800"
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.19.0-43-genericsmp.ko
Setting group ownership of device file to group "pscl01" ... done.
Setting file permissions of device file to "660" ... done.
The socwatch2_15-x32_64-5.19.0-43-genericsmp driver has been successfully loaded.
NOTE:
The driver is accessible only to users under the group 'pscl01'.
Please add the users to the group 'pscl01' 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 pscl01.
Please add the users to the group pscl01 to use the tool.
To change driver access group, reload the driver using -g <desired_group> option.
root@pscl01-NF5280M6:/home/pscl01/intel/oneapi/vtune/2023.1.0/sepdk/src# exit
exit
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities.
Based on this, and our discussion about creating a priority ticket if needed, I am going ahead and closing this case for now.
Please feel free to contact us further if you need any assistance from our side.
Thanks & Regards,
Remya Premdas
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page