Breno Leitao <leitao@xxxxxxxxxx> writes: > This file will be used by mini_uring.h and allow tests to run without > the need of installing liburing to run the tests. > > This is needed to run io_uring tests in BPF, such as > (tools/testing/selftests/bpf/prog_tests/sockopt.c). > > Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx> Can't mini_uring rely on the kernel header like selftests/net/io_uring_zerocopy_tx.c does? That test doesn't depend on liburing either. I ask because this will be the third copy of these definitions that we're gonna need to keep in sync (kernel, liburing and here). Given this is only used for selftests, we better avoid the duplication. -- Gabriel Krisman Bertazi