Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1380084lqe; Mon, 8 Apr 2024 07:25:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFrSj53DBtBq1y8YpUUs/PtoCYGgest6KL5xP079OpI2osL/LSV4k147atd4Oh8XdROWQPi3gFzF7UVz3n8+XiJBuBFlbZV2pwA8GD7A== X-Google-Smtp-Source: AGHT+IG+fmyCD3va+nxFEiuOJRMxvI4/xU++6/79OTlC0w+kn2rnNu++ru2eQONi01szPMJ3tD7Y X-Received: by 2002:a05:6a00:a13:b0:6ec:d76b:6fac with SMTP id p19-20020a056a000a1300b006ecd76b6facmr9490392pfh.12.1712586315472; Mon, 08 Apr 2024 07:25:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712586315; cv=pass; d=google.com; s=arc-20160816; b=vIjYlIy5RezMTYnHZrvz9vr8d0qv+HCG5LbvzMYmM7VQK510/3EtJKhMaqjzvYPOlA m3E826n4V9XFkfTsQrhmO0pDNhTniQo+Ua8GKRJdcmmRzGNC1q7HVk3XFulQz2gRWGSE Cek7I19clqv1gVPQHg7DYDSO0WVWxwxj3TMD6JGsQvZgTHU+5hbTQp3WIZkvENj1a5nP XT7+Zkk8Gfei1wK0Po2mR0t18L36wq5E0RLPi6c9cs7ZcYSKEuosSVGhm5IwIZcrpI8A IjGSU6Or14Ukeq0043gNawIIx4pBqdJS9y1mHn5/CBbMOnOGNyzWP9LIj7VKZccLEQGs 2FTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=jJ+zuBcV+sKNJnkujCJL6uqR40a6L29gK2qouWWtUE0=; fh=iJyWoeKHTYO3pb/20J89EnvZFOe2jL0u/kEpV8lNnlI=; b=Vb3u1Kp9QjfvgzVUsnxriZZJ757ffZRwCgQ5zjVO7TvvdhLf/zpTuLLAeHENB1xEZe MTawvWNQhMTvmhgy8lUFj2CzPuTxFKrnHLf3I0gNvuNvsBqgsGFLd0HibKJq1zbIYO7j XySOuiqRqO49bN225pZb9wqSeRSAuUJ6KYtXAO0Jre6nQmxOdO2RnZ5fCo9twiuSt5bz GYmLwx7cm8kyaEHcBZPXO3Ly2F3C3YYKPGgqnkdHtsfbo5h8Q7teG9/QJR9yfmrP1qw1 /llEwBqBfFribn1I4WS6QyGayM7o9iItVoq9pswyqEZovXaiWuUsYLXrKan4K8WEgkmP Wj2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QxE2bPgR; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-135514-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135514-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c137-20020a63358f000000b005eb4df79741si6224284pga.533.2024.04.08.07.25.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 07:25:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135514-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QxE2bPgR; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-135514-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135514-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E93FD284EE4 for ; Mon, 8 Apr 2024 14:25:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A92C5127B7C; Mon, 8 Apr 2024 14:25:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QxE2bPgR" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D26F1CD21; Mon, 8 Apr 2024 14:25:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712586307; cv=none; b=SuwLYuAO7hur2+R5YJSE+JgC/Pk52ZM0CyR+roelZK7Fqj4k3gxc7oJLBo7urScNXm5h98xd0zNH6gUHf/5+QU0W69y6Ap6WrqyewPI9TT0jbLAI1GBRCp/LI3X38pB3rh/MPa0pnCRIQOxAi0V2E1ugPS2lWKsg+YbhN700RIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712586307; c=relaxed/simple; bh=vs3XBmNffGkP+0cG+4YcsNFdxxYDgMGq8O2+X1Zb9Vo=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=pFfKgQB1CugkIMPnsN4r9Tn/O2yGENO6K8rC3famannlJMlkNhWmRwqs3eaHKonOZq0LnLoVAW7GNVmiXPHvCOXjgwMRLGIM+LoJid0xPuiSxmTO0InAbBkE7cXCIoyA4gjxVVP0xMaGjYiaUUNOZZJASPmHCdltRxgJmhdVTXg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QxE2bPgR; arc=none smtp.client-ip=209.85.218.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a47385a4379so1019907566b.0; Mon, 08 Apr 2024 07:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712586304; x=1713191104; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=jJ+zuBcV+sKNJnkujCJL6uqR40a6L29gK2qouWWtUE0=; b=QxE2bPgRFF/0FH43bYbgxuiApsO6WZLg/rgVUHCanLedOtKN4sG1LtdpQbs416ulOa 5brihBK4Oyz+wo5CfDhXdH1XlOGue4K55kvotAz2aK4Xm2ka/jYNbEv9WWzaRfHhDFcb W497Q4yQkXjEXgX2EcIAgfIYfhpkG+Caeq/oUrXu64/hpwOoAA/1mq+VTI9enKVWiwN4 kQZh//CEGBZoewO/nL/rTYpWm8CzC7TperXoptCSH+F4yT5UPael5JxUxyw6tQ23TbGr P55atkVwPgIRO2NFKqasvd6zl5PP0DskkQNz0Ow8xI4mBFYk5vnjOKuUAS2Flfp6mtn3 H+sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712586304; x=1713191104; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jJ+zuBcV+sKNJnkujCJL6uqR40a6L29gK2qouWWtUE0=; b=CRhfYR0ff6ViLiLzxAhFsTWK8O2zd3R90T+UZhoHYvpmq/oA0bRX9jE0w+KT4J+ay4 72CC0MoCrnltF/CdzxB2Ed+eb0I97yzG38hZVKf8u/v/ytyq2UNJvhZD4Vp7LcsiZT9o rPLhqCGaMJGkMw2t0M5L34ko0CiX/Xx5AxnZ5yiYkFQoFfyRye5F9wQufbOJCOJXGqpR QnheGICRpAEcoiVVzEq2rlqRnxjbK7gDWBiB+J3CdC+wrlF4p0QQALP2BA+iq8TjAhc5 WBqhu1f1l0pO8hrcE5+EEjjm4nE/9cgsNBSSZCeWllDMeErcBxmRRTYcJTK6VP2m0Pv3 X53Q== X-Forwarded-Encrypted: i=1; AJvYcCW68jXqYq5TTzqyqPGcJFAJwQkybz6VbgLallx9oUmNo+Z6F0yN0tai9zaiZ9hVfpE+jwGbqQNeCUvELyXXYyH8XIGqFduqFRjEtXMnSMbSzogELvhRFuNJ4jzB9hOmFCkdKxfsgH2VgjXKMvJx X-Gm-Message-State: AOJu0Yx0CW/iX5mwpnQD5s1r5WtQd9cILtRtjABu2V/DvLiWtdDwaBjU oN6JhZzQya72bCj1oM23RMDaiNpwbsCYyvduk5kIQ6C5YoskIbVv X-Received: by 2002:a17:906:7949:b0:a51:d48e:52a0 with SMTP id l9-20020a170906794900b00a51d48e52a0mr3012741ejo.27.1712586304338; Mon, 08 Apr 2024 07:25:04 -0700 (PDT) Received: from [192.168.100.206] ([89.28.99.140]) by smtp.gmail.com with ESMTPSA id lx26-20020a170906af1a00b00a4e440989f5sm4487554ejb.159.2024.04.08.07.25.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 07:25:03 -0700 (PDT) Message-ID: Subject: Re: [PATCH RFC bpf-next v6 3/6] bpf/helpers: introduce bpf_timer_set_sleepable_cb() kfunc From: Eduard Zingerman To: Benjamin Tissoires , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Date: Mon, 08 Apr 2024 17:25:02 +0300 In-Reply-To: <20240408-hid-bpf-sleepable-v6-3-0499ddd91b94@kernel.org> References: <20240408-hid-bpf-sleepable-v6-0-0499ddd91b94@kernel.org> <20240408-hid-bpf-sleepable-v6-3-0499ddd91b94@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Mon, 2024-04-08 at 10:09 +0200, Benjamin Tissoires wrote: [...] > diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c > index fd05d4358b31..d6528359b3f4 100644 > --- a/kernel/bpf/helpers.c > +++ b/kernel/bpf/helpers.c [...] > @@ -2726,6 +2764,7 @@ BTF_ID_FLAGS(func, bpf_dynptr_is_null) > BTF_ID_FLAGS(func, bpf_dynptr_is_rdonly) > BTF_ID_FLAGS(func, bpf_dynptr_size) > BTF_ID_FLAGS(func, bpf_dynptr_clone) > +BTF_ID_FLAGS(func, bpf_timer_set_sleepable_cb_impl) Note: this hunk does not apply cleanly on top of current master. The line 'BTF_ID_FLAGS(func, bpf_modify_return_test_tp)' was added to the list since last time current patch-set was merged. > BTF_KFUNCS_END(common_btf_ids) > =20 > static const struct btf_kfunc_id_set common_kfunc_set =3D {