Is it possible to load an freplace program using bpftool?

Cody Haas <[email protected]> Wed, 17 Dec 2025 15:55:52 -0800
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <CAH7f-U+6xApKEYe5t2W=P49Jftc0C+p8d2qrXnOxxgfWZN7p3w@mail.gmail.com>
Hey everyone,

Does anyone if it is possible to load a ebpf program that's an freplace type
using bpftool?

For context, we have several developers who are learning eBPF on our team. One
of them sent me a code snippet that results in an error from our loader. Our
loader uses cilium/ebpf. The error message does not appear to be a verifier
error, so I wanted to see if bpftool has issues loading the program, however,
I'm struggling to get bpftool to load the it.

Thanks,

Cody