Hi,
[Little Background]
eBPF programs can run in sandbox env within Kernel. It's event driven and runs based on hookpoints like kprobe, tracepoint, uprobe etc.. It's highly dependent on host kernel and need correct knowledge of underlying kernel's data structures/types.
The type information comes usually with the kernel (newer) and is present at location /sys/kernel/btf/vmlinux (only if the kernel was compiled with config option CONFIG_DEBUG_INFO_BTF=true)
In case the kernel does not have BTF support (i.e. above file is not present), we can try and generate it using the kernel's debuginfo package. Which makes the eBPF program portable.
[Query]
1. Does Photon OS kernel support running eBPF programs usually? Reason for asking is - I see Vmware has solved service mesh usecase using eBPF but there is no mention of OS or kernel. Link: https://blogs.vmware.com/networkvirtualization/2022/08/tanzu-service-mesh-acceleration-using-ebpf.ht...
2. In case of other mainstream linux distros like ubuntu, centos, fedora, oracle linux etc., the kernel's debuginfo package/rpms for each and every kernel version are published in their respective package urls but for PhotonOS I do/can not find linux-*-debuginfo<version>.rpm files. Which helps in portability of eBPF program across kernels.
I am looking at https://packages.vmware.com/photon/ for the packages but finding very few (ex: in 3.0 no such packages found) linux debuginfo packages. In case I am not looking correctly, please point me to the place where I can find this rpm for all kernel versions.
If it is not published, is there a plan to publish the missing kernel's linux debuginfo rpms?