"Daniel Xu" <[email protected]> writes: > On Sun, Feb 28, 2021, at 12:07 PM, [email protected] wrote: >> Hi, >> >> I'm looking into BTF and it's use case. Based on the document I >> understood to run BPF programs across different kernel versions, it >> needs to build with libbpf which depends on the BTF information. >> Now to enable/to have BTF information on any Kernel, the kernel needs >> to be re-build with "" flag. >> >> I can see the BTF support in Linus introduced from *kernel version >> 5.1.0 >> (*https://www.kernel.org/doc/html/v5.1/bpf/btf.html?highlight=btf) >> however I can still see the BTF information(/sys/kernel/btf/vmlinux) on >> my 4.18.0-193.28.1.el8_2.x86_64 kernel. > > What distro are you using? Your distro probably backported BTF > support.
Yeah, that's a RHEL version number (RHEL8.2 in this case, as seen by the "el8_2" bit). Which means that as far as features are concerned, the 4.18 version number is basically a complete fiction at this point. For BPF we basically backport everything, IIRC we made it up to upstream kernel 5.4 for RHEL8.2... -Toke -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1973): https://lists.iovisor.org/g/iovisor-dev/message/1973 Mute This Topic: https://lists.iovisor.org/mt/80980657/21656 Mute #bcc:https://lists.iovisor.org/g/iovisor-dev/mutehashtag/bcc Group Owner: [email protected] Unsubscribe: https://lists.iovisor.org/g/iovisor-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
