Received: by 2002:a05:7208:3228:b0:82:47:81bb with SMTP id cb40csp2631273rbb; Tue, 16 Apr 2024 07:18:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXnKRMzjsKN98S9MmT6LQbJzkYfnBluLXAeAINfMa4e4t8QZ67pxA6m3PiwqZug2X9WPFcPlUNUtHh4BnBQ5ZeLwaL1lEhkF9gaAzozUA== X-Google-Smtp-Source: AGHT+IEK1gs9eWVVvU/EwJA1RVQo0khhXy/A5mFyLoGtSLKr//8lT6d2wMZKbAdelVAtFxAQ+PZz X-Received: by 2002:a05:6a20:c916:b0:1a9:c843:6f37 with SMTP id gx22-20020a056a20c91600b001a9c8436f37mr9405467pzb.19.1713277084857; Tue, 16 Apr 2024 07:18:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713277084; cv=pass; d=google.com; s=arc-20160816; b=dGUyLW9jlyI5apR0R8gFGraDuQNOm2osujyNgXBYpjnNG9nwkV6ign7hS6cu8Oz71/ FHDLR6hMYXbOu7F79Cax1hk/pMbYaf9tR9uQFGTsYsQFpeE4mQpFmEM/S73c2qL7q/b1 eC9aH6BqzQHkEnbJdF+H1PHmAywEIcDxUeDKSJPoLnyQku2bODS93kluki1asCucVZEc 2dadzOQQc/SJu7s9oXF3qcX5/aCmIo17eI6FfXqDsHQ0ESBmV79Kp4//N68ZcRpOmsL1 QfvizWoJjqmaecZZPkS9IiAPkfeXf5yybP8z9bX6rE2GcCdw1ahjI7HItCb/CKP++5S+ PTaQ== 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=KH+oMH0FUDrTJRX0gGM0l2p5ryluLJcosUkgXEg6Sqk=; fh=Cxwo/A+C89tjOzVq8R/o/DH+l+P6Lpt8VwbqwppZI0Y=; b=zTh43x3TMJ8IcbOysKytAzVCIU/T53nNkGDXEpDsddHQzodA2Jnk+1C3CpTsPi0fK5 g5rfoSuC7wC+FU8blZm4a3pGwlf0VFydtfKiciqTWWnqwKOR1ySZjM4GLOjY985YOI6i uk18LaNojhzsj34v2fJRdv+bOEIcfgSMR9o1fjOuvscPncy4vuUXzHAW4Y7jaCoWck8L Ml3fqvARVd57ZU3bNkYPRMbryesdeCieMaYDwyzVvBl8Inno2BOAy92NerBeqwaE0klG TaC0Bv7KLr2aQ9WYgIWBTXoCaCMuHKcmVEqkIEU8gzoyLQflZtuZjZ/ZpTCS0deAblq2 1Hsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C07FtjL1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146965-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g5-20020a170902f74500b001dd8daf99a5si10186718plw.195.2024.04.16.07.18.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 07:18:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C07FtjL1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-146965-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146965-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 324BB2871AF for ; Tue, 16 Apr 2024 14:14:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77E601327F1; Tue, 16 Apr 2024 14:10:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="C07FtjL1" 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 95878133293; Tue, 16 Apr 2024 14:10:44 +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=1713276644; cv=none; b=qUcH2c7wYmKoxuiSvHow68QZ3jqtLaG4v2tMmYMw/lAFloSkGSa59v30qLg+nRUSPrswrizIEEYGcPmkpqJT1Yhf+LerOYH5WsuBAClKbuXFPweE1Jiht+jnn1/hr5qjn2YxcgDEzlnE557bZZx/QV6+8fjngoEBc352T3M1F6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713276644; c=relaxed/simple; bh=Wbo+jTnF7UNG9GPzXTp/Kv/A9HSwxFmESxWeYRoaofM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hXJTF0YmmcyimB4HK4FlOPptVBE4wfpht+OREQH+0r5So0mmUH9m5JYFNM9Z0Dk3Qdn+bU3IbVAiWWa5jU9SEi/bolhCaps+hSM/KkQYNWNwUvsiMUzHQwXLpaZDHdciuzr/hm1SM4cY29xB0/o6cqUMK9rnDg26guzuk6/yLhg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=C07FtjL1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE3FDC113CE; Tue, 16 Apr 2024 14:10:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713276644; bh=Wbo+jTnF7UNG9GPzXTp/Kv/A9HSwxFmESxWeYRoaofM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=C07FtjL1fSZVEO4J7iwoDlEzaAIek9xPBjKZziJf3HOIa6TPM49qRlfrMThuLd4zW jXHXWRKT2hBvt2K0KBtPGW6dUY9MIwZLlfzRQaBI2AW6ggYBT3HVGiEcmL45Jy2OOV sXi/tHbRpE7QYFU5e0OfyQr8M4ajcg7R+FDR7u5/Zjzgi5yJ4Vd6NQc1nf3y7N/JJf WeD4hOiv2EYNEVf5kz1fYqg40QvsY/maNb+6a5V0AGdIIFxK1hXh8GJn86YEDxiHJ3 qImAg/4SLHI3a2dIpoDa5125BsEmEqMDBjaTqwSpUiQ1x449Kb40PITm4xzduU/EkA dFzRgfs45tmnQ== From: Benjamin Tissoires Date: Tue, 16 Apr 2024 16:08:25 +0200 Subject: [PATCH bpf-next 12/18] 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: <20240416-bpf_wq-v1-12-c9e66092f842@kernel.org> References: <20240416-bpf_wq-v1-0-c9e66092f842@kernel.org> In-Reply-To: <20240416-bpf_wq-v1-0-c9e66092f842@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: bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Benjamin Tissoires X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713276593; l=785; i=bentiss@kernel.org; s=20230215; h=from:subject:message-id; bh=Wbo+jTnF7UNG9GPzXTp/Kv/A9HSwxFmESxWeYRoaofM=; b=gaHcM6/jsovDNkSeKfzaVGacq0f8WUTta54Xs16cVrsjx6nIVtAtpaJnFrLxWEDDhJi2rpgAQ TYiDQSQO70FC0Cs8psJSomQWojnRHwNK5f3epGrf8X8CHZgfZyiq7gL 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 --- tools/include/uapi/linux/bpf.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index e4ae83550fb3..519f6019d158 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -7502,4 +7502,13 @@ struct bpf_iter_num { __u64 __opaque[1]; } __attribute__((aligned(8))); +/* + * Flags to control bpf_wq_init() and bpf_wq_set_callback() behaviour. + * - BPF_F_WQ_SLEEPABLE: the callback needs to run in + * a sleepable context + */ +enum { + BPF_F_WQ_SLEEPABLE = (1ULL << 0), +}; + #endif /* _UAPI__LINUX_BPF_H__ */ -- 2.44.0