[root@85-132-83-aliyun-core /]# stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'
Pass 1: parsed user script and 470 library scripts using 126068virt/41064res/3312shr/37828data kb, in 370usr/30sys/392real ms.
WARNING: cannot find module nfs debuginfo: No DWARF information found [man warning::debuginfo]
WARNING: cannot find module sunrpc debuginfo: No DWARF information found [man warning::debuginfo]
WARNING: cannot find module nfs debuginfo: No DWARF information found [man warning::debuginfo]
Pass 2: analyzed script: 1 probe, 1 function, 7 embeds, 0 globals using 257340virt/173152res/6216shr/167000data kb, in 2160usr/350sys/2520real ms.
Pass 3: using cached /root/.systemtap/cache/7c/stap_7c0bb936c8056e80320a86692159019e_2696.c
Pass 4: using cached /root/.systemtap/cache/7c/stap_7c0bb936c8056e80320a86692159019e_2696.ko
Pass 5: starting run.
ERROR: module version mismatch (#1 SMP Tue Jul 4 13:29:22 UTC 2017 vs #1 SMP Tue Jul 4 15:04:05 UTC 2017), release 3.10.0-514.26.2.el7.x86_64
WARNING: /usr/bin/staprun exited with status: 1
Pass 5: run completed in 0usr/20sys/47real ms.
Pass 5: run failed. [man error::pass5]
[root@85-132-83-aliyun-core /]#
目前执行stap 命令报错:module version mismatch
docker 里的版本信息:
[root@85-132-83-aliyun-core /]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[root@85-132-83-aliyun-core /]# uname -r
3.10.0-514.26.2.el7.x86_64
[root@85-132-83-aliyun-core /]#
宿主机的版本信息:
[root@85-132-83-aliyun-core XX]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[root@85-132-83-aliyun-core XX]# uname -r
3.10.0-514.26.2.el7.x86_64
[root@85-132-83-aliyun-core XX]#
内核开发调试包也都是3.10.0-514.26.2.el7.x86_64对应的rpm,这个是哪里的问题