请各位帮忙看看原因:) 多谢。
运行环境: Centos7
内核版本: 3.10.0-229.el7.x86_64
运行命令: stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'
出错信息:
Pass 1: parsed user script and 465 library scripts using 212868virt/44160res/2824shr/41600data kb, in 140usr/0sys/152real ms.
Pass 2: analyzed script: 1 probe, 1 function, 7 embeds, 0 globals using 334808virt/167324res/4092shr/163540data kb, in 850usr/180sys/1024real ms.
Pass 3: using cached /root/.systemtap/cache/91/stap_910821b500037ab6493098235f73ae89_2677.c
Pass 4: using cached /root/.systemtap/cache/91/stap_910821b500037ab6493098235f73ae89_2677.ko
Pass 5: starting run.
ERROR: module version mismatch (#1 SMP Mon Mar 9 16:14:50 CDT 2015 vs #1 SMP Fri Mar 6 11:36:42 UTC 2015), release 3.10.0-229.el7.x86_64
WARNING: /opt/stap/bin/staprun exited with status: 1
Pass 5: run completed in 0usr/10sys/44real ms.
Pass 5: run failed. [man error::pass5]
安装的依赖包:
* kernel-debuginfo-3.10.0-229.el7.x86_64.rpm
* kernel-debuginfo-common-x86_64-3.10.0-229.el7.x86_64.rpm
* kernel-devel-3.10.0-229.el7.x86_64.rpm
* yum install systemtap