-
-
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
hp77 | Add Option for build without libbpf #302
Conversation
TODO: had to also change path for |
@yunwei37 @Officeyutong right now, I am facing issue in |
71c72f3
to
5549802
Compare
Could you please provide some detailed error information? |
epoll is not supported on platforms except Linux. But in bpftime, we should have only used some types and structs defined in this header. You may find out these types and structs, define them in the code base of bpftime |
getting these now:
should i replace spinlock with rwlock? for apple systems? |
You may write a spinlock. It's very simple. Don't use mutex, they are very slow |
@Officeyutong @yunwei37
It is coming from |
@Officeyutong @yunwei37
will try to refer this: https://stackoverflow.com/questions/41509505/clock-gettime-on-macos |
Also getting this:
|
also getting this:
do we need to include |
|
|
You may disable this helper function on darwin. It relies kernel eBPF to work. |
I have defined the value in a separate header file for this
It doesn't, have created a custom implementation and added in a header file.
Yea, I found some alternative in
I have disabled this function I am getting a lot of error in |
also what to do of |
|
I did that, Now for some reason
|
I have done so many changes to rectify errors now that I have lost track of my changes, will need to look at them again. |
boost may not be recognized automically. Sometimes you may need to set BOOST_ROOT manualy |
This file is mainly used for parsing ELF files. It calls API provided by libbpf to pick up eBPF programs defined in an ELF file. It may be replaced with other libraries that can parse ELF, such as libelf. eBPF programs are stored in program sections of an ELF file. section names would be like You may refer to https://github.com/libbpf/libbpf/blob/42065ea6627ff6e1ab4c65e51042a70fbf30ff7c/src/libbpf.c#L7892 for how libbpf loads ELF files |
I will read more on the above. An update that I have been able to compile bpftime successfully. But when I tried running it on my system, I am getting following error:
I checked, macOS comes with a zlib installation which is symlinked to libz.1.dylib as |
…ion from define to inline, change __thread to thread_local
d4ff6d1
to
75e7bef
Compare
Also, options added should be documented in https://github.com/eunomia-bpf/eunomia.dev/blob/main/docs/bpftime/documents/build-and-test.md, remember to update it |
Will do |
Description
Adding an option to allow
bpftime
to built without libbpfFixes #175
Type of change
How Has This Been Tested?
MacOS
Test Configuration:
Checklist