Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp208145pxb; Wed, 4 Nov 2020 20:00:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJz57xqb0aQKyo2/IftoztXiCY6s5fm+yWXUZIm403M72tL3U8/nxaJ0z9OXhteM3fA6HpkU X-Received: by 2002:a17:906:7c4b:: with SMTP id g11mr408556ejp.469.1604548825896; Wed, 04 Nov 2020 20:00:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604548825; cv=none; d=google.com; s=arc-20160816; b=DAmEve6TtH0RMTAvNbRAhgt8TME5g3HI32f2AsItCIJdYa0F2TfDmWMEQySxlf/Kqg 5FCRJcSf5LcPCSjpKJECkNu3COVQAe3Qx/37sfARPUUzkr4KkTfGDCxjTM0KJizYVt8V nxARXLjiraKmCqZnel5GXHDndySi5nA81KKbMimM29bJOXWfc5Hfyf7lyEYvdvAhThhZ AJH05CZevyKliY2vV3WwSR9ndgOTUe+2c/LAvJn5TIvUSvhXMyiNJEr7fMKnXgIaLoXe lJszrCHWSHj2TYvziZ3zUEviJjtXb9tePSPbEWkuuyYibI6SDEtRHn7iqAd9Nw5zIWXh RnJA== 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=76+46/j8d+HhUpqLdqtrqj06kMZC9lIAszaftzrzrbA=; b=tXLFHhV14C5QZXFLr+nzCi2m2i3eqpahcu61wYIK/YOx8jeXZTnyqbBBpCQ0L3NVh/ g0tCdY/WrEmHtV0x4RXbY0PvdZinxExV7AXKBDbUnWGuJxg9v17NGTZYdE4jtGixg/vt uJ6jxMhyJSw8FnMB/ZLlsz8X53lfNEHJo2UiIwV8nQ3Ivg2DmQzsIGGu8b+RVpHSB1Ac 40dSHbu1wTV+/4E11Zze8C3AFrusNK1jr/obArInB68V/h9qA3y8AIe15GL4bjrTy/2p geujppy02t2rbJ3xZu3/25lXcQdnMb6TUV5CAa18WZCxd4jt+KLRQv88ZTndxtbLsT0S tuow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cCzrPQyE; 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 cb20si233473ejb.533.2020.11.04.20.00.03; Wed, 04 Nov 2020 20:00:25 -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=cCzrPQyE; 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 S2387913AbgKEA4S (ORCPT + 99 others); Wed, 4 Nov 2020 19:56:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727923AbgKEA4S (ORCPT ); Wed, 4 Nov 2020 19:56:18 -0500 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDD86C0613CF; Wed, 4 Nov 2020 16:56:16 -0800 (PST) Received: by mail-qk1-x742.google.com with SMTP id 12so319910qkl.8; Wed, 04 Nov 2020 16:56:16 -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=76+46/j8d+HhUpqLdqtrqj06kMZC9lIAszaftzrzrbA=; b=cCzrPQyEWo7u8s7NeF891HqdMDHyzf30LEvc6NJiR74N7Hs6dWqvJGrOKhOBI5E4/o IIUiN+USEvzVZcuT+LuG8quJqG0c6bJpx0QJaDl05Dd8fwPA6WnvMM4b1yAOeeup2pCj +M8RTZxT6A78NHzsxgDgyDWu4lITnyjl3CYrG0OQvrnQ7cDp+68oTtLyGfdpcn+NqzDt X/wQztuwyCPax/iPQEDlJMhHLJEWNAvvwqMaZE+xQwxF+wKhL/uAJXmKHPAAkYJidmxg KEnMvs1YJpHgZw9E30xt1obeFvWAEptcvnT8JS+hZ7ugkoRRcP1eoh/dWQVHam2VEVdH zkTw== 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=76+46/j8d+HhUpqLdqtrqj06kMZC9lIAszaftzrzrbA=; b=cmpH3hmSqB9WB6471wzSKqYw0H0MFXE1szZnP4g928hw8F0pPK16yAAXZUoYaf8ZeB ZI79qvyXqDzpTTWXjEU5VZgtjw/NDuAH3WDYJztsfyazAJ70gbJaTI8uFEOfonoyH7Mm 4IkUthwjp6ei22zSwXmU3/QAA8GROrhAPNOpzyyrBIf9VMYL64pENtzTkdU1t28t3L3L Yydi5DYsP21T2f6KA79UD/Ua5fS7QoWIdFHjqo2/GZo9vSySGe3xuHmHPXsPvcYokgso x4VJhdMyJuhsYAgAX7uKV6ctWH3BxpR4QTy+pEn6qhN7dCpnihKxA6ovewTW8EnfjjtR W5Jg== X-Gm-Message-State: AOAM531jxqUHWGGaJb1NkMmFJYhaIVxFdjyqvXmn4dqYOtJc+K7At/Lj E7bak8v85eMwJ67QmDe6/DI= X-Received: by 2002:a37:e0e:: with SMTP id 14mr859793qko.455.1604537775951; Wed, 04 Nov 2020 16:56:15 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id n3sm1403764qta.10.2020.11.04.16.56.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 16:56:15 -0800 (PST) Date: Wed, 4 Nov 2020 17:56:13 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: Andrew Morton , stable@vger.kernel.org, Chen Yu , Jarkko Sakkinen , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , Miguel Ojeda , Kees Cook , Marco Elver , Arvind Sankar , Randy Dunlap , Sami Tolvanen , Ingo Molnar , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] compiler-clang: remove version check for BPF Tracing Message-ID: <20201105005613.GA1840301@ubuntu-m3-large-x86> References: <20201104191052.390657-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201104191052.390657-1-ndesaulniers@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 04, 2020 at 11:10:51AM -0800, 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 Acked-by: Nathan Chancellor > --- > 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 > > /* Compiler specific definitions for Clang compiler */ > > -- > 2.29.1.341.ge80a0c044ae-goog >