Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp843003pxb; Wed, 13 Jan 2021 18:04:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwc7IcJ6G3s4iHUunmrUsUTrQjEaidw2pBIeV9KyCfmXsJgj0MOOCMc902OLZin4zy3wbw6 X-Received: by 2002:aa7:d511:: with SMTP id y17mr3762185edq.112.1610589883288; Wed, 13 Jan 2021 18:04:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610589883; cv=none; d=google.com; s=arc-20160816; b=1JTE208LQs3X5NYZEEWuISpMRrkYlPZd8kBl1ptZVmN2xXPsh3YVzvO0zIftttdEfw 08+VqbUB3vcPlXpMQV1nb5EOWaF79pp8t51NSbYYEF7Ub2yS0zj/Kb8MfKrUYV4DwmbX XQLFO1T3JbpUycCLPUp46MZW0yVdPikuYDotkMFQwyRk8T1rusjYluY7XKUw8eIbvjxc ZfjI2ypbI5ZSaY4sf+kABnoYXB7TJV32TWReMNYICo+lCbbsaMDX4/MGsy2/05C9HERl ic9j6F/gboeNt2hyva0907o/x6YxdQYOCiD3tSAiBNoD7sux6qnzJBLmMuHpjU4N82Nu bitg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=m4PIDzYT3CXhoACwt4A5q0aBFravQnGjz5z9j8ZUsEY=; b=VVeLfmYM6rMNqWrVYXhI9lnmPinvWfm9S2+2GXnq5I8C7P8LngmUREQ/JJHv7bu8GI nnDsWo0MrkhNVRgF0YTiwuWZPZiWoTGWNBIQ0bVQq3E4cgE7A5SG4e2M0wcHa4a5Jjg7 T9UQ6Enf/GwfCpSBZBw0FuKsdW8S7dUuar/hGDOiRe8YIkEerEvJ0Zwl7V94WjK6pyBZ zAQOcHpGq32hhbedjrqChjg7nW8zYpyIfzIbGMtkiUlqxv49Y5Kd5CmEvs+xKnKWxrX7 5pAKcwANQQv+mPs1liZVnS77lk8cjvgggE4/c/ST8oT4mpYNLwA9rydm61z28QgsGpQ4 X3ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kSQ5AATG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si1307697edy.222.2021.01.13.18.04.13; Wed, 13 Jan 2021 18:04:43 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kSQ5AATG; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729893AbhANCCY (ORCPT + 99 others); Wed, 13 Jan 2021 21:02:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729389AbhAMXWY (ORCPT ); Wed, 13 Jan 2021 18:22:24 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90F58C0617A9; Wed, 13 Jan 2021 15:07:42 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id y12so2038743pji.1; Wed, 13 Jan 2021 15:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=m4PIDzYT3CXhoACwt4A5q0aBFravQnGjz5z9j8ZUsEY=; b=kSQ5AATGqJZ1OZcYKgwWY5EamTo6erdhBn8bkSwXMwNhcF7BCVo9sbg80BYZt14h/X WRETpPnEcpfjBwMcAfT6nVWS7rl/zjTc9uqDfmVBydaJkiH80gHIpSxxTchw7nacf0Za gh6XJyD2mZnCktbfjPnCPtUk3wBxDscxfYH+Ryrx1jozwqwLS+f8wSKLkE6kHDFFhjJS ly7S4GM7zj3gxUKPbS9xxituOC9XKYq4TouBRaDT0BfiNP9YFap3ZtsIfWH9gY2H/XRQ XUuOCy9Y1L1RkUbq8pLQhTxUo/UG03EVThoUtbWoL8uLja4Xh6ARab+sw1wtdeCWR+xL 73ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=m4PIDzYT3CXhoACwt4A5q0aBFravQnGjz5z9j8ZUsEY=; b=d/CuTKqHDrAXaXxDmvUY2cnYkOV4uYeC35p4/83X04DMESNMn6pGX/oR+vkT3YDSOx Mmycbuy/4M5gpu51GncIxQqaoMiKD94KjE+7NTQQJbv/b9dPKa7lMKfVj70cPCyTIMWu XfXvePhUrHPJNcCo4F76gQpsyn9fyL7w1LRfHzRNmw5H8bqctUtZPnKVF1GSC8ruJnZG KB0MYcXsliijIJf0NfJxxKZoUoNZd6CjrO48ehc3pP9KwchvonRgIEs/HRJl6nDt5e8i /61ID96si6kHVciCFmWWfsOdZen2HpFVQ7C7tUfv4wcmy2PktB805bpiR85KEwvf3ngP EfLw== X-Gm-Message-State: AOAM531zzS5GiCPv+au5QzZjzKmJDMQUmBPyAUy6dd3wK+9wJWJBZ1Dg NdYRLtFxEehminafAtVJ3ao= X-Received: by 2002:a17:90a:fd08:: with SMTP id cv8mr1652767pjb.29.1610579261988; Wed, 13 Jan 2021 15:07:41 -0800 (PST) Received: from Ryzen-9-3900X.localdomain (ip68-104-204-241.ph.ph.cox.net. [68.104.204.241]) by smtp.gmail.com with ESMTPSA id t1sm3515705pfq.154.2021.01.13.15.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 15:07:41 -0800 (PST) Date: Wed, 13 Jan 2021 16:07:39 -0700 From: Nathan Chancellor To: Andrii Nakryiko Cc: Masahiro Yamada , Michal Marek , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Linux Kernel Mailing List , Linux Kbuild mailing list , Networking , bpf , Sedat Dilek Subject: Re: [PATCH] bpf: Hoise pahole version checks into Kconfig Message-ID: <20210113230739.GA22747@Ryzen-9-3900X.localdomain> References: <20210111180609.713998-1-natechancellor@gmail.com> <20210111193400.GA1343746@ubuntu-m3-large-x86> <20210111200010.GA3635011@ubuntu-m3-large-x86> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 02:38:27PM -0800, Andrii Nakryiko wrote: > Hm.. Just saw Linus proposing using $(error-if) in Kconfig for an > unrelated issue ([0]). If we can make this work, then it would catch > such issue early on, yet won't have any downsides of hiding > CONFIG_DEBUG_INFO_BTF if pahole is too old. WDYT? > > [0] https://lore.kernel.org/lkml/CAHk-=wh-+TMHPTFo1qs-MYyK7tZh-OQovA=pP3=e06aCVp6_kA@mail.gmail.com/ Yes, I think that would be exactly what we want because DEBUG_INFO_BTF could cause the build to error if PAHOLE_VERSION is not >= 116. I will try to keep an eye on that thread to see how it goes then respin this based on anything that comes from it. Cheers, Nathan