Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译时报错 #948

Open
wtyfpc opened this issue Dec 5, 2024 · 0 comments
Open

编译时报错 #948

wtyfpc opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wtyfpc
Copy link

wtyfpc commented Dec 5, 2024

bpf/io.bpf.c:42:5: error: member reference base type 'u64' (aka 'unsigned long long') is not a structure or union
   42 |     CHECK_CGID(knode);
      |     ^~~~~~~~~~~~~~~~~
./include/ebpf.h:139:56: note: expanded from macro 'CHECK_CGID'
  139 |     if (target_cgroupid > 0 && BPF_CORE_READ(_knode, id.id) != target_cgroupid) \
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
./.output/bpf/bpf_core_read.h:520:17: note: expanded from macro 'BPF_CORE_READ'
  520 |         ___type((src), a, ##__VA_ARGS__) __r;                               \
      |         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
./.output/bpf/bpf_core_read.h:391:38: note: expanded from macro '___type'
  391 | #define ___type(...) typeof(___arrow(__VA_ARGS__))
      |                             ~~~~~~~~~^~~~~~~~~~~~
./.output/bpf/bpf_core_read.h:389:64: note: expanded from macro '___arrow'
  389 | #define ___arrow(...) ___apply(___arrow, ___narg(__VA_ARGS__))(__VA_ARGS__)
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
./.output/bpf/bpf_core_read.h:380:28: note: expanded from macro '___arrow2'
  380 | #define ___arrow2(a, b) a->b
@wtyfpc wtyfpc added the bug Something isn't working label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant