Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2454863pxj; Mon, 31 May 2021 02:36:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYorPX9M43P+QgI2DkmNQFlujaLZJg7lnBUo8NvOB5KqX/gbhm4QRk8fSgACaTHc/Ih7pK X-Received: by 2002:a05:6402:1719:: with SMTP id y25mr24490408edu.304.1622453760561; Mon, 31 May 2021 02:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622453760; cv=none; d=google.com; s=arc-20160816; b=RYuZs2B0hm5NZon4HhXATq/PvCv3YLBdP2IjqjpNwZJg9inw8QxYErJQWTcYefX+mY P3ayabiia80vRAsE5HwkXjMf+pb09gHOBFgddnMKD+mYTk2VXumbqNM1quRSDDqJ1mci FxPLlhcLKFQKVw/CuNuuy3e5VDrdh2H+xmyLOv341c28OYVeOxxteusMt86UcWPWroNA JXmP4cD6KrQjr1x1Qstdv/YNkN3Drz0zdst6DHITHU406mkNa17PHTiYNCDWE077wszE qM2gTznXF9s9Iu+c5Smqng0zEaUj6pNN00A45jreFNzhZwRhEOLIOJ7EpPrquED6xdSl JFNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=azNgDc/xTSq+kw5Zxz7Rdx5HosrWpuoTBnOVVK/MPNE=; b=N+fWdvyZmMgCXJLgKaHAoc6ryzIzsyjSyXqbPVVEfUUGoUcZvQqMMeTZrGpMOJM/do jbQfe203mF7JL6KxeS6Y2xdkmJwI8zkPUnKbEyNVZ9iAMB4M0YDVAGle8ElqE0BnWu0B /us6QCsQ50zjkN1Rab5gGli5MLGDXTFZhZxdw++GMVfUjiHqUG454WhigY4NgDz5J+R5 eFmmdsbHTQzUGyre4QBJ8KGouUovZRwjeJ+gBUsEzusOcjixjdM6fXvasdsViLrlhbKo yTraF4r/AaKgzr+3BJgeRufoIsdoMLfy/SdeOOEzKnEZqVMFcegQrOR7KKFJQQ6QWvLo HfYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si14874033edj.103.2021.05.31.02.35.37; Mon, 31 May 2021 02:36:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230423AbhEaJgF (ORCPT + 99 others); Mon, 31 May 2021 05:36:05 -0400 Received: from outbound-smtp63.blacknight.com ([46.22.136.252]:48485 "EHLO outbound-smtp63.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230479AbhEaJgF (ORCPT ); Mon, 31 May 2021 05:36:05 -0400 Received: from mail.blacknight.com (pemlinmail04.blacknight.ie [81.17.254.17]) by outbound-smtp63.blacknight.com (Postfix) with ESMTPS id 7C545FADAE for ; Mon, 31 May 2021 10:34:24 +0100 (IST) Received: (qmail 12408 invoked from network); 31 May 2021 09:34:24 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.255]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 31 May 2021 09:34:24 -0000 Date: Mon, 31 May 2021 10:34:23 +0100 From: Mel Gorman To: Andrii Nakryiko Cc: akpm@linux-foundation.org, bpf@vger.kernel.org, msuchanek@suse.de, linux-kernel@vger.kernel.org, linux-mm@kvack.org, hritikxx8@gmail.com, jolsa@kernel.org, kernel-team@fb.com, Arnaldo Carvalho de Melo , Hao Luo Subject: Re: [PATCH] kbuild: skip per-CPU BTF generation for pahole v1.18-v1.21 Message-ID: <20210531093422.GS30378@techsingularity.net> References: <20210530002536.3193829-1-andrii@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20210530002536.3193829-1-andrii@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 29, 2021 at 05:25:36PM -0700, Andrii Nakryiko wrote: > Commit "mm/page_alloc: convert per-cpu list protection to local_lock" > introduced a zero-sized per-CPU variable, which causes pahole to generate > invalid BTF. Only pahole versions 1.18 through 1.21 are impacted, as before > 1.18 pahole doesn't know anything about per-CPU variables, and 1.22 contains > the proper fix for the issue. > > Luckily, pahole 1.18 got --skip_encoding_btf_vars option disabling BTF > generation for per-CPU variables in anticipation of some unanticipated > problems. So use this escape hatch to disable per-CPU var BTF info on those > problematic pahole versions. Users relying on availability of per-CPU var BTFs > would need to upgrade to pahole 1.22+, but everyone won't notice any > regressions. > > Cc: Mel Gorman > Cc: Arnaldo Carvalho de Melo > Cc: Hao Luo > Signed-off-by: Andrii Nakryiko Acked-by: Mel Gorman -- Mel Gorman SUSE Labs