Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp260399lqh; Mon, 6 May 2024 19:46:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGprLqguy7IGshLDJbUBCf6m+6s6ALcWXnocX+e5wp6TMnpN0+nuRubjW3889A6+Frbi/Qp82JY5e/g1AdUL+C3abp7VMcvJjPIBVG4Q== X-Google-Smtp-Source: AGHT+IEIziWsjQ6tLZlWO+qbigljhjmdt3FCCa3QfKWbkfiGvWpoH0OuthaeRI14mUC3sr8u5KtM X-Received: by 2002:a05:6214:1bcb:b0:6a0:ccab:6fd3 with SMTP id m11-20020a0562141bcb00b006a0ccab6fd3mr14952602qvc.7.1715049967681; Mon, 06 May 2024 19:46:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715049967; cv=pass; d=google.com; s=arc-20160816; b=U4Z/gAZCKW/ciQEsQdWBHOWdgPVzvIIVUM62Sh8IbP3eqyidIsI1Co1eVFUBuY6tx2 OF+VdW64VH6OsLGlm6T1a0MUk/hn1FeBGeNCKyP/O9cbOFnPjcJXZmu1ijysVUXb16xO ZXVtKwOjePWFihcWnC7+Pxb3T+E4SxkcQmKDhNe6PENp1KdZOKBkwFhpwHLvVEevs0a8 0Jtd1sWyR/QCZo8qzz3cDr42xRExlIUBtmQsThkRTdNir6sPScKuJaaT2ueRFaI+hxp/ 3WH/1SmNflWhiwX3cDBY6uVtBe4sqSdTT7RWoiv/yWMnm7z2CaINp3mLTuS0/tyCnzIr Kjsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=tmSQ69yKX+VEjG8LgeVv1C2i3V3NBmykH7ESV/wnZ6k=; fh=9e3DP5TMlL0jeKkEfBqjJh8gHzbema2+SNyqE7m2Rv8=; b=yPtTDnvX80guyTCs6+SL5dNOeoZMjSwQsOLFuIZfdNu1/t+S1HX2x2ryfaoMIaTMny FRoUYS+UuN/xoFB7wvwFfecvrNNMXg3qYkW/YSdjWXPJHBqkjdKGRlKMEKXjxRvlcRD9 TJ7xDlyWeVdteo5Tgf+JsM6+g0Ts3aGbW3iXdZVdaLNIJ6PbLCwf28vtEDYedCn+/QOX gxxMZZE/NWV8m1tRaYQkcUkTUjohxCwmxvsIFkdH3ga8beamFKBwgq/qiMFRQpEqfpfz KPZlD5xOaWoEUTcBDPe2S1GqFrUFwcJTVNWEuwpYXxPSLA9xxDBCnjZkJ/nfS11DTWyd 9PRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Pr5ywb6V; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-170596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u10-20020a0562141c0a00b0069b413ebc4asi10558532qvc.264.2024.05.06.19.46.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 19:46:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Pr5ywb6V; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-170596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 69C0F1C21B31 for ; Tue, 7 May 2024 02:46:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC7AD3BB20; Tue, 7 May 2024 02:45:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Pr5ywb6V" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (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 55AD615C9; Tue, 7 May 2024 02:45:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715049959; cv=none; b=o9BtP0ZCEDFz+Kh1fHsdFFjm7MlcmIs6fr53mXgZ+5SGDmOmfOAJRjcPBO+tptpTUhs4Y/rF5Iqmd+rwGcQpOHzSeO2gugr58vj1UVi+SgkBLK2/ev0p0JuxE1DPIVeBHLETWH+H5rWiAjkONa7Bov10umaQWzUpEwbgxzQWrVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715049959; c=relaxed/simple; bh=4G4o0Jo/rKX6UsEbQz7dosJdScsz2KSFW0v5nc8PWqg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u8RqalhO8oZPw1r8sBkk2lUtzKcilPMwFAZ4KTJ0JMp+NX1h9i9rZ+xX3/wIOzJC8LlD+Cf/8GV6zWxAbLoO3LORyyP/cnN180yI9z7GN1mEQKlTlcJd9UAqSqKbOxSkosTjra7NCY+kN+3BI5r3VDTzCTodbHM3Jb2rl1nU1bI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Pr5ywb6V; arc=none smtp.client-ip=192.198.163.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715049958; x=1746585958; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4G4o0Jo/rKX6UsEbQz7dosJdScsz2KSFW0v5nc8PWqg=; b=Pr5ywb6VEfrc7Zeja5XXGxL+XcfzHQ1RmXZUaHedLEuD6sPDtxpJyFpG gHDcxK40gAuV3izHcxZZi2Wnzg1ab4ebJMptbXY0OLJYuBQOdmW53oBDQ hRygk+GQVdfsg6bCaZ5Tc4PgvLb1YE9LB/GgdiYUDKJ2gHqhTJDwY+N/7 8BF45JEN11lGfd14kdT2YvuLjoDhEmNcIO7ngtOvzpENAr1NLbd7V5lkA jXmT/AE1GlTbEvG1oFFhwdc5hpFMyl0aeSGBmtM0eoEshUuZ2080ZOFrJ e42PaKCKQ7HgtUPdpg43TGjviRVVUuseIKcq7EiTn8t0J7SCAhU3Sa4tO w==; X-CSE-ConnectionGUID: FB/7CP4HRHOFWYdr0BokRA== X-CSE-MsgGUID: F7fIWhnvRa6vD4DGvjbviA== X-IronPort-AV: E=McAfee;i="6600,9927,11065"; a="11361892" X-IronPort-AV: E=Sophos;i="6.07,260,1708416000"; d="scan'208";a="11361892" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 19:45:57 -0700 X-CSE-ConnectionGUID: NRqpgIBnQvOc3cwys/A6cA== X-CSE-MsgGUID: gqaHCpsDRqyB8yQbhPi6+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,260,1708416000"; d="scan'208";a="32872793" Received: from unknown (HELO dcai-bmc-sherry-1.sh.intel.com) ([10.239.138.57]) by fmviesa003.fm.intel.com with ESMTP; 06 May 2024 19:45:52 -0700 From: Haiyue Wang To: bpf@vger.kernel.org Cc: Haiyue Wang , 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 , linux-kernel@vger.kernel.org (open list) Subject: [PATCH bpf-next v1] bpf,arena: Rename the kfunc set variable Date: Tue, 7 May 2024 10:49:15 +0800 Message-ID: <20240507024952.1590681-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Rename the kfunc set variable to specify the 'arena' function scope, although the 'UNSPEC' type BPF program is mapped to 'COMMON' hook. And there is 'common_kfunc_set' defined for real 'common' function in file 'kernel/bpf/helpers.c'. Signed-off-by: Haiyue Wang --- kernel/bpf/arena.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/arena.c b/kernel/bpf/arena.c index 6c81630c5293..ef2177c0465f 100644 --- a/kernel/bpf/arena.c +++ b/kernel/bpf/arena.c @@ -557,13 +557,13 @@ BTF_ID_FLAGS(func, bpf_arena_alloc_pages, KF_TRUSTED_ARGS | KF_SLEEPABLE) BTF_ID_FLAGS(func, bpf_arena_free_pages, KF_TRUSTED_ARGS | KF_SLEEPABLE) BTF_KFUNCS_END(arena_kfuncs) -static const struct btf_kfunc_id_set common_kfunc_set = { +static const struct btf_kfunc_id_set arena_kfunc_set = { .owner = THIS_MODULE, .set = &arena_kfuncs, }; static int __init kfunc_init(void) { - return register_btf_kfunc_id_set(BPF_PROG_TYPE_UNSPEC, &common_kfunc_set); + return register_btf_kfunc_id_set(BPF_PROG_TYPE_UNSPEC, &arena_kfunc_set); } late_initcall(kfunc_init); -- 2.43.2