eunomia-bpf / bpftime

Userspace eBPF runtime for Observability, Network & General Extensions Framework
https://eunomia.dev/bpftime/
MIT License
789 stars 74 forks source link

[BUG] bpftime doesn't compile on ARM architecture, frida test module has errors #237

Closed CUIKingdom closed 7 months ago

CUIKingdom commented 7 months ago

Describe the bug The test program under "./bpftime/attach/frida_uprobe_attach_impl/test/" uses the default x86 configuration and does not take into account the ARM architecture, which prevents it from compiling.

Screenshots ERROR: 截屏2024-02-27 17 29 09

Source Code: (1)

截屏2024-02-27 17 30 57

(2)

截屏2024-02-27 17 31 53

(3)

截屏2024-02-27 17 32 28

Desktop (please complete the following information):

Additional context

Officeyutong commented 7 months ago

These tests only support x86. Contribution for other platforms are welcomed

yunwei37 commented 7 months ago

Can we disable these tests on arm build? @Officeyutong

yunwei37 commented 7 months ago

We should have a cmake config to disable these tests on arch other than x86.

You can try compile with make release first.

Officeyutong commented 7 months ago

tests

I think it's better to add arm support for these tests, it's not difficult. This may be agood first issue