我可以通过另一台电脑进行 ssh,但无法获取 Debian 的登录页面,启动似乎已停止。我怀疑英特尔驱动程序Intel vtune
中的“”oneAPI
造成了混乱,但我不知道如何找到解决方法。
sep5_30 : Driver loading ...
在目录中/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp
,我已经编译了./build-driver
/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp| sudo ./build-driver
sudo ./build-driver
C compiler to use: [ /bin/gcc ]
C compiler version: 8.3.0
Make command to use: [ /bin/make ]
Make version: 4.2.1
Kernel source directory: [ /lib/modules/4.19.0-18-amd64/build ]
Kernel version: 4.19.0-18-amd64
Cleaning workspaces ...
Done
Building socperf driver ...
Done
Building sep driver ...
/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/.tmp_sys64.o: warning: objtool: .text+0x11: unreachable instruction
Done
Building pax driver ...
Done
Building vtsspp driver ...
make[1]: Entering directory '/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp'
make[2]: Entering directory '/usr/src/linux-headers-4.19.0-18-amd64'
TEST VTSS_AUTOCONF_ACCESS_OK_TWO_ARGS=no
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.0.0/sepdk/src/vtsspp/cmd.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/dsa.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/ipt.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/kpti.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/ksyms.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/lbr.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/mmap.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/modcfg.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/module.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/mpool.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/nmiwd.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/pcb.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/pebs.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/pmi.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/pmu.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/probe.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/procfs.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/record.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/sched.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/stack.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/target.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/task.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/task_map.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/transport.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/unwind.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/user_vm.o
LD [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/vtsspp.o
Building modules, stage 2.
MODPOST 1 modules
CC /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/vtsspp.mod.o
LD [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/vtsspp.ko
make[2]: Leaving directory '/usr/src/linux-headers-4.19.0-18-amd64'
cp -f vtsspp.ko vtsspp-x32_64-4.19.0-18-amd64smp.ko
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2022.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/4.19.0-18-amd64/build will be used as the kernel build directory
Removing previously built driver and scripts from /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/drivers
mkdir: cannot create directory ‘/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/drivers’: File exists
-c /bin/gcc -l -k /lib/modules/4.19.0-18-amd64/build will be used to build the SoCWatch driver
-c /bin/gcc -l -k /lib/modules/4.19.0-18-amd64/build
************ Building socwatch2_15.ko driver ************
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/4.19.0-18-amd64/build
No module symvers file found
Using common inc dir = /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/4.19.0-18-amd64/build CPUFREQ_FIX_BACKPORTED=0 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver
make[1]: Entering directory '/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/4.19.0-18-amd64/build M=/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-4.19.0-18-amd64'
CLEAN /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/.tmp_versions
CLEAN /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/Module.symvers
make[2]: Leaving directory '/usr/src/linux-headers-4.19.0-18-amd64'
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver'
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/4.19.0-18-amd64/build
No module symvers file found
Using common inc dir = /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/4.19.0-18-amd64/build CPUFREQ_FIX_BACKPORTED=0 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver
make[1]: Entering directory '/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/4.19.0-18-amd64/build M=/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-4.19.0-18-amd64'
make[2]: Leaving directory '/usr/src/linux-headers-4.19.0-18-amd64'
************************************************************
KERNEL_SRC_DIR=/lib/modules/4.19.0-18-amd64/build
CPUFREQ_FIX_BACKPORTED=0
DO_SOCPERF=0
MODULE_SYMVERS_FILE=
DO_DRIVER_PROFILING=0
INCDIR_1=/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/../common/include
************************************************************
make -C /lib/modules/4.19.0-18-amd64/build M=/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver modules PWD=/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver
make[2]: Entering directory '/usr/src/linux-headers-4.19.0-18-amd64'
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_driver.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_hardware_io.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_output_buffer.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_tracepoint_handlers.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_collector.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_mem.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_internal.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_file_ops.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_ops_provider.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_trace_notifier_provider.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_reader.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_telem.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pmt.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_counter_list.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/./src/sw_pci.o
LD [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.o
Building modules, stage 2.
MODPOST 1 modules
CC /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.mod.o
LD [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver/socwatch2_15.ko
make[2]: Leaving directory '/usr/src/linux-headers-4.19.0-18-amd64'
make[1]: Leaving directory '/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/socwatch_driver'
************ Built drivers are copied to /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/socwatch/drivers directory ************
Done
mv: target 'socwatch2_15-x32_64-4-x32_64-4.19.0-18-amd64smp.ko' is not a directory
make: *** [Makefile:224: default] Error 1
Failed to build the drivers
|fab@pablo|22:57|/opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp
我)我不知道为选项 --install-dir 设置哪个目录:我认为这应该位于 /lib/modules 中,但不知道确切的位置。
II)如果我这样做:
$ /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp| sudo make
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-18-amd64'
TEST VTSS_AUTOCONF_ACCESS_OK_TWO_ARGS=no
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.0.0/sepdk/src/vtsspp/cmd.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/dsa.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/ipt.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/kpti.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/ksyms.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/lbr.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/mmap.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/modcfg.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/module.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/mpool.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/nmiwd.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/pcb.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/pebs.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/pmi.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/pmu.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/probe.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/procfs.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/record.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/sched.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/stack.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/target.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/task.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/task_map.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/transport.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/unwind.o
CC [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/user_vm.o
LD [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/vtsspp.o
Building modules, stage 2.
MODPOST 1 modules
CC /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/vtsspp.mod.o
LD [M] /opt/intel/oneapi/vtune/2022.0.0/sepdk/src/vtsspp/vtsspp.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-18-amd64'
cp -f vtsspp.ko vtsspp-x32_64-4.19.0-18-amd64smp.ko
$ sudo make install
似乎什么也没做
III)但是安装后,我有:
./insmod-vtsspp
NOTE: super-user or "root" privileges are required in order to continue.
Please enter "root" Password:
Executing: insmod ./vtsspp-x32_64-4.19.0-18-amd64smp.ko gid=0 mode=0660 ksyms="ffffffff8a513710"
insmod: ERROR: could not insert module ./vtsspp-x32_64-4.19.0-18-amd64smp.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.
$ uname -a
Linux pablo 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux
$ ls -l /lib/modules
drwxr-xr-x 1 root 382 Jul 27 2021 4.19.0-17-amd64
drwxr-xr-x 1 root 382 Feb 9 21:51 4.19.0-18-amd64
ps:您可以在上面的附图中看到该消息。
答案1
通过执行以下操作找到最终解决方案:
# cd /opt/intel/oneapi/vtune/2022.0.0/sepdk/src
# ./boot-script -u