Subject: Re: [PATCH v7 06/11] tools headers: Grab copy of io_uring.h

From: Gabriel Krisman Bertazi <[email-masked]>
Date: Mon, 16 Oct 2023 14:56:55 -0400

Breno Leitao <[email-masked]> 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 <[email-masked]>

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