Re: [PATCH bpf-next v2] selftests/bpf: use auto-dependencies for test objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2024-07-12 at 12:20 -0700, Andrii Nakryiko wrote:

[...]

> > An alternative fix would be to specify additional dependencies for
> > core_reloc.test.o (and others) directly, e.g.:
> > 
> >     core_reloc.test.o: test_core_reloc_module.bpf.o ...
> > 
> > (with correct trunner prefix)
> 
> I was about to say that not all tests use BPF skeleton headers just
> yet, so we have to have a way to explicitly specify dependencies. I
> think a separate list should be good enough for now, and in parallel
> we should try to switch remaining tests to skeleton headers. Even if
> we don't want to convert tests themselves to using skeleton structs,
> we can convert them to use elf_bytes from skeleton headers instead of
> loading .bpf.o files from disk. That should eliminate the need for
> extra dependencies.

For the scope of this patch-set, I'd say specifying dependencies
in the Makefile should be ok.
Or would you prefer migrating tests to use elf bytes?

[...]





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux