On Fri, Apr 8, 2022 at 1:34 PM Andrii Nakryiko <andrii@xxxxxxxxxx> wrote: > > Add new or modify existing SEC() definitions to be target-less and > validate that libbpf handles such program definitions correctly. > > For kprobe/kretprobe we also add explicit test that generic > bpf_program__attach() works in cases when kprobe definition contains > proper target. It wasn't previously tested as selftests code always > explicitly specified the target regardless. > > Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>