From patchwork Fri Feb 9 04:05:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexei Starovoitov X-Patchwork-Id: 13550852 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 3B341C4828F for ; Fri, 9 Feb 2024 04:07:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C4C9D8D0008; Thu, 8 Feb 2024 23:07:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BFC508D0001; Thu, 8 Feb 2024 23:07:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A75F48D0008; Thu, 8 Feb 2024 23:07:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 94ABB8D0001 for ; Thu, 8 Feb 2024 23:07:02 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 6590CC01E7 for ; Fri, 9 Feb 2024 04:07:02 +0000 (UTC) X-FDA: 81770929884.01.35B7724 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by imf03.hostedemail.com (Postfix) with ESMTP id 8480420010 for ; Fri, 9 Feb 2024 04:07:00 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=DMNadKqm; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf03.hostedemail.com: domain of alexei.starovoitov@gmail.com designates 209.85.210.174 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=1707451620; 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=O21oo1KqPxremF0Eryh5q3R948tWBcjbvIFhHXAOTk8cXcAYmaUZEoNpSXu8ETDsarxuII 5fKNuU9h6fNzZSG9Yp1IqDwHswwmCPL5dv0Eep9cgt47YdV0HDK7eHoZv+1su8NPRC60mf O2IkhJcOBEA7OKG/8xKvctcd/qTKI9w= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=DMNadKqm; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf03.hostedemail.com: domain of alexei.starovoitov@gmail.com designates 209.85.210.174 as permitted sender) smtp.mailfrom=alexei.starovoitov@gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1707451620; a=rsa-sha256; cv=none; b=thRvYxgm/u1ne0DNFT528s3CR2PqAS/NNi0I8uBCS0V1q7AaxHBMWuf2LPUiA8pRXKzugH dap9d1yHP5mMGyp9NHGQmqyIRMqwkwkSM8NobSyNDAP8i/6f5vMcOhkMnnhStH+mQmdamR 6H6zrrCx1oytG4Vr2yvYF2udLUJ/k4Q= Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6e055c89dd9so1346712b3a.1 for ; Thu, 08 Feb 2024 20:07:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707451619; x=1708056419; 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=DMNadKqmRZGbM14bT2gJ+lvbG3GSKGBDxmnnxYkLZNvsSq3bawscGNqLUumWX1T8FJ /NZG0o1xHdEYgWPAEdTFU0UClmeVD0apJP0VSu+O5jcCgyxAYRuU0xpFnKW1pIzOPKTF GvPROmnuvxMwYqkiBiYZk9VOH4uBONEbrSpEoHwQBuV3c/JS7B2tnXmdqo83NS4IkDHi hcFRe+zIvN+d3+iR7BTLCqKAxc3F2jhl3cRdBrirOCsSXtvKBO2JTYDO5+BkvYvWLZOb K4u+wRGN8s5Kg3Sj14aMI1wRB1I0YekXlilEMcc0hsASfjnz/MRAricb5XXdePo1fO3n frtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707451619; x=1708056419; 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=t38jG1ExAjRqWM7y9wPVBNtYKFvBPkMaztfufFBivf/AKkvERJHSgSQTSWLGoNmdcT 3sHrI2y3G0JhBtoN41avoCkkoQuAjmObd8OrGOwtRRSnDjRijggAWmw8WRBsUzZANmju m4dZJWwBHEAxZcu6PmyG7V+1QjgKqs33sECodrzl/oBgGdQCwd5kcmutkJRt7XmzBxh9 /9HMeUBNNGMTfQl90s9IT+dgShLj8zYf2CHXOjlp9Y6TGvm78xW5TFDTFTFwowcC3nBC dpvJiKEB/2VZn2EqrgNkJJlQS7JuzLL44OvXg6i7E6A9R0cJcUaLm2v9JI18DBrN5i9L EfQw== X-Forwarded-Encrypted: i=1; AJvYcCWoi5TFn6RBR4T/W06mMEtjy7dBP/CtVvbCxrsiMMcM0tf4HxGhMnOU8BN7vQjDt9aZBleQdUaAGrrgeYa35nphRdI= X-Gm-Message-State: AOJu0Yx3H8WUOlMUHAMV+uQsqVdTI6qi/+ozOVTruVuUQGQMt2rGd8AE MXmQcQZVfngkRZdt5Wyh4nn1s8IN2H4hvv/U6M3cflwUOaYbdA7V X-Google-Smtp-Source: AGHT+IEcq3u8IxQEchLTqYOdj8JCUTyhf++9XKhZV1VlMQZ/9+Av7nCVAWvySSMoNnMsdtUnppsIjA== X-Received: by 2002:a05:6a20:8c01:b0:19e:b477:33a4 with SMTP id j1-20020a056a208c0100b0019eb47733a4mr520269pzh.27.1707451619456; Thu, 08 Feb 2024 20:06:59 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWQEeNvrqoRwizmtNe7laAnu501WQNUUrnNc5bjAfQWP+sx+w5e2Fh+IdN7e3m/thOyA1PXmPbUrKFF2iv85lnNbw22sei0R1dMfM2b8sjF/scMfelPDzWIRLb3Rbmeu0nynfi0QRD9uaXnafRn3hsJTcHF8/wZcK3Qf+kv3Ni8kHO8NrzDQeHD4uLmFd/P0i5q1NYeju6EtjYm1j4OJY8+q7gyU4OR7agn4uOilcwA8qebcGY49lcc99jxuByats2X9fUO/pyRnbvi0DCQwCENKvViTtlTpGJaicvrQlE97J3YVk3FS629SYdh7Ivcfb+pS7C/9gwvPVJnwZqDz03apakQb62uN7S8jWHLS7hJgoSz3YlDeQ== Received: from macbook-pro-49.dhcp.thefacebook.com ([2620:10d:c090:400::4:a894]) by smtp.gmail.com with ESMTPSA id f19-20020a056a00229300b006dbda7bcf3csm589192pfe.83.2024.02.08.20.06.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 08 Feb 2024 20:06:59 -0800 (PST) From: Alexei Starovoitov To: bpf@vger.kernel.org Cc: daniel@iogearbox.net, andrii@kernel.org, memxor@gmail.com, eddyz87@gmail.com, tj@kernel.org, brho@google.com, hannes@cmpxchg.org, lstoakes@gmail.com, akpm@linux-foundation.org, urezki@gmail.com, hch@infradead.org, linux-mm@kvack.org, kernel-team@fb.com Subject: [PATCH v2 bpf-next 11/20] libbpf: Add __arg_arena to bpf_helpers.h Date: Thu, 8 Feb 2024 20:05:59 -0800 Message-Id: <20240209040608.98927-12-alexei.starovoitov@gmail.com> X-Mailer: git-send-email 2.39.3 (Apple Git-145) In-Reply-To: <20240209040608.98927-1-alexei.starovoitov@gmail.com> References: <20240209040608.98927-1-alexei.starovoitov@gmail.com> MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: sbbbjgetk659ywwfta3m6xyt16jzqcqb X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 8480420010 X-HE-Tag: 1707451620-340762 X-HE-Meta: U2FsdGVkX192Ve/fVPuXIBiKqTUC6+O/BLJvcpKikIXgcYqW47PZ0FU4NcVk33W/pJBDMGxNY39S55b7LWCo+qGA6Dc6TaUR6tJzupsOY9WtY+pwj/ebQPJmxQJhcXCQ03NxWOZncd+H61Vt+J9vrlqTBpya36mKnzEsgdJDCPR0RvR2IBgzpxxnU+Bcauqv+2QuACll1kvis9J/B5FcEXMTgqIdqq3wpG6at15/mlIS6vwJA1raK9cKlQtjbWyOeGPOGgmI7KDMQBy8IVslhGVnkLfWTXrVm4ngm8KllvW0s8Asb495X5b4OOU7GM2/73Nkxo+tAEHPBOhjcPW6zQcZIEIsu7356Rorg7Jkot9cyQKL1cJh4KrJ5qocfCMFk0s6sQlzxcbxD5pZUu35ly98kVBLE+woT5fgQmdTio4IDs0gB5kUB3IQbctG9yRVNCA4Byz6QyDZhr7EbuiPcxI/LuNtNp13rjRvBpxMjuc4p7v8l0Rqn+XFCiNCiOzbkHsRVOeseJAx4NSUQLN1V5/lzazx3DKunRjm0s2i+gb6pIptJcOfv/V2nKOM8HXvELVVZycqa23dntztSKhtZjZ7P7flY/M4pAN7+0EbktoQ4ErsCjz8yz9QQEFyUh7S76dNIJRBb4rSDGUVHmQEojeSqsidYMR8zgaSoPzk9xLCUMsJFL00PCdFgqqyc3B1QRkOhPFwtK0jnkQ2bFEZMjcyn2br4fJmzRd/YWRbTeXErKWnE7byrlctglKUl5oXfE1zt70EOpj3Cpe3/lYH053FrJ3h87R9OmavQScA972KulPv73JOb2iIAtI7asrD6x3ULhciAR+LLA17glGi5x6r1tIbtdE0wO8Y67dn7fPV9WULMV+XfzKv6YcNR9kHTwokLrEHx1BXFAByccZgLCX1kPzHWUzEBHgx2SyJFQ+iYj6e0JJq/2i00PysIz4SedvTqlUMc7xJpPdIPVA 1l6OhubW BDRi0suJdWuR0yRokKa55EQsSq8JlgG6KQutT8yYLjcwTuQwolLXcXFJbXOGBd8JWrkEslyQa99+BcJgSZIvbwsnIH2wecmHPBRw+7LpcoXQEfGQ42tFCcFYFqwbCtcdzqRE78BghwOr8HG3spFyBkI0RMK2t7qaUqj/kNHa6JhRINRWFxUldwezg3paWmVCB8AVSx/ySVnNoo4hm7OvWqid7/NUGmnlRPReQ3yLZLlR44LUrP5OT6ji2uWjT5kJF8J+cQYXOVGL0VVOxO8hzsBY7ECPSOVBQtx3RnwQeAIHiBmMF+8UbmHIRt2g0U+Or7r/Kt3uGX7FyoiQ2UQkj8UQacPxdK4RWbArhUc4rfzrAQcpigDBSnkNxecQiICaAVXHdSOO0YOqf+ZFoJalHx6D2MExhHcYP7+fT6IeruUlrQALus9wCf9ezBT0J59RakUpQJOBBSVTvLpNfwdt5digX9FLosHx/+Pf3D1Z9pM2VivViFOQ4z6ZgqfOLxtr7DBd1fdb63EglqYxkgWdDMNkYBZt4i1y/TLNmQyVRutEAHDAgrbRhk/Jghrowv6KB30Yr5yoY7+jERue3sv4LIxZD5epewroT8fJX X-Bogosity: Ham, tests=bogofilter, spamicity=0.000200, 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 Acked-by: Andrii Nakryiko --- 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