The problem is not enough to install headers to bpf folder. By example, the pahole package need BTF_FUNC_STATIC enum, which is in include/uapi/linux/btf.h folder and is not installed to "include" by default
@Dwctor
Жыл бұрын
Thanks for watching the video and pointing out an issue you had! The btf.h file you are referring to most likely can be found in /usr/include/linux/btf.h (not /usr/local/include/bpf/btf.h). An important distinction to be made is that the "libbpf includes" like bpf.h, btf.h, bpf_helpers.h, (and more) all have two versions: a libbpf version that can be included through bpf/.h and a linux version that can be included via linux/.h. Sadly, this video deals exclusively with the bpf/ includes and not the linux/ includes (which I think do come with the system). This may be mere speculation, but I believe you found that file thanks to this page: www.kernel.org/doc/html/next/bpf/btf.html . If that is the case, that refers to developing in this repo: github.com/torvalds/linux/tree/master , which is the repo for the linux kernel source tree. You will find the include in the include/uapi/linux/btf.h of that repo. Happy programming and I hope I could help! If any doubts remain, please feel free to contact me again.
@yonieryhm3441
4 ай бұрын
Good morning, Mr. Kyle "Dwctor", I wanted to ask you if you could be kind enough to explain to me through a video tutorial, how to SYNCHRONIZE LIBBPF so that it works as an individual application in an Ubuntu Linux OS? I already have knowledge of configuring the Kernel and installing LIBBPF and I can pay you $250 Dollars by transfer through Western Union once you provide me with your information, my name is Yonier Mosquera Hinestroza and my email is yanier.m2011@gmail.com. for any information regarding this. Thank you so much.
Пікірлер: 3