【环境信息】
openeulerversion=openEuler-23.09
compiletime=2023-08-23-17-31-23
gccversion=12.3.1-7.oe2309
kernelversion=6.4.0-1.0.1.5.oe2309
openjdkversion=1.8.0.382.b05-0.oe2309
软件信息:
systemtap-4.5-2.oe2203
【问题复现步骤】
1.dnf install -y kernel-devel systemtap-stap-exporter systemtap*
2.systemctl start stap-exporter.service
3.systemctl status stap-exporter.service
出现概率(是否必现,概率性错误):必现
【预期结果】
服务start成功,没有错误日志
【实际结果】
服务启动后,查询状态有报错信息
Hi zhangpanting, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Computing, and any of the maintainers: @openeuler-robot , @liqingqing_1229 , @abushwang , @wangbin , @SuperSix173 , @Juyin
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
怀疑是kernel、kernel-devel包不配套导致的
uname -r看一下内核版本
rpm -qa |grep kernel看一下内核相关包的版本
@zhangpanting
@zhangpanting 请确认下环境
使用rc1的包没有出现这个情况
服务日志输出:
用新安装的rc2 机器验证,启动服务后有下面报错
、
操作流程:
@swf504
差异分析报告 | |||
---|---|---|---|
版本变更原因 | 版本升级 | 变更后版本 | 4.9 |
差异分类 | 差异项 | 差异说明 | 影响评估与适配方案 |
特性变化 | 新增特性/删除特性/变更特性实现 | 新增特性:支持64bit RISC-V架构 | 无影响 |
配置文件 | 新增/变更/删除配置项 | 无 | |
ABI差异 | 新增/变更/删除API | 新增API:支持rhel6,新增hlist_add_tail_rcu接口 | 无影响 |
新增/变更/删除结构体 | 无 | ||
命令行/功能 | 新增/变更/删除命令 | 无 | |
新增/变更/删除命令选项 | 新增命令选项:dtrace新增-o选项支持指定cpp的输出文件;增加--sign-module=PATH选项用于stap服务器使用 ;增加stap --language-server命令启动语言服务器 | 无影响 | |
新增/变更/删除日志输出 | 无 | ||
SPEC文件 | 新增/变更/删除 编译依赖、安装依赖、依赖的软件版本变更 | ||
删除依赖:runtime-virthost删除依赖libvirt >= 1.0.2 | 无影响,openEuler不支持构建runtime-virthost包 | ||
变更依赖:支持python 3.10 | 无影响 | ||
新增子包:新增systemtap-jupyter子包,用于在本地或容器内编译、运行jupyter kernel | 无影响 | ||
拆分软件包方式变更 | 无 | ||
其他 | 新增功能 | 新增语言服务器功能;新增Jupyter kernel:Isystemtap;使用bunsen测试套件日志分析包替代postgresql webdb | 无影响 |
执行 dnf install -y kernel-devel systemtap*
ystemctl start stap-exporter.service
systemctl status stap-exporter.service
systemctl stop stap-exporter.service
systemctl status stap-exporter.service
查询状态有个报错信息
@langfei
该问题确认为非问题,以上报错原因是先执行systemctl start stap-exporter.service后,stap-exporter服务正在编译ko阶段(status命令可以看到还在pass3),如下图:
若此时再去执行systemctl stop stap-exporter.service命令,又会强制打断编译ko流程,所以出现编译报错如下:
signal: 15 即表示进程被中断。
验证如下:
若start命令后等待一段时间后,再去stop,就不会出现报错。
[root@openEuler ~]# systemctl start stap-exporter.service
[root@openEuler ~]# systemctl status stap-exporter.service
● stap-exporter.service - Export metrics from designated systemtap scripts to Prometheus.
Loaded: loaded (/usr/lib/systemd/system/stap-exporter.service; disabled; preset: disabled)
Active: active (running) since Mon 2023-09-18 16:21:16 CST; 4s ago
Main PID: 6569 (stap-exporter)
Tasks: 6 (limit: 17878)
Memory: 106.5M
CGroup: /system.slice/stap-exporter.service
├─6569 /usr/bin/python3 /usr/sbin/stap-exporter -p 9900 -k 300
├─6570 stap -v --example -m stap_exporter_6569_4 also_ran.stp
├─6574 make -C /lib/modules/6.4.0-8.0.0.16.oe2309.aarch64/build M=/tmp/stapDm9EhN modules CONFIG_DEBUG_INFO= CONFIG_DEBUG_INFO_BTF_MODULES= ARCH=arm64 CC_VERSION_TEXT=foo CONFIG_CC_VERSION_TEXT=foo>
├─6785 make -f ./scripts/Makefile.build obj=/tmp/stapDm9EhN need-builtin=1 need-modorder=1
├─6799 /bin/sh -c "set -e; TMP=/tmp/stapDm9EhN/.tmp$$/tmp; trap "rm -rf /tmp/stapDm9EhN/.tmp$$" EXIT; mkdir -p /tmp/stapDm9EhN/.tmp_$$; if ( gcc -Werror -D__KERNEL__ -mlittle-endian -DC>
├─6801 gcc -Werror -D__KERNEL__ -mlittle-endian -DCC_USING_PATCHABLE_FUNCTION_ENTRY -DKASAN_SHADOW_SCALE_SHIFT= -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-st>
└─6803 /usr/libexec/gcc/aarch64-openEuler-linux/12/cc1 -quiet -D KERNEL -D CC_USING_PATCHABLE_FUNCTION_ENTRY -D KASAN_SHADOW_SCALE_SHIFT= -D CONFIG_CC_HAS_K_CONSTRAINT=1 -D "ARM64_ASM_ARCH="ar>
Sep 18 16:21:16 openEuler systemd[1]: Started Export metrics from designated systemtap scripts to Prometheus..
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 1: parsed user script and 468 library scripts using 135100virt/100096res/8320shr/91408data kb, in 550usr/120sys/690real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 2: analyzed script: 3 probes, 17 functions, 98 embeds, 3 globals using 137228virt/103428res/9600shr/93536data kb, in 290usr/50sys/348real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 3: translated to C into "/tmp/stapDm9EhN/__stap_exporter_6569_4_src.c" using 137360virt/103812res/9856shr/93668data kb, in 0usr/10sys/10real ms.
[root@openEuler ~]# systemctl status stap-exporter.service
● stap-exporter.service - Export metrics from designated systemtap scripts to Prometheus.
Loaded: loaded (/usr/lib/systemd/system/stap-exporter.service; disabled; preset: disabled)
Active: active (running) since Mon 2023-09-18 16:21:16 CST; 38s ago
Main PID: 6569 (stap-exporter)
Tasks: 8 (limit: 17878)
Memory: 105.8M
CGroup: /system.slice/stap-exporter.service
├─6569 /usr/bin/python3 /usr/sbin/stap-exporter -p 9900 -k 300
├─6570 stap -v --example -m __stap_exporter_6569_4 also_ran.stp
└─6878 /usr/libexec/systemtap/stapio /tmp/stapDm9EhN/__stap_exporter_6569_4.ko -F3
Sep 18 16:21:16 openEuler systemd[1]: Started Export metrics from designated systemtap scripts to Prometheus..
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 1: parsed user script and 468 library scripts using 135100virt/100096res/8320shr/91408data kb, in 550usr/120sys/690real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 2: analyzed script: 3 probes, 17 functions, 98 embeds, 3 globals using 137228virt/103428res/9600shr/93536data kb, in 290usr/50sys/348real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 3: translated to C into "/tmp/stapDm9EhN/__stap_exporter_6569_4_src.c" using 137360virt/103812res/9856shr/93668data kb, in 0usr/10sys/10real ms.
Sep 18 16:21:33 openEuler stap-exporter[6570]: Pass 4: compiled C into "__stap_exporter_6569_4.ko" in 12570usr/3480sys/14684real ms.
Sep 18 16:21:33 openEuler stap-exporter[6570]: Pass 5: starting run.
[root@openEuler ~]# systemctl stop stap-exporter.service
[root@openEuler ~]# systemctl status stap-exporter.service
○ stap-exporter.service - Export metrics from designated systemtap scripts to Prometheus.
Loaded: loaded (/usr/lib/systemd/system/stap-exporter.service; disabled; preset: disabled)
Active: inactive (dead)
Sep 18 16:21:16 openEuler systemd[1]: Started Export metrics from designated systemtap scripts to Prometheus..
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 1: parsed user script and 468 library scripts using 135100virt/100096res/8320shr/91408data kb, in 550usr/120sys/690real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 2: analyzed script: 3 probes, 17 functions, 98 embeds, 3 globals using 137228virt/103428res/9600shr/93536data kb, in 290usr/50sys/348real ms.
Sep 18 16:21:18 openEuler stap-exporter[6570]: Pass 3: translated to C into "/tmp/stapDm9EhN/__stap_exporter_6569_4_src.c" using 137360virt/103812res/9856shr/93668data kb, in 0usr/10sys/10real ms.
Sep 18 16:21:33 openEuler stap-exporter[6570]: Pass 4: compiled C into "__stap_exporter_6569_4.ko" in 12570usr/3480sys/14684real ms.
Sep 18 16:21:33 openEuler stap-exporter[6570]: Pass 5: starting run.
Sep 18 16:22:03 openEuler systemd[1]: Stopping Export metrics from designated systemtap scripts to Prometheus....
Sep 18 16:22:03 openEuler stap-exporter[6570]: Pass 5: run completed in 20usr/170sys/30465real ms.
Sep 18 16:22:03 openEuler systemd[1]: stap-exporter.service: Deactivated successfully.
Sep 18 16:22:03 openEuler systemd[1]: Stopped Export metrics from designated systemtap scripts to Prometheus..
[root@openEuler ~]#
服务启动需要时间,需要等待成功后再停止服务
等到ko 编译完成后再执行stop 没有报错
登录 后才可以发表评论