Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2227292pxb; Fri, 5 Feb 2021 12:07:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyw6TEyX02F6jgyZoY1RqBRj/dxIp9utfS+2dWEnS1UOMmvpkliMGkjEoJd5NrLN8m1FvkT X-Received: by 2002:a05:6402:6:: with SMTP id d6mr5231095edu.218.1612555620526; Fri, 05 Feb 2021 12:07:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612555620; cv=pass; d=google.com; s=arc-20160816; b=PYEGz4kDyrdVYz2o5wIqUnCRCdbT+T/+PPCchiT+loJ6BhA294Kp09qJLZuqHf5gN+ CopNchiCuKMMfuf4L5Pznq/x/QJWMw/Pom5lCnEV6DO8bIzkZWEkvR7lYdzjCrhswzQx dNyHtq2JEsU7fhxlV1SI18jATF0Ah+xxl8jst77++/UWYk3p5f8rI6m8xTjisocGQxmK 4KbIxpvAh0UOs1ZgosRa8KKgIXQBjHrlUWpvfXHBABk7eS7EtR+vnMNyTkfkapsJ5Lcq U5B/A5+fCVYDp2qwqxV0ZnQuKeZY/Hf3qDFIJXCupofZaJEzFSzhxj8kjnvloh9FwxnF +29A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature:dkim-signature; bh=bN1FDlIl1Ruv1dZQF8AnKwQPbbQPvEJDDdD9A6jrFuI=; b=a3iwNmHiUXgOmK9uniYPTjmb2G+KG9/8uDK2l3wdANb0Abj0l/1KXGVRXzDg9FJAAU LduzFK10EujwanfSGK3Di1jF5HjRIFrae/gkMYPNvNmSNydUkZ68uFAF+pDXGzcKtvnU zFSyHjsEXLvHnFrnWLYS6MEujk0im2ym/cfus0DOnLEhni70BN10ZEc9nDvCAKe3cgik sNIDid77gIOJuYhk4LM0sAsXM0OZZypEe47SmK4Jb59aYdQiXfVKvNdajJc8oWNtz5Nt bo36GNYsZBFQy0o+Bre04mb6uYPRtVcXbpirk8GN0wq7vrChf/YUKVYvXue/6S7pbE4x Yv1A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=S55Juyll; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b="CGRAY/gy"; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); 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=REJECT sp=REJECT dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b21si5681171ejv.648.2021.02.05.12.06.35; Fri, 05 Feb 2021 12:07:00 -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=@fb.com header.s=facebook header.b=S55Juyll; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b="CGRAY/gy"; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); 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=REJECT sp=REJECT dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232917AbhBESWe (ORCPT + 99 others); Fri, 5 Feb 2021 13:22:34 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:10368 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233445AbhBESVh (ORCPT ); Fri, 5 Feb 2021 13:21:37 -0500 Received: from pps.filterd (m0148460.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 115K0rG7028899; Fri, 5 Feb 2021 12:03:10 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=facebook; bh=bN1FDlIl1Ruv1dZQF8AnKwQPbbQPvEJDDdD9A6jrFuI=; b=S55JuyllC1nq0vrwn6jI24zDAw6r2Wac9nYYN0hQ9tbMcp0VOZFTQsSBmb7ri/mHIjGz M2ioEHHKrpyHSQucbP7f/TCIlMWsb0MdfGlQAbzjVqHBHvB0eUjGLy6rM79sey+1K9IA ZLb4oeUS+IGKjyKw7HVqK3eVqohBQHZA3/E= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 36h2wb31cx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 05 Feb 2021 12:03:10 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.35.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Fri, 5 Feb 2021 12:03:09 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=byjKbdznCUCUmsnS3zPSFShgqv63tX9HpwyE/CcB3LELSyy4tDweFU/tIKcnT0qwY4jr6/Sqk3R/gzs2xLcBmnoArqqrli5sbkN+pSwYIf8r6pS51OtAWmK1bYNVAzYHXJjpxnip18IDyZqrhpaVN2KcYi6Sn3zWYABbl34LcX5WQ5ZhzOmvrqXMNskJG8ZP24GT4CTluWos17o3h9Ix37OqM9ilBiG6FFnvIUqnN6R+xxNhmiQl0Rud130m5gn6lMHBe0sv1vP3j1FRegkCHCtThQeTi/HwErMsLwXHvHtxz4AV1ow6uyw4EZB27kwBWAi5TPnk6zaUi1t27XDAhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bN1FDlIl1Ruv1dZQF8AnKwQPbbQPvEJDDdD9A6jrFuI=; b=Eff+SUnvcWecvWxlt0QB7pJX682hWTvwVATOW/XvljiMVs6EjSLNCttCqYbyxEPfXr5hGGtvoS74OEsyZbcFn/37Q+tCKoyjfHcqXBDnxkpx1+i3Ql2592jPnbcu52ekfX4KMWr8+sajHrZ0QeACtYLgT6BktTDGdUQp1kB/NAiXVGEzmRjFfQs9104YBDSejOWqPTaGyxqCWfpjX2kcY40fv0nrcLuj0AIsZ3m0jGq+pjv7EC9xzMSZguUWIxtaZPPTXM6lsK1+uXmcRjdnIlTlGnf3imihiMBO9K6idPZNDM7Te/gM4vXL4uLBsGsjf/bLJdSG5ok5NqNp9cllRQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fb.com; dmarc=pass action=none header.from=fb.com; dkim=pass header.d=fb.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector2-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bN1FDlIl1Ruv1dZQF8AnKwQPbbQPvEJDDdD9A6jrFuI=; b=CGRAY/gy48LTx6nwBebyNjGJk69aV+zAMIg2mWmsegE8MAoI0MDs/RNu2ovOoclKa0KhVPggkhOK1putcU9OR3UZicH8Sv0RLYbHFVo5kyqu/F54RGDLoAbXb0cqvQy2X3ikf89WIB7vtxyv9KZ/A1QKyuuPxjOEi1qQNDdJ1iE= Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=fb.com; Received: from BYAPR15MB4088.namprd15.prod.outlook.com (2603:10b6:a02:c3::18) by BYAPR15MB2565.namprd15.prod.outlook.com (2603:10b6:a03:14f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.16; Fri, 5 Feb 2021 20:03:08 +0000 Received: from BYAPR15MB4088.namprd15.prod.outlook.com ([fe80::61d6:781d:e0:ada5]) by BYAPR15MB4088.namprd15.prod.outlook.com ([fe80::61d6:781d:e0:ada5%5]) with mapi id 15.20.3805.028; Fri, 5 Feb 2021 20:03:08 +0000 Subject: Re: ERROR: INT DW_ATE_unsigned_1 Error emitting BTF type To: Arnaldo Carvalho de Melo CC: , Arnaldo Carvalho de Melo , , Linux Kernel Mailing List , , 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 References: <20210204220741.GA920417@kernel.org> <20210205152823.GD920417@kernel.org> <20210205192446.GH920417@kernel.org> From: Yonghong Song Message-ID: Date: Fri, 5 Feb 2021 12:03:05 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 In-Reply-To: <20210205192446.GH920417@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c090:400::5:b8ac] X-ClientProxiedBy: MWHPR15CA0050.namprd15.prod.outlook.com (2603:10b6:301:4c::12) To BYAPR15MB4088.namprd15.prod.outlook.com (2603:10b6:a02:c3::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [IPv6:2620:10d:c085:21c1::11b4] (2620:10d:c090:400::5:b8ac) by MWHPR15CA0050.namprd15.prod.outlook.com (2603:10b6:301:4c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.17 via Frontend Transport; Fri, 5 Feb 2021 20:03:07 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e5af27ae-ebad-42c0-adff-08d8ca110ea3 X-MS-TrafficTypeDiagnostic: BYAPR15MB2565: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-FB-Source: Internal X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FsKqqWJACc2BL9QwhjsuumfsHKqKKyKg7eJvChuapgGAmOA+/mKPYmuWuPrTj/PQ2uH8aG3byI4QoMmzrxKorISjcp0Y9MZlkM+vI2i4aPCNNIseLuRuhJvs+OogjMjlksdsmoOlHwdZsUVQPM1Id5v8MeCGgYkEbbc250Vrki3dP41bXtNB3mP8mit0jQ6kLcT1FpSQscMkGwVDDY4j8Wpw1ZzYbrcdtv49YuLJ2byjEUMaU2zNQ+p2QUNL52IzRkzJE9kJan3UdMB7/LAMnqrrms/h7lQeB2acqKSdOLX/B/3DEMnm50FfCiFo36S2PPKSjppk1BVc7gdgxN40ziH0gI4EbdPI9cqej9i3FUXkitJ0cyPealpUF5K+We1H6Q8T/Dg6Drjdp8tgaG6BYzbdAEVJpt4lzGJQfM6W2zd1yVYIsb4+SPjVT+d2zf6vGTCokW1bYbx/h/mx8qa533oQt8pLPhQ2aWH6O3ykSAk9tvO1RL44DoYp6ruWFpS3h95lX6M2KBlocIS9cJiy7/1rVxVgf7BW2r7emqREqtt4yYL5vvqZEws1ddiupzGDrnI4E6fuuyk06NjRRXwSRbibmEMXzKTTLCHSwZaW7K4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR15MB4088.namprd15.prod.outlook.com;PTR:;CAT:NONE;SFS:(39860400002)(136003)(396003)(346002)(376002)(366004)(54906003)(316002)(478600001)(8936002)(8676002)(31696002)(66556008)(66476007)(5660300002)(2616005)(53546011)(7416002)(86362001)(31686004)(52116002)(66946007)(36756003)(6916009)(6486002)(16526019)(2906002)(186003)(4326008)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?RGJ1OHltd0dVT3o3UWpEM3o3cm9nOENISFl6dG1sRVJqcjNkS3NSdHM0R3BQ?= =?utf-8?B?SytMdU1KZ3p4UDZkRnJXNStYNWhJVXlyVTEzcENiNXVFbTk0TVpVUUJmWEZs?= =?utf-8?B?MXB5dkdLcCt6dFRHbUdUV2Fwb3VPbVBxdXNiTlZScGQ3NlpKb0diOGVPeEtY?= =?utf-8?B?Tys1b0hqVGRralNLSGpVYzJ6S21BMnVHN0VlNHBXSDJIR3RCY1AwSktkK1Aw?= =?utf-8?B?WEFsY25jOEJPUGs1RXNiZWVXT2lDbmxwVjc0VHpQd0ZnR2dkc2hPR0JIV2JW?= =?utf-8?B?TmFoMVNpdW5ubVhDbi9lODVRSldueVMyZnZhOXZjNWMwbzBKMkdFbUd3QUd5?= =?utf-8?B?cmxTNU96eDlTQVpYa3BneVF2MmRhUThrRXl0bitrT3ZWdGNjMDR2N2NXcXds?= =?utf-8?B?dlE4SjJPNjUzV1BvNFAwN2NvUEcwdWRhaXpZUVpnWWdNaVY1YUE3Skh3Slcr?= =?utf-8?B?aUFTOGs1aTN4b2FFTW54Tis0bTdBNWJ3RXlvYWVLMHNHQ2trNW1iU1E2V2FQ?= =?utf-8?B?OXFqZUM3bi9SendUM3ExV0x6UWxQcUV0OWJBeDdvOThtNXZiZk9vRU1oeHMw?= =?utf-8?B?R05iMUQzME4xQ3lyNGJlSldNK3htenpnSTVaOE9xRGNudHU4cVVPcVRYVU5u?= =?utf-8?B?aG5xYkQrQlV0Z0FSKy9zL0N2d096T1pZQzVZNkJMaFYwRlQ4ZlJkNlZ1Zjhz?= =?utf-8?B?R2ZlOFFESk05S1p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?QitUaGpjMXBWQ2pwaWNiZUVmSDZwbjA3eUJvVnBjNFFpWjdvMUY1WXNxd1My?= =?utf-8?B?dnNRdVp1NEtOdXUvTVB1SlR6bERvZWQ0TVRyakdJRlgySlIrNnYxWGpINFJO?= =?utf-8?B?dkFrNDY2SnVkZkttSDMyb254azBRV2ZtMnFqa3VpWkNOeFl5bCtXa0dQZ3Bn?= =?utf-8?Q?sIMoh2O5OftII2Eb6ZGDGh0jI6UIqFaVH0xds=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: e5af27ae-ebad-42c0-adff-08d8ca110ea3 X-MS-Exchange-CrossTenant-AuthSource: BYAPR15MB4088.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2021 20:03:08.3646 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: AopHwESC+Oa0+bRgUUrwsB5hviVT1NZ2Nx1dG6KSVK2LoRJ3MhskwHwR7IWy+I0y X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB2565 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.737 definitions=2021-02-05_11:2021-02-05,2021-02-05 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 lowpriorityscore=0 spamscore=0 mlxscore=0 malwarescore=0 adultscore=0 clxscore=1015 mlxlogscore=999 phishscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102050124 X-FB-Internal: deliver Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > - ARnaldo >