-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
[FEATURE] Make examples depending on libbpf able to build on macos #306
Comments
relates to #145 |
A better title: Make examples depending on libbpf able to build on macos libbpf itself can't work on macos obviously, but if we may get it able to be built on macos by providing mocked implementation of linux-specified functions that libbpf needs. These mocked implementations could be just empty functions. They don't need to really work, since they'll be overriden by function implementations provided by syscall-server. We provide these functions just to trick the linker. If we were able to build examples of bpftime on macos, we'll be able to test them on macos with bpftime. |
@Officeyutong , I am planning to close this one before frida, working on this atm. |
ok |
@Officeyutong I observe that 'bpftime_frida_uprobe_attach_tests' fail in '--config RelWithDebInfo' and pass in '--config Debug' when using CMake to build tests and whole 'bpftime'. |
Let me have a look at compile messages |
@Officeyutong Do you mean the output of |
I mean CMake output when building |
Is your feature request related to a problem? Please describe.
Right now, libbpf doesn't compile on macOS because of some headers which are not present. This issue is to add those headers or maybe their alternatives to the project and make bpftime work with libbpf on macOS.Describe the solution you'd like
libbpf should work with bpftime on macOS. identify all the headers and syscalls that are being used and replace it with hooks to make them work.
Provide usage examples
After this feature is incoporated, bpftime will be able to work on macOS without
LIBBPF
flag disabled.The text was updated successfully, but these errors were encountered: