On Tue, 2023-12-12 at 15:25 -0800, Andrii Nakryiko wrote: > Add a test validating that freplace'ing another main (entry) BPF program > fails if the target BPF program doesn't have valid/expected func proto BTF. > > Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > --- Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx> I have two nitpicks, fill free to ignore. When test is run with -vvv, verifier log says: -- BEGIN PROG LOAD LOG -- func#0 @0 Cannot replace static functions processed 0 insns ... -- END PROG LOAD LOG -- Would it be possible to match the error message in this test? Also, maybe kernel should be tweaked to be a bit more informative, as message about static function is confusing, wdyt?