Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp825695lqb; Fri, 15 Mar 2024 07:31:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdzdDnwCV55ixu0irDfxKsPWKujA+qI/wbEjR8zMmtNhPwr8W+QgAlTjq5cclnTNLKuPB5Z8OMIJoc1zgSbwlN0rBCecqoGvZpCKnWdQ== X-Google-Smtp-Source: AGHT+IGTSEQj2GaKpa0R58ynTSnkNxyTzdcruvGEX2Z+ofii7Dgk//VkpaUcdgNDcWFvTpE3UW1H X-Received: by 2002:a9d:6652:0:b0:6e5:3212:a13c with SMTP id q18-20020a9d6652000000b006e53212a13cmr4667251otm.22.1710513066230; Fri, 15 Mar 2024 07:31:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710513066; cv=pass; d=google.com; s=arc-20160816; b=LD7XWXA+4noeiv4uIJ+6QFDHz0nzP0uAB0VyF+mnlT3bT2fkVH9aSazGqjNqpx0qNl 4KQQhkITfgRJ96rL2fK+zldZifNBvPd/ZA3HVcXZjV/R190qMP9mnyzHzJYwD0iklW0T bM8pZqPWW+gYh53HO2PFFHTJxrncy+aH+5xFL1IKahGBEVp0x56uwRGNuixOr7db3e1X iBLffIZHtOO4sRnsQ/DoNFXr8VOWg0Kh73nPqTnip0mKMsqhBA+OCnQaG0Qqo/yclZdH 98R056+1WHE7DlcPFOkTOE9tmywVsvqn3SZhgqmPOg3ClHSeCpXCWqRdA6zl4V7uDRdY GlAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=bJ+kv2chcTjZ0uCwXgb4QxxnG/FHu3y+Yy7KvFyb5lM=; fh=L3UFV6no5Bg+ONjucac5Whrd1OR3maQPkF8kTmP37SU=; b=akm+2qU+OnyiLiKmqsbCMIJkEYtpoPMGtlY4CKMFTr0Ar+wR5PeYV9Mfhpv/kPCLw8 YwdFSUYDqIU/PPn2MTAWRNHK+quISW3z8COSMMP8kj3qjA+h8RkgwMd1PmxVS601bvNh frxMG4FZ93ng4m2rOtQQqy4h2k2WBe3ZlCPyjNsSmdhXwT78O4Ak8z1MBR30sy6MveBd gum7gND6zAG/x08rr/++cR+b2MsAIvElzh77AAeQS4z/eAKrNMuzITpy1+P4Xi9eu7QS uW3vJFr9MQHr40WtP4pAIpaWRoKhA3HKfbAHdZGsdT3t0O9+tP8HzXD3jbOb4aLxtlqt R3mw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WaqiYl6Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-104509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104509-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id vu8-20020a05620a560800b007887a627bedsi3634381qkn.290.2024.03.15.07.31.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 07:31:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WaqiYl6Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-104509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104509-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E63D01C22515 for ; Fri, 15 Mar 2024 14:31:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C8E13F9F4; Fri, 15 Mar 2024 14:29:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WaqiYl6Y" 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 5F4803F9EA; Fri, 15 Mar 2024 14:29:58 +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=1710512998; cv=none; b=SMQ35RTyEoskgVd6Ru38JTYk/bIuztT7KMZDRLYGAJ5GtaqZaBls+tP7RBGZSb2s0H7TJ+eayG6DUf1CXce+WT2LotKIZWOkxY61Dife9u8XYnF2pai23DLyCl1EmzsWdssYhLaUy4dRnnySqSH/yXB0aT8VHBRSv3oryi+nOaI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710512998; c=relaxed/simple; bh=2fcfnf6IWojwAjkJVFYBpNts+ogJLinSFTftkDm2+Ew=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SSkB9bIUHu9GiDn1qxa3XgU1O7XGLXB4hBlK6zTgtFGV+X7YnEWfmbrbW0mF6xJ1P44lnB+fp1pCzkXlWzv+ljgNALJwITP+GZvVx6MYQ0gcQty2pBt/MhZnwSB42rTsPYTcIle7Ln/WX5nxspKKdgEigzOaLlOC52WTbPlO48Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WaqiYl6Y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FAF3C433B1; Fri, 15 Mar 2024 14:29:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710512997; bh=2fcfnf6IWojwAjkJVFYBpNts+ogJLinSFTftkDm2+Ew=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=WaqiYl6Yqq7REg+mKKkoYi/+rpaQWm5Po0vqvzJpOU+vTan2XArvvK+yDDjS82Pf9 pICo9wJHpTSVtJAEfxr4GBWEc2Gs+Qh6FKP+egbF1QHzrTe7eKHi15KzWPZRQ4j61N r2kvXQeKTfQGgQMF9MedgnbLZIfmhI9Yzu8BRrsc6cvZkxy4UbG0HNzv1by71oTrJ2 s6hU7PK9SBxMeposPK3Be+nJ05DY2C4OHd6TvHzq+SghFF7NHSgdtLxOoPve2iEPjf qGxUrwAhnZ9Q0nErYn5YnhjFElFjnrgYAWp8Hsz8SM2uhrT8GlqeVu95VdnC1b37pL eeKWiWO40ADsA== From: Benjamin Tissoires Date: Fri, 15 Mar 2024 15:29:29 +0100 Subject: [PATCH bpf-next v4 5/6] tools: sync include/uapi/linux/bpf.h 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-Transfer-Encoding: 7bit Message-Id: <20240315-hid-bpf-sleepable-v4-5-5658f2540564@kernel.org> References: <20240315-hid-bpf-sleepable-v4-0-5658f2540564@kernel.org> In-Reply-To: <20240315-hid-bpf-sleepable-v4-0-5658f2540564@kernel.org> To: 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 Cc: Benjamin Tissoires , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1710512973; l=1033; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=2fcfnf6IWojwAjkJVFYBpNts+ogJLinSFTftkDm2+Ew=; b=p7+eATGcycPy4c3F3tCschh/kT0RC5Se8rKv4lTXppzZubEWWRz0eQVIWswgZgtW6byCj123X WlCOau3vZOSBoY6sUU3REFN4QCmjCEHZ3ruyD9e5HI4YyWM9NI7VE6N X-Developer-Key: i=bentiss@kernel.org; a=ed25519; pk=7D1DyAVh6ajCkuUTudt/chMuXWIJHlv2qCsRkIizvFw= cp include/uapi/linux/bpf.h tools/include/uapi/linux/bpf.h Signed-off-by: Benjamin Tissoires --- new in v4 --- tools/include/uapi/linux/bpf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 3c42b9f1bada..b90def29d796 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -7461,10 +7461,14 @@ struct bpf_core_relo { * - BPF_F_TIMER_ABS: Timeout passed is absolute time, by default it is * relative to current time. * - BPF_F_TIMER_CPU_PIN: Timer will be pinned to the CPU of the caller. + * - BPF_F_TIMER_SLEEPABLE: Timer will run in a sleepable context, with + * no guarantees of ordering nor timing (consider this as being just + * offloaded immediately). */ enum { BPF_F_TIMER_ABS = (1ULL << 0), BPF_F_TIMER_CPU_PIN = (1ULL << 1), + BPF_F_TIMER_SLEEPABLE = (1ULL << 2), }; /* BPF numbers iterator state */ -- 2.44.0