You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide an in-depth description of the question you have:
How can we build and test kmesh ebpf code locally? I am working on a Ubuntu-20.04. What do you think about this question?:
Environment:
Kmesh version:
Others:
The text was updated successfully, but these errors were encountered:
Good question. Currently, KMesh does not have a mature ebpf testing framework. Testing ebpf programs depends on functional black-box testing. In the roadmap for the second half of this year, we plan to develop an independent ebpf test framework for KMesh. The basic selection is based on the BPF_PROG_TEST_RUN command (this command was added to the kernel in kernel 4.12). Pay attention to the Kmesh community and participate in the regular community meeting to learn about the development progress.
For ebpf locally build, maybe u could firstly install Dependencies reference https://github.com/libbpf/libbpf-bootstrap?tab=readme-ov-file#install-dependencies
Then, you can build and load ebpf prog to kernel using below code, which I used to verify whether ebpf prog could load into kernel correctly , which will print ebpf error msg when prog is not correct. Because I think Kmesh in printing BpfVerifyLog is very limited.
Please provide an in-depth description of the question you have:
How can we build and test kmesh ebpf code locally? I am working on a Ubuntu-20.04.
What do you think about this question?:
Environment:
The text was updated successfully, but these errors were encountered: