right now compatibility check for bpf_strncmp and bpf_loop are based on the global KERNEL_VERSION, that we set at runtime.
We should try to use bpf_core_enum_value_exists on enum bpf_func_id looking for BPF_FUNC_strncmp and BPF_FUNC_loop to be able to support backported features.
right now compatibility check for
bpf_strncmp
andbpf_loop
are based on the globalKERNEL_VERSION
, that we set at runtime.We should try to use
bpf_core_enum_value_exists
onenum bpf_func_id
looking forBPF_FUNC_strncmp
andBPF_FUNC_loop
to be able to support backported features.Ref.: https://github.com/exein-io/pulsar/pull/260#issuecomment-1964568029