Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp993823pxb; Thu, 5 Nov 2020 20:19:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJx58FniRo1ZH9n+wHhPiwQ2dCuhjLwZoUqweWo1psyBYSfctLnYuCDhWq0FTmwj49RhhEPp X-Received: by 2002:a50:96d2:: with SMTP id z18mr86130eda.367.1604636373509; Thu, 05 Nov 2020 20:19:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604636373; cv=none; d=google.com; s=arc-20160816; b=sIzc6RbEe41btvyWdEpQuwzYTmSExmqZct5kQy4Vs1oPCyg2AlISApAdyvtHh3TqRt 9F+Fl6OiIpSLUXbcAZONMm/+KLXY2hI7XPE6fq7kuK/+9z0BxZ2KMzu2TrlmdeMOuFWU LqDD/YN+NVq2xQ2Dxe22YNxgHjeZc3ozEuq8JhPaixruYftutOxi9/2DhjcRxkjPPRBC 7UDlp0SH55B7xzEblFcVAT6BBtbIk2GJViwSu3t4hI9pH9wl51sO73Ve2jaF3FfzmjG7 kHo8fHTCrMwIMlTMiu0guldI49IOOdl8oQ9ZfIIUx1pqM9Jf6A2XL2Y1PueuxUHWbzMp Dn9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AoocLBBvUJrI0bLOOZTh8xYoi/tHgAN+ua/bhX68FM8=; b=tpf1J+zFyWtXi3Lt/d2Xuo6LDiHeQCbhDLPToWnU4Mnd+wyPz2XnWtxxnQz++475wl l2NbRMR+cjE4jot8eUYz5MTD3vccJzWnzMEmZiYfeiOGGmgWTE8gLjDp1MaGJCfc9W95 kyRJP3HRidUlKhngJOHd7dOJahVe0ngiYfXH7dFkWMqp1VDWld4uH6/r6BOSLvMRnUQU hPhBN86Uo7vhqh6dzXfHKqkXQXGiZHeBXhFIfRFSXzKq49GhVthns9EyddrkjQs6lY1Q joYZ2opnOQxJ8Uq/sjxypG9iPWyKuzH4R7Kqnj7wgbS9NTaqlYvvMH4uOiQO+voght8D 6FFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sINzjgHv; 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 p3si102180edp.84.2020.11.05.20.19.10; Thu, 05 Nov 2020 20:19:33 -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=sINzjgHv; 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 S1726160AbgKFEQ6 (ORCPT + 99 others); Thu, 5 Nov 2020 23:16:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbgKFEQ6 (ORCPT ); Thu, 5 Nov 2020 23:16:58 -0500 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A30C0613CF; Thu, 5 Nov 2020 20:16:57 -0800 (PST) Received: by mail-lj1-x241.google.com with SMTP id k25so3899513lji.9; Thu, 05 Nov 2020 20:16:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AoocLBBvUJrI0bLOOZTh8xYoi/tHgAN+ua/bhX68FM8=; b=sINzjgHvy6ulBGqRGUPhFTT730zcVjTJ63oLbOTnwWTF1dtv+m7Xh8tx18yvhbigwv K+jpB1Z7Me38xpsNnnWGAGqo5I6Dhy4ODfsmaqxXVigyKn13DnoNhggKaoB6OeiRqkte DADDhjdrXimmBRbhVBMJcpH6nwvlDP02GCB2IOy0ZIXbGRKZ9wBI0apeC/YziAXK7Kaw bHXhtm62DVkgDKYrIYHrDummNvSi15N+6xODSxRcU28nxu6fqSWHOA8g103z/NY+foYI oY1XXbuISgUEM9+DR05gTrcTC44RQlwPKqOQFrP6nVHQ2ZeSYGVL/BPwYJ89YWhBzrQe kKuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AoocLBBvUJrI0bLOOZTh8xYoi/tHgAN+ua/bhX68FM8=; b=mIOdPr8M3EcLfLEqdH1ebV/mp3BqPDDEQvhCBCHvaFlqtL+9dwCQaQmL1eR0YriU3H yvufzT4LOwx85w7ExS9+CXKOCnWDsFQhZvdD8D/nuCORJ7k6wlOVkTrvRdggWGdXbhGU IluiFUH61KRMx6xv3FOFhemfPNMM17pG4ZK3jLsR1N3zv79DIXnjilNVc4GkVr9162Gb VYFlIDIj7NelOExffCqhuOITMfZvK0gmtuZOYJkCgrO3iB1SpPz2n0MdNi3UI3VfTpy0 qElijBLtkh4APUDj2682QNYs7ZgPQn7Oq64L9482VRLJ4DQZQYip4TuZd8NEyxHfKI/Q mEHw== X-Gm-Message-State: AOAM533vnB27p3f/5ayK11SqjYIHSY8kMccaA5DTWDyjhr+5Nig5U73n oPEtbOUnUguVcIaBLZ7yd/dlJ7a0cYT0GubnoYM= X-Received: by 2002:a2e:9094:: with SMTP id l20mr35819ljg.290.1604636216488; Thu, 05 Nov 2020 20:16:56 -0800 (PST) MIME-Version: 1.0 References: <20201104191052.390657-1-ndesaulniers@google.com> In-Reply-To: <20201104191052.390657-1-ndesaulniers@google.com> From: Alexei Starovoitov Date: Thu, 5 Nov 2020 20:16:44 -0800 Message-ID: Subject: Re: [PATCH] compiler-clang: remove version check for BPF Tracing To: Nick Desaulniers Cc: Andrew Morton , stable , Chen Yu , Jarkko Sakkinen , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , Nathan Chancellor , Miguel Ojeda , Kees Cook , Marco Elver , Arvind Sankar , Randy Dunlap , Sami Tolvanen , Ingo Molnar , LKML , Network Development , bpf , Clang-Built-Linux ML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 4, 2020 at 11:11 AM Nick Desaulniers wrote: > > bpftrace parses the kernel headers and uses Clang under the hood. Remove > the version check when __BPF_TRACING__ is defined (as bpftrace does) so > that this tool can continue to parse kernel headers, even with older > clang sources. > > Cc: > Fixes: commit 1f7a44f63e6c ("compiler-clang: add build check for clang 10.0.1") > Reported-by: Chen Yu > Reported-by: Jarkko Sakkinen > Signed-off-by: Nick Desaulniers > --- > include/linux/compiler-clang.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h > index dd7233c48bf3..98cff1b4b088 100644 > --- a/include/linux/compiler-clang.h > +++ b/include/linux/compiler-clang.h > @@ -8,8 +8,10 @@ > + __clang_patchlevel__) > > #if CLANG_VERSION < 100001 > +#ifndef __BPF_TRACING__ > # error Sorry, your version of Clang is too old - please use 10.0.1 or newer. > #endif > +#endif I can take it through the bpf tree if no one objects.