From patchwork Tue Feb 6 22:04:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexei Starovoitov X-Patchwork-Id: 13547845 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1981BC48297 for ; Tue, 6 Feb 2024 22:05:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 965986B009B; Tue, 6 Feb 2024 17:05:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8EECA6B009C; Tue, 6 Feb 2024 17:05:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 742966B009D; Tue, 6 Feb 2024 17:05:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 5CD176B009B for ; Tue, 6 Feb 2024 17:05:29 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 10B3BA1A19 for ; Tue, 6 Feb 2024 22:05:28 +0000 (UTC) X-FDA: 81762761136.24.4C3083D Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by imf22.hostedemail.com (Postfix) with ESMTP id 345C5C0022 for ; Tue, 6 Feb 2024 22:05:25 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GeO0oPoN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf22.hostedemail.com: domain of alexei.starovoitov@gmail.com designates 209.85.214.170 as permitted sender) smtp.mailfrom=alexei.starovoitov@gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1707257126; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=kyKA4wCImIZZ5xJE04KmfmUkjYhSBJW7+tRHKBcOaBI=; b=VLtJEiIo6enIguduBAJd7vsXOz2U8CBv3XNKzmdjYc0G9+smB8SKxgZQoHfZbkalRFTcnB OqtoFuR4X1oTUsjcBLdPMR0VJfotM9D5KN/XsbjHG6YWv0Y8YVqHxAf/+70GkPHq573bib rZCWsVPkh67AoUVBmx+aKauZ40BYUMw= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GeO0oPoN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf22.hostedemail.com: domain of alexei.starovoitov@gmail.com designates 209.85.214.170 as permitted sender) smtp.mailfrom=alexei.starovoitov@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1707257126; a=rsa-sha256; cv=none; b=dkN6mQXsK8a6ac1mtFsrUZAv072atGt6tXfiagvSwO49TKPq/dKhg26Cw+d6QmRpb9oqkp nV74SFLPMfIHxMyzWPE2/sTrikv5aV96TGUON6iiqVnelqxbGJ+QjattvGeXmTGd9sEGGJ NyTEK5SRxOeruYX26KSLDInl8wIc9UM= Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1d953fa3286so32145ad.2 for ; Tue, 06 Feb 2024 14:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707257125; x=1707861925; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kyKA4wCImIZZ5xJE04KmfmUkjYhSBJW7+tRHKBcOaBI=; b=GeO0oPoN7ofBTQT8xy50nISAFl0wPH6j87L6HdaOmL6imY8TU6VtoUDaGgQbHiJLFr dpAwohXvUHz8lgPrzBTG+uy0fabyQUW6xK3JxePrOqITlSZ9vJeNYabD4/GzMl3ZzrQM WmuuZhu4HI3AXHF+4hMWTKM8XQts12w0vtkCRZpXAz/AhFL0b6otTKWkBsqDkYwquAb4 0qt/ukpCGewU1qfrG9EdjxD9DeHYfGYikTUx743ubutkhVJf8uYth5My/xE44CEs9iSp WM9/8TpT9N5qUj1FRhUZf4UOLXZHQaHIq2C/e4Vos+Dyfu6JiWV99mguM9S7nn+zcpnr p29w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707257125; x=1707861925; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kyKA4wCImIZZ5xJE04KmfmUkjYhSBJW7+tRHKBcOaBI=; b=UGMLrmeb2Q/gBWYWxLUpf0wQebntnvI2x+QobqV+fprqWMJVH38T9jar6wcURQ9MiV vjI+SeZp+W61CUf4ytChd2nJSds7SirppCE7z1BqhKKzjnGxCVptfPPy+XV4fUkRuLPe MZqLM5zsCu5vJjbzCEDVdBvJO0CGgTPI6Qklq1qqPtiOfRkgWV9Zz4/kUO+/OoD0hGFR Fp70ER1hzVZ3stHH7uvC7kE5MBjoaLZDVQwSdB1c0l97KTxfX2DGoLJb0llao5bJlbCL VZwEBn165VgmIB0g9p+OrtfAnNR0pf+yBhhH0zHDtrXqiQFmpeUZU2eP5K6clS5gkLFV 77OA== X-Gm-Message-State: AOJu0Yy6Cr2hKGvc5mwdRhMSZOgb5HCjs0fsS/eP5z9c4grjzhqkJPVr hwSLAKVvDv9MOXrblQV08zuEyqgHAXhUmEd3BvDxhGYO22OnB3wj X-Google-Smtp-Source: AGHT+IFCXZo1wWd12w2djsRFUVDKXDBOg++Oi4WlWVJBWuRKgnQggkaBieLi7zmDvrE2yA+j9R0Veg== X-Received: by 2002:a17:903:2344:b0:1d8:94e4:770a with SMTP id c4-20020a170903234400b001d894e4770amr2939440plh.51.1707257125081; Tue, 06 Feb 2024 14:05:25 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXTg5DTgGf7yruJqB/WI8D3C35qukvbUy1OcPrsmlNmRj3bMZLrv6ZKXl+1ZliwY5Yh+RSrbBH5jJH4p9m8Da+qCe4R7jQ30NGMqR05TYm6hYqiEn8rHQLlMXL6NgE36kXCg7GqxrsrdtD2zHMjjnwBdDAYT6ffHki+e2V66HSHGIdS3pm2Bi07FjJ0b371OAyhqlw/auRDkPE0BfpAnLuFVa4mCeL/MsiaPAHWAYGJs0SX24t1cZkpz2mX/gCglBvOUJsHd/acn6fNCiNO1QmPODy2sogSJAE7 Received: from localhost.localdomain ([2620:10d:c090:400::4:27bf]) by smtp.gmail.com with ESMTPSA id w20-20020a170902d11400b001d91b617718sm8619plw.98.2024.02.06.14.05.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 06 Feb 2024 14:05:24 -0800 (PST) From: Alexei Starovoitov To: bpf@vger.kernel.org Cc: daniel@iogearbox.net, andrii@kernel.org, martin.lau@kernel.org, memxor@gmail.com, eddyz87@gmail.com, tj@kernel.org, brho@google.com, hannes@cmpxchg.org, linux-mm@kvack.org, kernel-team@fb.com Subject: [PATCH bpf-next 10/16] libbpf: Add __arg_arena to bpf_helpers.h Date: Tue, 6 Feb 2024 14:04:35 -0800 Message-Id: <20240206220441.38311-11-alexei.starovoitov@gmail.com> X-Mailer: git-send-email 2.39.3 (Apple Git-145) In-Reply-To: <20240206220441.38311-1-alexei.starovoitov@gmail.com> References: <20240206220441.38311-1-alexei.starovoitov@gmail.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 345C5C0022 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: iyeo96gwxaf9n8w817n57znohwbdyrys X-HE-Tag: 1707257125-126692 X-HE-Meta: U2FsdGVkX1/sabn63z6lFPOH8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6jspKznNVRrfRHRexG+VhtuT5OqS6y95OTX3Bg+K1AaI50AuOmInhuqiww61FKyiWfnE+qEdq3yGWmG5DZixI6b+hnJ8ydajpUtKM6kCv/9xtCAVNgK/slVHsBhUTc/izy96At1j4JhYgNoIXe/GZykHkkQTcGoi+G8g+l9RJuWK+LnlPihTPpdpFOpiMuTmnkHwe6u2WxpOtXMqinjOIjufDEmjpSmaH7i88w6URAT6c8gC9rAFP8lY/H19lKNENtLIKrKx2fpxz9GA5VvL4aQ4p/gis/KpgQnhEc6mvoHcMhF3Ca5aDjS8M5vetWKvWIgqhXx26t3PxKCOyZkSCypsZCgTjHkbss+7e5FK9f0lwRsm2FK1QqZ3kMXMSsB8za4K9QSD//S2zF0HXUfcoApTw9JbuZgt8X9zhaPA572rR8Cvq1LJoPLcFmnqIICrjgLxdCLqUy00IBjkCxCMUjurV4FiIQ1KQU1b2KWUHIAQ0BP2NLRC4gSIRnmxe1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.001851, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Alexei Starovoitov Add __arg_arena to bpf_helpers.h Signed-off-by: Alexei Starovoitov --- tools/lib/bpf/bpf_helpers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h index 79eaa581be98..9c777c21da28 100644 --- a/tools/lib/bpf/bpf_helpers.h +++ b/tools/lib/bpf/bpf_helpers.h @@ -192,6 +192,7 @@ enum libbpf_tristate { #define __arg_nonnull __attribute((btf_decl_tag("arg:nonnull"))) #define __arg_nullable __attribute((btf_decl_tag("arg:nullable"))) #define __arg_trusted __attribute((btf_decl_tag("arg:trusted"))) +#define __arg_arena __attribute((btf_decl_tag("arg:arena"))) #ifndef ___bpf_concat #define ___bpf_concat(a, b) a ## b