> On Oct 14, 2021, at 1:56 PM, Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> wrote: > > Also, avoid using CO-RE features, as lskel doesn't support CO-RE, yet. > Include both light and libbpf skeleton in same file to test both of them > together. > > In c48e51c8b07a ("bpf: selftests: Add selftests for module kfunc support"), > I added support for generating both lskel and libbpf skel for a BPF > object, however the name parameter for bpftool caused collisions when > included in same file together. This meant that every test needed a > separate file for a libbpf/light skeleton separation instead of > subtests. > > Change that by appending a "_light" suffix to the name for files listed > in LSKELS_EXTRA, such that both light and libbpf skeleton can be used in > the same file for subtests, leading to better code sharing. > > While at it, improve the build output by saying GEN-LSKEL instead of > GEN-SKEL for light skeleton generation recipe. > > Signed-off-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>