Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3655833rdb; Wed, 13 Sep 2023 20:46:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFO84s8FXe7yyocbG9qnqzb3xF13RfkmkAxxbLUWFSVyE8Brkm5ZlEYZUILlzXVykqT6r6D X-Received: by 2002:a05:6a21:3d83:b0:14e:3daf:fdb9 with SMTP id bj3-20020a056a213d8300b0014e3daffdb9mr3986097pzc.22.1694663210848; Wed, 13 Sep 2023 20:46:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694663210; cv=none; d=google.com; s=arc-20160816; b=QCiW2PTVe5qXHzm/JZ1PBsPCM3WWm9NIoTWN4QTO17P/ZslFMMKkNBWOmNAKb+9Olc 1pbeVWhcUNfDf/CWSI4dXDQiKPYKk/o4kXKN+1/hJF6ka0aiatvwlLcb6c8yQDcZQRUs X9pZms0QRYSLrimoOuBBABrYnyuTogkXzSznYtUco5KtNPMyQgzL1gOABFVWrX4ukNNn 79u7WpWnW5KTgGBIE3Tn9YvyMW+6RxAuTVdhDQN5hikwsj1uAU5bl9AINAU0M/Yd+0T5 cUBVFDsLQT69dxO2gn4tcRzCEMNKcBmIAC/auGk/Wo4Li/ELQWFfIw4QlHN2L2fpfEOi eF9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=AwREo+am6jJ9+Xq8BZFdvke2FcjINYzH66vqtX+PkMY=; fh=nFkc76cEn/7EQQqaq1++A9vlHAztf2eU01xihOjYi5g=; b=UFefAnR7TPxacj9QjWiokboAp+Fto7nsIU6+XoaTbKZy0orreKHvK5aDuo/VVMhv6q SN30VSNfedbH9r7pGy0XQY4QVqYQV4tuyq2iNix66tZuMPM+ZCZbwnFe2BDfcYIbubCn hcOYFYY5bjqYLH2tBCSnJjJdvXrcohl3NLpIeeL6k0LfasO+fc7kRa1YaoPacLDFls/H NECmVOaHWXiWmJd88I2ropCB2eQEli8/+ODhq9BLre2KlCgwVmdLtp9SvxkXYQ5FWVrv T4KNLVKCk2rS96ohQSA1mYftCpXq1x8PljegxzvLt/87tAuN6A74FhhmqTeqVMo/oPw+ bwcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=U6yP+KxV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i16-20020a170902c95000b001c34f81bb35si823460pla.200.2023.09.13.20.46.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 20:46:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=U6yP+KxV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8E7D281F88C5; Wed, 13 Sep 2023 13:48:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232667AbjIMUs2 (ORCPT + 99 others); Wed, 13 Sep 2023 16:48:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232661AbjIMUsZ (ORCPT ); Wed, 13 Sep 2023 16:48:25 -0400 Received: from out-227.mta0.migadu.com (out-227.mta0.migadu.com [91.218.175.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 349BF1BCE for ; Wed, 13 Sep 2023 13:48:20 -0700 (PDT) Message-ID: <77405214-ae42-d58b-1d40-c639683a0cb1@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1694638098; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AwREo+am6jJ9+Xq8BZFdvke2FcjINYzH66vqtX+PkMY=; b=U6yP+KxVDbx6rtpw5f5CSR3ZoGvmldJXz0NCPIybsjJd+xyoTeZNMYs43/xZA2kbod2YuI iZHsYCL/aT/cgd5cQeknemK5X80ETTnnt0pK2hpUt00drdgkbSY60/xpzcdzZey3HW48B+ pegXznmpHCLY9DTg87bF8nQnqSLSJc0= Date: Wed, 13 Sep 2023 13:48:09 -0700 MIME-Version: 1.0 Subject: Re: [PATCH v6 8/8] selftests/bpf/sockopt: Add io_uring support Content-Language: en-US To: Breno Leitao Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, io-uring@vger.kernel.org, =?UTF-8?Q?Daniel_M=c3=bcller?= , Wang Yufen , "open list:KERNEL SELFTEST FRAMEWORK" , sdf@google.com, axboe@kernel.dk, asml.silence@gmail.com, willemdebruijn.kernel@gmail.com, kuba@kernel.org, pabeni@redhat.com, krisman@suse.de, Andrii Nakryiko , Mykola Lysenko , Alexei Starovoitov , Daniel Borkmann , Song Liu , Yonghong Song , John Fastabend , KP Singh , Hao Luo , Jiri Olsa , Shuah Khan References: <20230913152744.2333228-1-leitao@debian.org> <20230913152744.2333228-9-leitao@debian.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Martin KaFai Lau In-Reply-To: <20230913152744.2333228-9-leitao@debian.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 13 Sep 2023 13:48:37 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email On 9/13/23 8:27 AM, Breno Leitao wrote: > Expand the BPF sockopt test to use also check for io_uring > {g,s}etsockopt commands operations. > > Create infrastructure to run io_uring tests using the mini_liburing > helpers, so, the {g,s}etsockopt operation could either be called from > system calls, or, via io_uring. > > Add a 'use_io_uring' parameter to run_test(), to specify if the test > should be run using io_uring if the parameter is set, or via the regular > system calls if false. > > Call *all* tests twice, using the regular io_uring path, and the new > io_uring path. The bpf CI failed to compile because of missing some newer enum: https://github.com/kernel-patches/bpf/actions/runs/6176703557/job/16766325932 An option is to copy the io_uring.h to tools/include/uapi/linux/.