- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I have installed VTune 2022.2.0 using the Standalone/Offline installer on Ubuntu 18.04, kernel version 5.4.0-107-generic.
After many attempts, I'm unable to install the vtsspp driver.
1. I attempted to build Sampling Drivers normally...
Output from attempting to build all the Sampling Drivers:
ubuntu@ubuntu:/opt/intel/oneapi/vtune/2022.2.0/sepdk/src$ sudo ./build-driver
[sudo] password for ubuntu:
C compiler to use: [ /usr/bin//gcc ]
C compiler version: 7.5.0
Make command to use: [ /usr/bin//make ]
Make version: 4.1
Kernel source directory: [ /lib/modules/5.4.0-107-generic/build ]
Kernel version: 5.4.0-107-generic
Cleaning workspaces ...
Done
Building socperf driver ...
Done
Building sep driver ...
Done
Building pax driver ...
Done
Building vtsspp driver ...
make[1]: Entering directory '/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp'
make[2]: Entering directory '/usr/src/linux-headers-5.4.0-107-generic'
TEST VTSS_AUTOCONF_ACCESS_OK_TWO_ARGS=yes
TEST VTSS_AUTOCONF_CPULIST_SCNPRINTF=no
TEST VTSS_AUTOCONF_CURRENT_KUID_KGID=yes
TEST VTSS_AUTOCONF_DUMP_TRACE_HAVE_BP=no
TEST VTSS_AUTOCONF_FLUSH_TLB_INFO=yes
TEST VTSS_AUTOCONF_FOR_EACH_KERNEL_TRACEPOINT=yes
TEST VTSS_AUTOCONF_HLIST_NODE_ITER=no
TEST VTSS_AUTOCONF_INLINE_COPY_FROM_USER=no
TEST VTSS_AUTOCONF_JPROBE=no
TEST VTSS_AUTOCONF_KAISER=no
TEST VTSS_AUTOCONF_KERNEL_HEADERS=yes
TEST VTSS_AUTOCONF_KERNEL_READ_WRITE=yes
TEST VTSS_AUTOCONF_KMAP_ATOMIC_ONE_ARG=yes
TEST VTSS_AUTOCONF_KRETPROBE_INSTANCE_TASK_ARG=yes
TEST VTSS_AUTOCONF_KTIME_EQUAL=no
TEST VTSS_AUTOCONF_KTIME_GET_TS64=yes
TEST VTSS_AUTOCONF_MMAP_LOCK=no
TEST VTSS_AUTOCONF_MODULE_CORE_LAYOUT=yes
TEST VTSS_AUTOCONF_MODULE_MUTEX=yes
TEST VTSS_AUTOCONF_NMI_UACCESS=yes
TEST VTSS_AUTOCONF_PREEMPT_NOTIFIER_CONTROL=yes
TEST VTSS_AUTOCONF_PROCFS_OPS=no
TEST VTSS_AUTOCONF_PROCFS_OWNER=no
TEST VTSS_AUTOCONF_PROCFS_SET_USER=yes
TEST VTSS_AUTOCONF_PROCFS_SUBTREE=yes
TEST VTSS_AUTOCONF_SET_FS=yes
TEST VTSS_AUTOCONF_SI_MEM_AVAILABLE=yes
TEST VTSS_AUTOCONF_STACKTRACE_OPS=no
TEST VTSS_AUTOCONF_STACKTRACE_OPS_ADDRESS_INT=no
TEST VTSS_AUTOCONF_STACKTRACE_OPS_WALK_STACK=no
TEST VTSS_AUTOCONF_STACKTRACE_OPS_WALK_STACK_TASK_ARG=no
TEST VTSS_AUTOCONF_STACKTRACE_OPS_WARNING=no
TEST VTSS_AUTOCONF_SYSTEM_UNBOUND_WQ=yes
TEST VTSS_AUTOCONF_TASK_STRUCT_HIDDEN_STATE=no
TEST VTSS_AUTOCONF_TIMER_SETUP=yes
TEST VTSS_AUTOCONF_TRACE_SCHED_SWITCH_NO_ARG=no
TEST VTSS_AUTOCONF_TRACE_SCHED_SWITCH_PREEMPT_ARG=yes
TEST VTSS_AUTOCONF_TRACE_SCHED_SWITCH_RQ_ARG=no
TEST VTSS_AUTOCONF_TRACEPOINT_PROBE=yes
TEST VTSS_AUTOCONF_USER_MODE_VM=no
TEST VTSS_AUTOCONF_VSYSCALL_ADDR=yes
TEST VTSS_AUTOCONF_X86_UNIREGS=yes
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/cmd.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/dsa.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/ipt.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/kmem.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/kpti.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/ksyms.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/lbr.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/mmap.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/modcfg.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/module.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/nmiwd.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/pcb.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/pebs.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/pmi.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/pmu.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/probe.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/procfs.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/record.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/sched.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/stack.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/target.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/task.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/task_map.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/transport.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/unwind.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/user_vm.o
LD [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/vtsspp.o
Building modules, stage 2.
MODPOST 1 modules
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/vtsspp.mod.o
LD [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/vtsspp/vtsspp.ko
make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-107-generic'
cp -f vtsspp.ko vtsspp-x32_64-5.4.0-107-genericsmp.ko
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2022.2.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.4.0-107-generic/build will be used as the kernel build directory
Removing previously built driver and scripts from /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/drivers
mkdir: cannot create directory ‘/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/drivers’: File exists
-c /usr/bin//gcc -l -k /lib/modules/5.4.0-107-generic/build will be used to build the SoCWatch driver
-c /usr/bin//gcc -l -k /lib/modules/5.4.0-107-generic/build
************ Building socwatch2_15.ko driver ************
Using C compiler = /usr/bin//gcc
Using kernel build dir = /lib/modules/5.4.0-107-generic/build
No module symvers file found
Using common inc dir = /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/5.4.0-107-generic/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/5.4.0-107-generic/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver
make[1]: Entering directory '/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/5.4.0-107-generic/build M=/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-5.4.0-107-generic'
CLEAN /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/Module.symvers
make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-107-generic'
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver'
Using C compiler = /usr/bin//gcc
Using kernel build dir = /lib/modules/5.4.0-107-generic/build
No module symvers file found
Using common inc dir = /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/5.4.0-107-generic/build/include/linux/cpufreq.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/5.4.0-107-generic/build CPUFREQ_FIX_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver
make[1]: Entering directory '/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/5.4.0-107-generic/build M=/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-5.4.0-107-generic'
make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-107-generic'
************************************************************
KERNEL_SRC_DIR=/lib/modules/5.4.0-107-generic/build
CPUFREQ_FIX_BACKPORTED=1
DO_SOCPERF=0
MODULE_SYMVERS_FILE=
DO_DRIVER_PROFILING=0
INCDIR_1=/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/../common/include
************************************************************
make -C /lib/modules/5.4.0-107-generic/build M=/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver modules PWD=/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver
make[2]: Entering directory '/usr/src/linux-headers-5.4.0-107-generic'
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_driver.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_hardware_io.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_output_buffer.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_tracepoint_handlers.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_collector.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_mem.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_internal.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_file_ops.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_ops_provider.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_trace_notifier_provider.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_reader.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_telem.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pmt.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_counter_list.o
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pci.o
LD [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.o
Building modules, stage 2.
MODPOST 1 modules
CC [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.mod.o
LD [M] /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko
make[2]: Leaving directory '/usr/src/linux-headers-5.4.0-107-generic'
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/socwatch_driver'
************ Built drivers are copied to /opt/intel/oneapi/vtune/2022.2.0/sepdk/src/socwatch/drivers directory ************
Done
Done building the drivers
ubuntu@ubuntu:/opt/intel/oneapi/vtune/2022.2.0/sepdk/src$ sudo ./rmmod-sep
Warning: the following driver(s) were not found loaded in the kernel: sep5.
ubuntu@ubuntu:/opt/intel/oneapi/vtune/2022.2.0/sepdk/src$ sudo ./insmod-sep
PYTHON is set to python3
--------------------- Loading PAX driver ---------------------
Checking for PMU arbitration service (PAX) ... not detected.
Attempting to start PAX service ...
Executing: insmod ./pax/pax-x32_64-5.4.0-107-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 ---------------------
Checking for socperf driver ... not detected.
Attempting to start socperf service ...
Executing: insmod ./socperf/src/socperf3-x32_64-5.4.0-107-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.4.0-107-genericsmp.ko
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.4.0-107-genericsmp.ko gid=1001 mode=0660 ksyms="ffffffff8a754a60"
insmod: ERROR: could not insert module ./vtsspp/vtsspp-x32_64-5.4.0-107-genericsmp.ko: Invalid parameters
Error: vtsspp driver failed to load!
You may need to build vtsspp driver for your kernel.
Please see the vtsspp driver README for instructions.
--------------------- Loading SOCWATCH driver ---------------------
Checking for socwatch driver ... not detected.
Executing: insmod ./socwatch/drivers/socwatch2_15-x32_64-5.4.0-107-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.
Result #1 is that the vtsspp driver failed to load.
2. I followed the instructions in .../sepdk/src/vtsspp/README.txt
Output from attempting to build the vtsspp driver for my kernel:
ubuntu@ubuntu:/opt/intel/oneapi/vtune/2022.2.0/sepdk/src$ sudo ./vtsspp/build-driver
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/5.4.0-107-generic/build ]
./vtsspp/build-driver: 334: cd: can't cd to ./vtsspp
Building socperf driver ...
Done
Building sep driver ...
Done
Building pax driver ...
Done
Directory to install vtsspp driver: [ /opt/intel/oneapi/vtune/2022.2.0/sepdk/src ]
ubuntu@ubuntu:/opt/intel/oneapi/vtune/2022.2.0/sepdk/src$ sudo ./vtsspp/rmmod-vtsspp
Warning: no vtsspp driver was found loaded in the kernel.
ubuntu@ubuntu:/opt/intel/oneapi/vtune/2022.2.0/sepdk/src$ sudo ./vtsspp/insmod-vtsspp
Executing: insmod ./vtsspp/vtsspp-x32_64-5.4.0-107-genericsmp.ko gid=0 mode=0660 ksyms="ffffffff8a754a60"
insmod: ERROR: could not insert module ./vtsspp/vtsspp-x32_64-5.4.0-107-genericsmp.ko: Invalid parameters
Error: vtsspp driver failed to load!
You may need to build vtsspp driver for your kernel.
Please see the vtsspp driver README for instructions.
ubuntu@ubuntu:/opt/intel/oneapi/vtune/2022.2.0/sepdk/src$ sudo ./vtsspp/insmod-vtsspp -g vtune -r
Warning: no vtsspp driver was found loaded in the kernel.
Executing: insmod ./vtsspp/vtsspp-x32_64-5.4.0-107-genericsmp.ko gid=1001 mode=0660 ksyms="ffffffff8a754a60"
insmod: ERROR: could not insert module ./vtsspp/vtsspp-x32_64-5.4.0-107-genericsmp.ko: Invalid parameters
Error: vtsspp driver failed to load!
You may need to build vtsspp driver for your kernel.
Please see the vtsspp driver README for instructions.
Result #2 is that the vtsspp driver failed to load, again.
I have a VTune group that contains both my normal ubuntu user and the root user:
ubuntu@ubuntu:$ grep '^vtune:' /etc/group
vtune:x:1001:ubuntu,root
I've run the vtune-self-checker and attached the output log.txt file to this post.
Please help, I'm at a loss as to what I can try next.
Thank you.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have exactly the same problem with ubuntu 20.04.
kernel 5.4.0-135
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Similar issue wmWare Ubuntu 22.04.1 LTS , build was successfull and install:
sudo ./insmod-sep -r -g vtune
...everything before success and then..
--------------------- Loading VTSSPP driver ---------------------
Checking for vtsspp driver ... not detected.
Executing: insmod ./vtsspp/vtsspp-x32_64-5.15.0-57-genericsmp.ko gid=1001 mode=0660 ksyms="ffffffffa87984e0"
insmod: ERROR: could not insert module ./vtsspp/vtsspp-x32_64-5.15.0-57-genericsmp.ko: Invalid parameters
Error: vtsspp driver failed to load!
You may need to build vtsspp driver for your kernel.
Please see the vtsspp driver README for instructions.
--------------------- Loading SOCWATCH driver ---------------------
Checking for socwatch driver ... not detected.
./socwatch/insmod-socwatch: 312: [: ./socwatch/drivers/socwatch2_15-x32_64-5.15.0-56-genericsmp.ko: unexpected operator
Executing: insmod ./socwatch/drivers/socwatch2_15-x32_64-5.15.0-56-genericsmp.ko
socwatch2_15-x32_64-5.15.0-57-genericsmp.ko
insmod: ERROR: could not insert module ./socwatch/drivers/socwatch2_15-x32_64-5.15.0-56-genericsmp.ko: Invalid parameters
Error: socwatch driver failed to load!
You may need to build socwatch driver for your kernel.
Please see the socwatch driver README for instructions.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page