登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
9月20日,Gitee × 模力方舟来成都了!聚焦 AI 应用在开发范式、算力架构、交互设计、硬件选型等跨场景创新实践,点击立即报名~
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
16
Star
1
Fork
54
src-openEuler
/
bcc
代码
Issues
10
Pull Requests
8
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
openEuler 22.03 LTS SP3 x86下bcc工具运行时错误
待办的
#I9ENHN
缺陷
menma
创建于
2024-04-08 00:32
**【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式)** **一、缺陷信息** ``` [root@localhost ~]# /usr/share/bcc/tools/tcptop warning: argument unused during compilation: '-fno-stack-protector' In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: In file included from arch/x86/include/asm/bitops.h:17: In file included from arch/x86/include/asm/alternative.h:7: arch/x86/include/asm/asm.h:184:50: error: unknown register name 'esp' in asm register unsigned long current_stack_pointer asm(_ASM_SP); ^ arch/x86/include/asm/asm.h:46:18: note: expanded from macro '_ASM_SP' #define _ASM_SP __ASM_REG(sp) ^ arch/x86/include/asm/asm.h:29:32: note: expanded from macro '__ASM_REG' #define __ASM_REG(reg) __ASM_SEL_RAW(e##reg, r##reg) ^ arch/x86/include/asm/asm.h:20:29: note: expanded from macro '__ASM_SEL_RAW' # define __ASM_SEL_RAW(a,b) __ASM_FORM_RAW(a) ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/stringify.h:10:27: note: expanded from macro '__stringify' #define __stringify(x...) __stringify_1(x) ^ include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1' #define __stringify_1(x...) #x ^ <scratch space>:28:1: note: expanded from here "esp" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: arch/x86/include/asm/bitops.h:57:6: error: invalid input constraint 'iq' in asm : "iq" (CONST_MASK(nr)) ^ arch/x86/include/asm/bitops.h:61:26: error: invalid input constraint 'Ir' in asm : : RLONG_ADDR(addr), "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:68:50: error: invalid input constraint 'Ir' in asm asm volatile(__ASM_SIZE(bts) " %1,%0" : : ADDR, "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:77:6: error: invalid input constraint 'iq' in asm : "iq" (~CONST_MASK(nr))); ^ arch/x86/include/asm/bitops.h:80:26: error: invalid input constraint 'Ir' in asm : : RLONG_ADDR(addr), "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:94:50: error: invalid input constraint 'Ir' in asm asm volatile(__ASM_SIZE(btr) " %1,%0" : : ADDR, "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:103:5: error: invalid output constraint '=qm' in asm : CC_OUT(s) (negative), WBYTE_ADDR(addr) ^ arch/x86/include/asm/asm.h:119:32: note: expanded from macro 'CC_OUT' # define CC_OUT(c) [_cc_ ## c] "=qm" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: arch/x86/include/asm/bitops.h:119:50: error: invalid input constraint 'Ir' in asm asm volatile(__ASM_SIZE(btc) " %1,%0" : : ADDR, "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:128:6: error: invalid input constraint 'iq' in asm : "iq" (CONST_MASK(nr))); ^ arch/x86/include/asm/bitops.h:131:26: error: invalid input constraint 'Ir' in asm : : RLONG_ADDR(addr), "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:154:8: error: invalid output constraint '=qm' in asm : CC_OUT(c) (oldbit) ^ arch/x86/include/asm/asm.h:119:32: note: expanded from macro 'CC_OUT' # define CC_OUT(c) [_cc_ ## c] "=qm" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: arch/x86/include/asm/bitops.h:180:10: error: invalid output constraint '=qm' in asm : CC_OUT(c) (oldbit) ^ arch/x86/include/asm/asm.h:119:32: note: expanded from macro 'CC_OUT' # define CC_OUT(c) [_cc_ ## c] "=qm" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: arch/x86/include/asm/bitops.h:192:10: error: invalid output constraint '=qm' in asm : CC_OUT(c) (oldbit) ^ arch/x86/include/asm/asm.h:119:32: note: expanded from macro 'CC_OUT' # define CC_OUT(c) [_cc_ ## c] "=qm" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: arch/x86/include/asm/bitops.h:216:10: error: invalid output constraint '=qm' in asm : CC_OUT(c) (oldbit) ^ arch/x86/include/asm/asm.h:119:32: note: expanded from macro 'CC_OUT' # define CC_OUT(c) [_cc_ ## c] "=qm" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: In file included from arch/x86/include/asm/bitops.h:387: arch/x86/include/asm/arch_hweight.h:20:7: error: invalid output constraint '=a' in asm : "="REG_OUT (res) ^ arch/x86/include/asm/arch_hweight.h:48:7: error: invalid output constraint '=a' in asm : "="REG_OUT (res) ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:54: In file included from arch/x86/include/asm/page.h:12: arch/x86/include/asm/page_64.h:52:7: error: invalid output constraint '=D' in asm "=D" (page), ^ In file included from <built-in>:4: /virtual/include/bcc/helpers.h:967:40: error: __int128 is not supported on this target unsigned __int128 bpf_ntoh128(unsigned __int128 val) { ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. Traceback (most recent call last): File "/usr/share/bcc/tools/tcptop", line 243, in <module> b = BPF(text=bpf_text) File "/usr/lib/python3.9/site-packages/bpfcc/__init__.py", line 479, in __init__ raise Exception("Failed to compile BPF module %s" % (src_file or "<text>")) Exception: Failed to compile BPF module <text> ``` **内核信息:** **缺陷归属组件:**  **缺陷归属的版本:** openeuler 22.03 LTS SP3 x86 **缺陷简述:** **【环境信息】** 硬件信息 - 裸机场景请提供问题的硬件信息 - 虚拟机场景请提供虚拟机的XML文件或配置信息 ``` [root@localhost ~]# uname -a Linux localhost.localdomain 5.10.0-191.0.0.104.oe2203sp3.x86_64 #1 SMP Wed Mar 13 14:59:02 CST 2024 x86_64 x86_64 x86_64 GNU/Linux ``` **【问题复现步骤】**,请描述具体的操作步骤 **【实际结果】**,请描述出问题的结果和影响
**【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式)** **一、缺陷信息** ``` [root@localhost ~]# /usr/share/bcc/tools/tcptop warning: argument unused during compilation: '-fno-stack-protector' In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: In file included from arch/x86/include/asm/bitops.h:17: In file included from arch/x86/include/asm/alternative.h:7: arch/x86/include/asm/asm.h:184:50: error: unknown register name 'esp' in asm register unsigned long current_stack_pointer asm(_ASM_SP); ^ arch/x86/include/asm/asm.h:46:18: note: expanded from macro '_ASM_SP' #define _ASM_SP __ASM_REG(sp) ^ arch/x86/include/asm/asm.h:29:32: note: expanded from macro '__ASM_REG' #define __ASM_REG(reg) __ASM_SEL_RAW(e##reg, r##reg) ^ arch/x86/include/asm/asm.h:20:29: note: expanded from macro '__ASM_SEL_RAW' # define __ASM_SEL_RAW(a,b) __ASM_FORM_RAW(a) ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/stringify.h:10:27: note: expanded from macro '__stringify' #define __stringify(x...) __stringify_1(x) ^ include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1' #define __stringify_1(x...) #x ^ <scratch space>:28:1: note: expanded from here "esp" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: arch/x86/include/asm/bitops.h:57:6: error: invalid input constraint 'iq' in asm : "iq" (CONST_MASK(nr)) ^ arch/x86/include/asm/bitops.h:61:26: error: invalid input constraint 'Ir' in asm : : RLONG_ADDR(addr), "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:68:50: error: invalid input constraint 'Ir' in asm asm volatile(__ASM_SIZE(bts) " %1,%0" : : ADDR, "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:77:6: error: invalid input constraint 'iq' in asm : "iq" (~CONST_MASK(nr))); ^ arch/x86/include/asm/bitops.h:80:26: error: invalid input constraint 'Ir' in asm : : RLONG_ADDR(addr), "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:94:50: error: invalid input constraint 'Ir' in asm asm volatile(__ASM_SIZE(btr) " %1,%0" : : ADDR, "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:103:5: error: invalid output constraint '=qm' in asm : CC_OUT(s) (negative), WBYTE_ADDR(addr) ^ arch/x86/include/asm/asm.h:119:32: note: expanded from macro 'CC_OUT' # define CC_OUT(c) [_cc_ ## c] "=qm" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: arch/x86/include/asm/bitops.h:119:50: error: invalid input constraint 'Ir' in asm asm volatile(__ASM_SIZE(btc) " %1,%0" : : ADDR, "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:128:6: error: invalid input constraint 'iq' in asm : "iq" (CONST_MASK(nr))); ^ arch/x86/include/asm/bitops.h:131:26: error: invalid input constraint 'Ir' in asm : : RLONG_ADDR(addr), "Ir" (nr) : "memory"); ^ arch/x86/include/asm/bitops.h:154:8: error: invalid output constraint '=qm' in asm : CC_OUT(c) (oldbit) ^ arch/x86/include/asm/asm.h:119:32: note: expanded from macro 'CC_OUT' # define CC_OUT(c) [_cc_ ## c] "=qm" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: arch/x86/include/asm/bitops.h:180:10: error: invalid output constraint '=qm' in asm : CC_OUT(c) (oldbit) ^ arch/x86/include/asm/asm.h:119:32: note: expanded from macro 'CC_OUT' # define CC_OUT(c) [_cc_ ## c] "=qm" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: arch/x86/include/asm/bitops.h:192:10: error: invalid output constraint '=qm' in asm : CC_OUT(c) (oldbit) ^ arch/x86/include/asm/asm.h:119:32: note: expanded from macro 'CC_OUT' # define CC_OUT(c) [_cc_ ## c] "=qm" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: arch/x86/include/asm/bitops.h:216:10: error: invalid output constraint '=qm' in asm : CC_OUT(c) (oldbit) ^ arch/x86/include/asm/asm.h:119:32: note: expanded from macro 'CC_OUT' # define CC_OUT(c) [_cc_ ## c] "=qm" ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:53: In file included from include/linux/log2.h:12: In file included from include/linux/bitops.h:29: In file included from arch/x86/include/asm/bitops.h:387: arch/x86/include/asm/arch_hweight.h:20:7: error: invalid output constraint '=a' in asm : "="REG_OUT (res) ^ arch/x86/include/asm/arch_hweight.h:48:7: error: invalid output constraint '=a' in asm : "="REG_OUT (res) ^ In file included from <built-in>:4: In file included from /virtual/include/bcc/helpers.h:54: In file included from arch/x86/include/asm/page.h:12: arch/x86/include/asm/page_64.h:52:7: error: invalid output constraint '=D' in asm "=D" (page), ^ In file included from <built-in>:4: /virtual/include/bcc/helpers.h:967:40: error: __int128 is not supported on this target unsigned __int128 bpf_ntoh128(unsigned __int128 val) { ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. Traceback (most recent call last): File "/usr/share/bcc/tools/tcptop", line 243, in <module> b = BPF(text=bpf_text) File "/usr/lib/python3.9/site-packages/bpfcc/__init__.py", line 479, in __init__ raise Exception("Failed to compile BPF module %s" % (src_file or "<text>")) Exception: Failed to compile BPF module <text> ``` **内核信息:** **缺陷归属组件:**  **缺陷归属的版本:** openeuler 22.03 LTS SP3 x86 **缺陷简述:** **【环境信息】** 硬件信息 - 裸机场景请提供问题的硬件信息 - 虚拟机场景请提供虚拟机的XML文件或配置信息 ``` [root@localhost ~]# uname -a Linux localhost.localdomain 5.10.0-191.0.0.104.oe2203sp3.x86_64 #1 SMP Wed Mar 13 14:59:02 CST 2024 x86_64 x86_64 x86_64 GNU/Linux ``` **【问题复现步骤】**,请描述具体的操作步骤 **【实际结果】**,请描述出问题的结果和影响
评论 (
4
)
登录
后才可以发表评论
状态
待办的
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
标签
sig/sig-ebpf
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (26)
标签 (21)
master
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP2
openEuler-25.03
openEuler-25.09
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS
openEuler-24.09
openEuler-22.03-LTS
openEuler-23.09
openEuler-22.03-LTS-Next
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-22.03-LTS-SP2
openEuler-23.03
openEuler-22.03-LTS-SP1
openEuler-20.03-LTS-SP3
openEuler-20.03-LTS-SP4
openEuler-22.09
openEuler-21.09
openEuler-21.03
openEuler-20.03-LTS-SP1
openEuler-20.03-LTS-Next
openEuler-20.03-LTS-SP2
openEuler-20.03-LTS
openEuler-20.09
openEuler-24.03-LTS-SP2-release
openEuler-25.03-release
openEuler-24.03-LTS-SP1-release
openEuler-24.03-LTS-update-20241206
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200929
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/bcc.git
git@gitee.com:src-openeuler/bcc.git
src-openeuler
bcc
bcc
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册