查看问题详情
编号 | 项目 | 分类 | 查看权限 | 报告日期 | 最后更新 |
---|---|---|---|---|---|
0000237 | Anolis OS 8 | bcc | public | 2021-08-26 21:36 | 2021-12-17 16:18 |
报告员 | wjn740 | 分派给 | yunqi-zwt | ||
优先级 | normal | 严重性 | minor | 出现频率 | always |
状态 | assigned | 处理状况 | open | ||
标题 | 0000237: bcc-tools syscount failed | ||||
描述 | [james@james-laptop ~]$ /usr/share/bcc/tools/syscount /virtual/main.c:29:1: warning: declaration of 'struct tracepoint__raw_syscalls__sys_exit' will not be visible outside of this function [-Wvisibility] TRACEPOINT_PROBE(raw_syscalls, sys_exit) { ^ /virtual/include/bcc/helpers.h:844:46: note: expanded from macro 'TRACEPOINT_PROBE' int tracepoint__##category##__##event(struct tracepoint__##category##__##event *args) ^ <scratch space>:206:1: note: expanded from here tracepoint__raw_syscalls__sys_exit ^ /virtual/main.c:50:19: error: incomplete definition of type 'struct tracepoint__raw_syscalls__sys_exit' u32 key = args->id; ~~~~^ /virtual/main.c:29:1: note: forward declaration of 'struct tracepoint__raw_syscalls__sys_exit' TRACEPOINT_PROBE(raw_syscalls, sys_exit) { ^ /virtual/include/bcc/helpers.h:844:46: note: expanded from macro 'TRACEPOINT_PROBE' int tracepoint__##category##__##event(struct tracepoint__##category##__##event *args) ^ <scratch space>:206:1: note: expanded from here tracepoint__raw_syscalls__sys_exit ^ 1 warning and 1 error generated. Traceback (most recent call last): File "/usr/share/bcc/tools/syscount", line 165, in <module> bpf = BPF(text=text) File "/usr/lib/python3.6/site-packages/bcc/__init__.py", line 347, in __init__ raise Exception("Failed to compile BPF module %s" % (src_file or "<text>")) Exception: Failed to compile BPF module <text> [james@james-laptop ~]$ /usr/share/bcc/tools/syscount ^C | ||||
标签 | 没加标签. | ||||