From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEC07C433E0 for ; Mon, 10 Aug 2020 12:59:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AEB8C206E9 for ; Mon, 10 Aug 2020 12:59:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ahXq48k8"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="K6WSJN4G" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AEB8C206E9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=p8cm9yM7OrrZ6/dsfrAK7EB53WEtJYSEY5LM8sO6vLA=; b=ahXq48k82qWpoIohmFGuq1+Tb tUBwCH2CPfjliu+MryfeR/O6gOlCudEb34NoYe+q2LvM51xbtWjdvp0A1ZyIVtvtkNRpHDQ1GpCxK kddXOaoOyEVdWRhJmpr4RcQyRndXsdbAmHjQH0hob1w5lqYutlqyVrcDGxkDn7IlLzhbEgFdpsxqP lt9KoR3cGPM1lEDuuZ6l4NxdYPTMCOY57g0h6NHslPGWXU9NfL1i/v+Wpo1AFbwlkUB5XTCsHzklW M2fDgP8T5wn8yL14IAGMVFzXrQRfrFiUCX+Vv97SR4yDHPhl6PuOwZI7iCvlAu8AViUK+wGvwcDmU nuA4uLpiA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k57NW-0007uk-94; Mon, 10 Aug 2020 12:58:14 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k57NT-0007uK-2o for linux-arm-kernel@lists.infradead.org; Mon, 10 Aug 2020 12:58:12 +0000 Received: by mail-ej1-x62f.google.com with SMTP id bo3so9227288ejb.11 for ; Mon, 10 Aug 2020 05:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ktYDUhHF31x1lc93JUbH3XBmZYcyUsbaMWCvBNCVtoE=; b=K6WSJN4GZJba5rv0vSTbH3ebXDdy2pHIC+xpROeTa8+eFMTDe5GCOHDAjLvtpIb8FG RmKC3vbZ3P3jwxdMRViC45Y3IQgiFq/ZFBA7y13cQLOn0azZLc5AE3iL7ZxmUGmsNWJK yhjcxub4ALC0pkkiUNsnZBem90q9RkZOjdGiXu3UzpvQotWYGzHSQEjG5On4THY/F6cQ uMyJ2c7bZNdPPa3mygJSFkr/fqlGnef1LFtH2q0JFxRRh6WF4P4G4v92tgoTbAwT3QEt 6o4EKzxopm/0ulnvRGuHBXP8cMWukpOy5nFy6WDR8jOYXZ1oQWrGeGkoqY9pH5uIRc0D BW2w== 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=ktYDUhHF31x1lc93JUbH3XBmZYcyUsbaMWCvBNCVtoE=; b=mr8n2VlRx/xmj2MegthpaWNm6X2b4nicUaIwZCmsVXsRhUpVjs6MqtlT5rGfxuQ78c DwayDj/oCNUTJzxgwfPkfop60qGiW6NpFxDrdxTWba2fCE803WmzvcYcrOml3BoLUe7f epLy7OURux4kKiSNHGn3JCdWsCpxFtcVNGaIG/FXGx4T8YcKqm3auGMnLOGxz/obcN5M IC9iuSBIt8Uw+P7pTfhI8TB1Yy4v4fF/A+zUTD2BxruF2aDt50O+0eY6HBCbHZ5F8nl+ B28bB8yTCrAiZ3IwlUU2AOeaVcXQoMWT8c0iUmka9cQJba+Ou/36Np0lIUAcoeHaISOh tq4A== X-Gm-Message-State: AOAM532ugoRPHazLHY6ziZqluAxO5UGqCHdwgwe1L6sGDjZa4Vin8da4 za7CmIaLq1xafEhpgqse6e8Ang== X-Google-Smtp-Source: ABdhPJyucekWrU9iMusbTuqJaAo9iP/moBF4vkF4gUspwUfvVMHD6cDTj8PT/Ozigga7hG01g04FOA== X-Received: by 2002:a17:906:15c7:: with SMTP id l7mr21244447ejd.208.1597064289674; Mon, 10 Aug 2020 05:58:09 -0700 (PDT) Received: from myrica ([2001:1715:4e26:a7e0:116c:c27a:3e7f:5eaf]) by smtp.gmail.com with ESMTPSA id t3sm12356370edq.26.2020.08.10.05.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Aug 2020 05:58:08 -0700 (PDT) Date: Mon, 10 Aug 2020 14:57:53 +0200 From: Jean-Philippe Brucker To: Alexei Starovoitov Subject: Re: eBPF CO-RE cross-compilation for 32-bit ARM platforms Message-ID: <20200810125753.GA1643799@myrica> References: <20200807172353.GA624812@myrica> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200810_085811_161391_5450E198 X-CRM114-Status: GOOD ( 24.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Luka Perkov , Jakov Petrina , Juraj Vijtiuk , Jakov Smolic , bpf , Andrii Nakryiko , Andrii Nakryiko , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Aug 07, 2020 at 01:54:02PM -0700, Alexei Starovoitov wrote: [...] > > > > ``` > > > > typedef __Poly8_t poly8x16_t[16]; > > > > ``` > > > > > > > > AFAICT these are ARM NEON intrinsic definitions which are GCC-specific. We > > > > have opted to comment out this line as there was no additional `poly8x16_t` > > > > usage in the header file. > > > > > > It looks like this "__Poly8_t" type is internal to GCC (provided in > > > arm_neon.h) and clang has its own internals. I managed to reproduce this > > > with an arm64 allyesconfig kernel (+BTF), but don't know how to fix it at > > > the moment. Maybe libbpf should generate defines to translate these > > > intrinsics between clang and gcc? Not very elegant. I'll take another > > > look next week. > > > > libbpf is already blacklisting __builtin_va_list for GCC, so we can > > just add __Poly8_t to the list. See [0]. > > Are there any other types like that? If you guys can provide me this, > > I'll gladly update libbpf to take those compiler-provided > > types/built-ins into account. > > Shouldn't __Int8x16_t and friends cause the same trouble? I think these do get properly defined, for example in my vmlinux.h: typedef signed char int8x16_t[16]; >From a cursory reading of the "ARM C Language Extension" doc (IHI0053D) it looks like only the poly8/16/64/128_t types are unspecified. It's safe to drop them as long as they're not used in structs or function parameters, but I sent a more generic fix [1] that copies the clang defintions. When building the kernel with clang, the polyX_t types do get typedefs. Thanks, Jean [1] https://lore.kernel.org/bpf/20200810122835.2309026-1-jean-philippe@linaro.org/ > There is a bunch more in gcc/config/arm/arm-simd-builtin-types.def. > May be there is a way to detect compiler builtin types by pattern matching > their dwarf/btf shape and skip them automatically? > The simplest, of course, is to only add a few that caused this known > trouble to blocklist. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel