Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp964107lqd; Thu, 25 Apr 2024 01:53:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2bS0lVsxLLQU0TnQJ6PlvBk3E/YbimkwJg7P0RPCpqq1U4y2uZsLewvxzm5ot3PXwje4NecnE83avZTZdrpGPIrzbUOo3I+9WMVrasw== X-Google-Smtp-Source: AGHT+IG3WcThrO8xij9nK3rTQS9mGnZUEK9Utqz7o6V6P+pmqU2aitZZMLE44/SscZg6ivuf5yvv X-Received: by 2002:a50:8d0b:0:b0:571:b9ac:ff2e with SMTP id s11-20020a508d0b000000b00571b9acff2emr3329470eds.26.1714035209548; Thu, 25 Apr 2024 01:53:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714035209; cv=pass; d=google.com; s=arc-20160816; b=Z+SjBWY0NE4a01vpaAg1xZrlH7EtikhDo17Cn7+n78FOxD6S2lh/EWimdklp/UJQ+X nESu8hY9qPUDxZxjCgQ88SSzjxHyQ4s21W9TTzL/GW5dEid7HDh8zXr9J/2+QS/dfxO3 P56mdo5LqCplMBVm44vH1ZIOuEtubYXsNl5su+qAJFlWpbWoMFeJ2AIHHjdNSfNIuHKL BYy+u0YQ3Nskphzt0+9myM4E4m37hBmw0hWluagRx3IFobzvbt/9Ke2WYjVeUcRpnZN6 +W1yWmSMuh9OX0Se1J2UjhRJB1RsUsnr7LtyWvmhAoW7PYwgTnVXrUqQZ9UesAen4xEl DJ8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dNcc6A1zci5latI7b/9cFgzwz/zZaJRA4lw/iawusFo=; fh=IUQZYuZyfLQ0yWza0kI4ig3R2cxP5z3qH9LBWDUFghM=; b=LUKXSJFODHb6YHXPI3nA/5N+Kdw3Ktku/QvsnQSa6aa21fHH19YqTnm+pBIgFC6EGb cN/aQLU8mhVsQoq3c+/ocZWVuP/OZxcDZ8C/L1+S3XX3nsmBF0TJJkiuCluy6DJGEmif VjmyiC//37mqAMGo/A3NkDydOt1XC34rtMQNADMrf6ljqt9rYayM5PH92snifLllhjJD 7plGuG1SJi23s0X4oPLARJlBzP3J7/FnA08yv+rzk6tAVYj6QloBdotLgsYGEkmSs9cI 146csEFa1aA2u9Zz3xnNdFDFAhJCnYkjoOdBnxDfL6HS6Kiv0AS4H/SlOPBdI7ZhC35O Z2Wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BgQ6XWu4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158220-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w6-20020a056402268600b005722b539a51si2789518edd.318.2024.04.25.01.53.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 01:53:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BgQ6XWu4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158220-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 48B971F22746 for ; Thu, 25 Apr 2024 08:53:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADBA282860; Thu, 25 Apr 2024 08:53:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BgQ6XWu4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC4E47FBB4; Thu, 25 Apr 2024 08:53:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714035200; cv=none; b=TG6L4TppqUKSvaYpKVi7s/G8OX/etq56RwpcYatmn72wOViaN9f3m/dhuCvSPRkc9XBD2jZbRgWlTEx7UuMEpmj78I2lBJgUtB2nnL3UscLRwA82hMsya7Uik4cBJZ/xukjiVvigKrRv0WotKI5JSeR/oLKnjufMBrcg/lJQ75o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714035200; c=relaxed/simple; bh=39w5XQsRAGKnURUuXsQ1Wk8XgraObcOPly8hISIv0IE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MaKcqaLt733L7UuVP31Qw6x0pvp0iDCODaHf+yi18LJK3+QUIo/0IZAvvA3nVaaQej5pqVgfBhB8Id3TAc5eEXzxIMqxihJvO30tLSJr6lliCxP4h1Mj8v44irwt+Gh6hdYwnQD1gSashr0753g5Dtsxmw+tOmc357vtDiff7bc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BgQ6XWu4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53AFFC113CC; Thu, 25 Apr 2024 08:53:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714035200; bh=39w5XQsRAGKnURUuXsQ1Wk8XgraObcOPly8hISIv0IE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BgQ6XWu4j//NQ+XzmO9Edx2/vMnfoCNacDVh0oH6Igb9ft6E2ihSDh5gTNGuNBf2V 9ALM3rKYjIQP8K0QnFcPOz6R7zhQ3nuAo6Jw0/bCIOhRHj2QYCS0L4UE/tzAWg2a/k mKycos2AMlSnwKLkFzY2So29mkpIjYmIYvKDNgrug0F91n+ZOLHbuh9wQH1aiR+peQ j97t1YIB5I/8A8z73fWpma6KnBND+XcB3y5eh6iLfFYVOF9aDsC6OES1hEm6BayZKF eHjxGjhzz8HVgO2XLyqdNhLSskCSBg3PYMZzT+cyyhuFN/P9vcXiNFcPiv6yKeJdbx pR9r4ZFdyHTWg== Date: Thu, 25 Apr 2024 10:53:10 +0200 From: Benjamin Tissoires To: Andrii Nakryiko Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH bpf-next v2 12/16] selftests/bpf: wq: add bpf_wq_init() checks Message-ID: References: <20240420-bpf_wq-v2-0-6c986a5a741f@kernel.org> <20240420-bpf_wq-v2-12-6c986a5a741f@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Apr 24 2024, Andrii Nakryiko wrote: > On Sat, Apr 20, 2024 at 2:10 AM Benjamin Tissoires wrote: > > > > Allows to test if allocation/free works > > > > Signed-off-by: Benjamin Tissoires > > > > --- > > > > changes in v2: > > - dropped mark_precise checks > > --- > > tools/testing/selftests/bpf/bpf_experimental.h | 1 + > > tools/testing/selftests/bpf/prog_tests/wq.c | 8 +++ > > tools/testing/selftests/bpf/progs/wq.c | 10 ++++ > > tools/testing/selftests/bpf/progs/wq_failures.c | 78 +++++++++++++++++++++++++ > > 4 files changed, 97 insertions(+) > > > > diff --git a/tools/testing/selftests/bpf/bpf_experimental.h b/tools/testing/selftests/bpf/bpf_experimental.h > > index 3329ea080865..785b91b629be 100644 > > --- a/tools/testing/selftests/bpf/bpf_experimental.h > > +++ b/tools/testing/selftests/bpf/bpf_experimental.h > > @@ -470,4 +470,5 @@ extern int bpf_iter_css_new(struct bpf_iter_css *it, > > extern struct cgroup_subsys_state *bpf_iter_css_next(struct bpf_iter_css *it) __weak __ksym; > > extern void bpf_iter_css_destroy(struct bpf_iter_css *it) __weak __ksym; > > > > +extern int bpf_wq_init(struct bpf_wq *wq, void *p__map, unsigned int flags) __weak __ksym; > > #endif > > diff --git a/tools/testing/selftests/bpf/prog_tests/wq.c b/tools/testing/selftests/bpf/prog_tests/wq.c > > index 9a07b8bc2c52..26ab69796103 100644 > > --- a/tools/testing/selftests/bpf/prog_tests/wq.c > > +++ b/tools/testing/selftests/bpf/prog_tests/wq.c > > @@ -2,6 +2,7 @@ > > /* Copyright (c) 2024 Benjamin Tissoires */ > > #include > > #include "wq.skel.h" > > +#include "wq_failures.skel.h" > > > > void serial_test_wq(void) > > { > > @@ -9,3 +10,10 @@ void serial_test_wq(void) > > > > RUN_TESTS(wq); > > } > > + > > +void serial_test_failures_wq(void) > > +{ > > + LIBBPF_OPTS(bpf_test_run_opts, topts); > > + > > unused leftover? Oops, yeah. Looks like it. I'll send a removal of it while fixing 9/16 Cheers, Benjamin > > > + RUN_TESTS(wq_failures); > > +} > > [...]