Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2244662pxb; Fri, 5 Feb 2021 12:35:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEywuOjJ9cikELpCqldttk4QuK2StBFVFY+3TzRUQVgNTzHd7DFnRnHyxZ56NncRlIZqBM X-Received: by 2002:a17:906:688f:: with SMTP id n15mr5719766ejr.71.1612557325050; Fri, 05 Feb 2021 12:35:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612557325; cv=none; d=google.com; s=arc-20160816; b=FjuoWOKl6dn2NN3SJ+mHtuUovYJcGH2VDRi59wDA/bcffwC/O4QSVKbRnWH5ZIBkRk bq6LrqglARKoem//S/9dTqS4vTtbIWkc3VlVDPdsH/9r+O39idcYIXKKYOYZb+8O5IFW cP1K1+QhV/Ne0SEwfu1kP8qMJnJIZwOZDoM/luqpGlFE36rM+lcLgg3tVMAo0ekQ5cOS K8mTrq31zvhxsA2V7TuKwG+nbEU1VzOeN16zRHWa3oelTppiebj03VrMIIL12Gjf9SJ5 b8vPw7f2zGdaSlC8YyZ1WH0lG0UWExgul483bdnSza1d8S/Q1dU6kgyK9455Ro7q1AXK LQyg== 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:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=llZvMxl3ggWpC3s9VreNgdoWO96LK0zC9XkR4+niUk4=; b=Ji3CJXEyNXrHZyB6t5wIutmbV+2gCDaNA0qxOyI7J+mVAkGPyMaIOJRLDkYmj4cWK4 lsn7yFrCIz4z0wcTiDD3yC//Zh117s45QCrF6M+lg4CriWhL8ezjGSmowjd6E8/WBgDu bVtds5oHCpPad5e7j1a+XtwsHTYQ/Qei7OJ3Uu8FhS10xRsnnd9X845RQU+eV/KKMfkK 44FBNDtiqLiOPEuhhBl4pQYkcOqYhNiarTSHcCG+iVGwSXmtxdOES04NVEeD8hXKqiON Sb5lWBC34Rw/aq6O4nkJoW7BAVxyRUAjXIIoRdFf5i7a6L7TJAhsGtK0HyHiZ17o9+/Y vy3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YUpYhEhG; 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 a11si6755560edm.151.2021.02.05.12.34.59; Fri, 05 Feb 2021 12:35: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=YUpYhEhG; 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 S232870AbhBESu6 (ORCPT + 99 others); Fri, 5 Feb 2021 13:50:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbhBEStl (ORCPT ); Fri, 5 Feb 2021 13:49:41 -0500 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF0BCC06174A; Fri, 5 Feb 2021 12:31:25 -0800 (PST) Received: by mail-il1-x132.google.com with SMTP id q9so7038986ilo.1; Fri, 05 Feb 2021 12:31:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=llZvMxl3ggWpC3s9VreNgdoWO96LK0zC9XkR4+niUk4=; b=YUpYhEhGYjPp4sgYrRUjxRYzVqfKTwTrnre9rM9HeKjA+43ou1hd+dRUBvzFma7hT2 wlGy598bKhjGg7rNP2fP4cnPQi18kbKoEZQSUY0gpcELZRVLHNnJd7xgy2qW0wqRyWu8 0nHqo4cVSJKgZ8TZFW6eTcSjrGK36ui7DwSiw7UJVXetzp2ZjYlLLyfy/sGNHkg91Vk/ hBwrl5ASsKF5sFRivViTe/EwZAftauYVvej0tSckzBPgk+n/Ll2iCIVGPYmbaQ9xoujZ u4HaEDremMFJpwS3uTVYPO7ljvufNG1pHcbinYLkG507YAKq4IfvBVLfNuY43ub8rGDE xSXg== 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:reply-to :from:date:message-id:subject:to:cc; bh=llZvMxl3ggWpC3s9VreNgdoWO96LK0zC9XkR4+niUk4=; b=Q5aVlgeN4m4NlRKx8yYHhMvWxLNCRWznSIL2z4WYUn3Btv7C+/OBM512zP9YxA7slt +mRc09Jim2d6fhrM/tju0xadpFxVX+Ulg/UyRAqTfQN/54x9w6cJxvuWJgSMdcrSSJLw kzqm/6lcAHqj1O++An5zUE+dqv//clU/wz1UneWVxPVPn51nGWgdP9NngbVXKMuA7Qui YxURn4jdmLX88Tj5j+A+dbiuDwy4x9OBKLd936yyLoSXLDTVUAnLp8akXlqJ1FjFkkWJ SZanzjM7n6hTa39D+IOqWkSOGNIvyDCny1Z7UaQ2z/b51KBPwiNDT2ZPdEbejQxjrEf0 LnUg== X-Gm-Message-State: AOAM533zEkemqkwHfvzbv6gClOPVJTecLZ3uw39v0Vmh/xt6LKEYnTAb glrRtNXnsTifhc9ERAD5D1OZRYfYTHHwYRdkzxw= X-Received: by 2002:a05:6e02:d0:: with SMTP id r16mr5395474ilq.112.1612557085349; Fri, 05 Feb 2021 12:31:25 -0800 (PST) MIME-Version: 1.0 References: <20210204220741.GA920417@kernel.org> <20210205152823.GD920417@kernel.org> <20210205192446.GH920417@kernel.org> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 5 Feb 2021 21:31:14 +0100 Message-ID: Subject: Re: ERROR: INT DW_ATE_unsigned_1 Error emitting BTF type To: Yonghong Song Cc: Arnaldo Carvalho de Melo , Arnaldo Carvalho de Melo , dwarves@vger.kernel.org, Linux Kernel Mailing List , bpf@vger.kernel.org, Jiri Olsa , Jan Engelhardt , Domenico Andreoli , Matthias Schwarzott , Andrii Nakryiko , Mark Wieelard , Paul Moore , Ondrej Mosnacek , =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= , Tom Stellard Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 5, 2021 at 9:03 PM Yonghong Song wrote: > > > > On 2/5/21 11:24 AM, Arnaldo Carvalho de Melo wrote: > > Em Fri, Feb 05, 2021 at 11:10:08AM -0800, Yonghong Song escreveu: > >> On 2/5/21 11:06 AM, Sedat Dilek wrote: > >>> On Fri, Feb 5, 2021 at 7:53 PM Sedat Dilek wrote: > >>> Grepping through linux.git/tools I guess some BTF tools/libs need to > >>> know what BTF_INT_UNSIGNED is? > > > >> BTF_INT_UNSIGNED needs kernel support. Maybe to teach pahole to > >> ignore this for now until kernel infrastructure is ready. > > > > Yeah, I thought about doing that. > > > >> Not sure whether this information will be useful or not > >> for BTF. This needs to be discussed separately. > > > > Maybe search for the rationale for its introduction in DWARF. > > In LLVM, we have: > uint8_t BTFEncoding; > switch (Encoding) { > case dwarf::DW_ATE_boolean: > BTFEncoding = BTF::INT_BOOL; > break; > case dwarf::DW_ATE_signed: > case dwarf::DW_ATE_signed_char: > BTFEncoding = BTF::INT_SIGNED; > break; > case dwarf::DW_ATE_unsigned: > case dwarf::DW_ATE_unsigned_char: > BTFEncoding = 0; > break; > > I think DW_ATE_unsigned can be ignored in pahole since > the default encoding = 0. A simple comment is enough. > Yonghong Son, do you have a patch/diff for me? Thanks. - Sedat -