Received: by 10.223.164.202 with SMTP id h10csp2431432wrb; Mon, 27 Nov 2017 17:20:56 -0800 (PST) X-Google-Smtp-Source: AGs4zMYXyrR50Ge2XJfqA9mXUiy01ujPmbKxHBeNakUUdJyIU0SQ2bJCBAs+cGIFtOpZ36t2GtWI X-Received: by 10.84.136.131 with SMTP id 3mr25371493pll.430.1511832056415; Mon, 27 Nov 2017 17:20:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511832056; cv=none; d=google.com; s=arc-20160816; b=jhCY9AkqS9ybyy583ww3SkKdt9RTO1QPxUHuY6ui72ou0J+ZW4I4NsfEZ5u3COs2fX D3e1WvuFku5jDX1izmZYz8sukAZQR22gvmJGoWC0fuzibi1Bv9UPjln0KAdi13STvlgf xiUtzdQjlv2DA+a8rpVggAIyq+AFPe5M9IlEmS008f5oX98ks9RhMBkmXVmLI617s8dr OAp6WsNNKZoFm6SIVj0jOGjJOr+FzwZubg9R06mdlS0JvoslI8unu5TZwqhoNbV6VuYE BcnwUSiqGK4hreYju/ELMidBIcQJMQ0ZjfPLmZ4yJsZfXBBN0AvPmVALQ8EVIEj9t48X eOgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature :arc-authentication-results; bh=KGWVUASUPVBGNsnwwhfXhquuegPLjnKrOp3xFUnGjsE=; b=GrzFieqnr5BxMMdS6dw38KUMAJc9Es0P5BHkdenZeLUCiBdF4y+ZtOxWn6XtkpmX2C ecLTOBbYIKM+jCJozth5l8UXILIKsK3Lme59QbH0Q1MsLo0jjaj2PEBls5GWo3y+Oz12 on0tA2uSrAhoAPy6dN8rKzkKPdfXUNPOTHYgA5bB1YLdtOV7Fn3GYgN6ZJn3whGSOhfS UpxZAPJvBDsGbvJ8pNIoZajH1icqLvSL7aeVigTQNykng7itfe2MRECsADHc+YV7FAc5 tvf3jJAwy1BAK2mllplrYMT8mfIRWC1hKzNgfR1V0zH5sJDXLHSUklEDA7PkTBJO93Jm LMcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=q7B3vSDt; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=Zsvrq7co; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si15144207plb.153.2017.11.27.17.20.43; Mon, 27 Nov 2017 17:20:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=q7B3vSDt; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=Zsvrq7co; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752997AbdK1BUC (ORCPT + 78 others); Mon, 27 Nov 2017 20:20:02 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:49614 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752572AbdK1BUA (ORCPT ); Mon, 27 Nov 2017 20:20:00 -0500 Received: from pps.filterd (m0001255.ppops.net [127.0.0.1]) by mx0b-00082601.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAS1GvSZ011877; Mon, 27 Nov 2017 17:19:26 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=facebook; bh=KGWVUASUPVBGNsnwwhfXhquuegPLjnKrOp3xFUnGjsE=; b=q7B3vSDt05wtn23/vII18Cb1wYyjK2yX6ZHKrUnjew9+VufEj5jM8C+iZ9UT87eXSnhm 25QLc4xdOBRkL3+K479xWe6OrjuRWfAdmK3wu1r6VCF99w0k+XUQx1Azx65PEAGkPaB+ ZoWkE2YNGXTJyAYlf0Npfg7L4Ge2/+bsSFc= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0b-00082601.pphosted.com with ESMTP id 2egu9trmtd-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 27 Nov 2017 17:19:26 -0800 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.31) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 27 Nov 2017 20:19:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=KGWVUASUPVBGNsnwwhfXhquuegPLjnKrOp3xFUnGjsE=; b=Zsvrq7cobLJgVoCZnG64LfD6VUdF3WOOteOYJfBEByVahuDFjM9TCoZ9A2LtP+MpfrPH6ZhVk7NH3h48Cr7MlEb5N1lwQp7sKeMbWU+7BoyoolIJFM+FsAUUcEdyrMS72DLGIXU+UrntPUZNgJYH24ZISyHwsuF1fajVn2UdFOI= Received: from raviram-mbp.DHCP.thefacebook.com (2620:10d:c090:200::6:11a6) by CY4PR15MB1830.namprd15.prod.outlook.com (10.174.54.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Tue, 28 Nov 2017 01:19:20 +0000 Subject: Re: perf test LLVM & clang 6 failing To: Matthias Kaehlcke , Josh Poimboeuf CC: Arnaldo Carvalho de Melo , Daniel Borkmann , Wang Nan , Alexei Starovoitov , Adrian Hunter , David Ahern , Jiri Olsa , Ingo Molnar , Namhyung Kim , Linux Kernel Mailing List , Andrey Ryabinin References: <20171124144717.GO8789@kernel.org> <7cd16670-37c9-21f5-21c8-d50385ebc951@iogearbox.net> <20171127170435.GA3298@kernel.org> <7f618077-3a04-04b6-f6df-cf91d3ff4424@fb.com> <20171127193425.GC3298@kernel.org> <20171127195756.rbgduy5udx4cko2v@treble> <20171127214521.GB53228@google.com> From: Yonghong Song Message-ID: <86934947-f267-4b36-be99-8f5f81faee4a@fb.com> Date: Mon, 27 Nov 2017 17:19:17 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171127214521.GB53228@google.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c090:200::6:11a6] X-ClientProxiedBy: DM5PR2201CA0053.namprd22.prod.outlook.com (10.174.180.170) To CY4PR15MB1830.namprd15.prod.outlook.com (10.174.54.15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9567b106-29a0-4b03-f5d5-08d535fe0e4a X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199);SRVR:CY4PR15MB1830; X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1830;3:3TrTsjmec84faOC7QFICqbfOaONZ2QTupeUAmVy2JXAGlaQXa/aGsWpkJt97WOP7uopQpfNmqkrPM+C/EC/JRvC24WSHtZjvJ2ByXUObAV6sb/Rt89XKtPbJqRWRhcOkJuF5ClIu7kMrD292lopyJi2EnfHPtVB733jGpdBVbFl6Pxk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pJJsufhQjSgQDu5ceuNPHflu1tVi86Eumg6QGmj2fbQbnNjSBeudnpBpBzxL52fZlKL1413F3DDYa5UFhg92nU4RSkytdWCilgUkoNns77lkyUfDo6VkHPQaOwXY0kA1BIZAqXw44hwZWkqmiybITeRfyqe8;4:z5SodmqqLta3a3H6a63MvmHs8KaxaA2aY0DdInlinsHkqDXeLhES+MSl/h6+rF98m9C/fhVw1mRPTd8lHhXuNeYu6rUP/rvZWUkGZXHq5trVACp0OykAEo5rLpgyD0cR1opt1MMzmx2s7XiHmHlMBN/pQ++q376wppRdqmfOaRM++QTn0+eZ6xA0gO83tUDUzktdXR4inZwszCYInFHy4C75KNvxvNkDyvP3NWlnXJHtpvJwtHfHOAFe5mwIwKmkXzW7ig1EIpMIe9uiAd5+Sg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(11241501159)(6040450)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231022)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011);SRVR:CY4PR15MB1830;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY4PR15MB1830; X-Forefront-PRVS: 0505147DDB X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(346002)(376002)(366004)(199003)(189002)(69234005)(24454002)(31686004)(39060400002)(6512007)(47776003)(6246003)(53936002)(8936002)(189998001)(4326008)(67846002)(83506002)(33646002)(101416001)(50466002)(105586002)(2906002)(6506006)(36756003)(25786009)(6486002)(229853002)(86362001)(106356001)(305945005)(65806001)(7736002)(65956001)(68736007)(81156014)(81166006)(8676002)(64126003)(478600001)(6116002)(31696002)(6666003)(2950100002)(58126008)(2486003)(23676004)(54906003)(52116002)(110136005)(52146003)(52396003)(97736004)(65826007)(5660300001)(230700001)(316002)(7416002)(54356999)(76176999)(53546010)(50986999)(93886005)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR15MB1830;H:raviram-mbp.DHCP.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjE1TUIxODMwOzIzOlVGOWZ6NDY2aUpTSmFQTk11Q3k3SGk2TldH?= =?utf-8?B?Mm1JeXdKcUg0L292LzF5UDNSY01BQVJjdGJXN3A3aytYVDZqWlVSenI1LzBS?= =?utf-8?B?WVZndHI1b0ZGQ3hEbkpkRkpxQ3kyNjlOY25jTWxDKzc1dGNJWStWUUxPeUJm?= =?utf-8?B?ZHZ5RVpQcStXcmtYUEplMktzVVhib0NKZzJNM3V5Rmx5Rkp0KzQxaHY3Q3VX?= =?utf-8?B?dm53QytCbUc1SVdiVUR0NTV5ZWk3SFJnN2c2bjJNbDBvbW5uQXBRTWRnUzFF?= =?utf-8?B?MEVweFhZOFhnbG9kMmJyWVYvaG9CU0t5N0JCa0ZYNUtPQlRZNE80bmlLZDF3?= =?utf-8?B?K042RFRxUG1HOVVJbWJXWjBlWkNaRjRCU1pMZVNPaFEvMUk1OEF6QjZUcyti?= =?utf-8?B?dW1MMnAvcmJYY0E5M3h0WmtFUXgvVnBTa3pEWFlEZ2pEQk5wL2xEaXBUaTZ5?= =?utf-8?B?SXZidnkralhheEVtaHhjRjdHd0xpc3FEM2FwRktvbDRHWFQ3eERsZkM4K3My?= =?utf-8?B?ZENiQytyQzdRSEJkYUQ3cFkvNmZZVEY3YjA3d0RKYTZmZ2xZSVpEeFdZVFQ1?= =?utf-8?B?ZXdxcjdZVTlIYnd1TjNSVC9NY2V4bjZYTlZqR2lZdi9iMmlrc205OEdBWWFU?= =?utf-8?B?Y2hQR1g5M1lFRVZJNUYvM1A5VVFNVk8zTVcvQnJRVjB1cnJYVzVwN0IyYWM1?=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;24:rv2nzKPu2mK6IZvSqC4OmzQ9kuOlpPCPObIjN7rsh4kLKHBwV5l/YIbMlIoFxQwb9GwUk6BdpMfmAeNM2vXnvuGjBhXERjsTw6KIQVeKb9w=;7:YdSBkGtv61XpNmhCVXiq62wDmJUaRwmGQ5jbr5lykXEWlzY67OEjuN+aYNIsJSgD6xOTGboVZGOEP/tGYqHMiLeAB3R6PJTgFYa/G6iNTcR6ihinOlft7cHbvz1PUWZrOhq5xxqbX0LAkb3dzK1ujsvaH2FAc1/FKETKvUgj4QmGDNYP9uvnGHacH5hcNraPsd7lMOkZyX1DhVhm5Eo3PzswQ8l1o24XPS6K4mE1aKFp6mGV7/fCHWiMMsuCJLfK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1830;20:Zwn2GI9PzD9quWrEkvDfgwXhB/NUwCLR7U33l6bKTMkjpQKrzSXNmDVz2DfhhJAMRtaJm7IOSXoFbfJM4QlByNxGOnRoMtcONZWH1BOku+/3ZDAxhRJsqdgXD4HdmbaJinEP7b4kyjLUbt2SsBj0H4tznnULIWkZpVBRAQRUU+U= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2017 01:19:20.6802 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9567b106-29a0-4b03-f5d5-08d535fe0e4a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR15MB1830 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-28_01:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/27/17 1:45 PM, Matthias Kaehlcke wrote: > El Mon, Nov 27, 2017 at 01:57:56PM -0600 Josh Poimboeuf ha dit: > >> On Mon, Nov 27, 2017 at 04:34:25PM -0300, Arnaldo Carvalho de Melo wrote: >>> Em Mon, Nov 27, 2017 at 11:11:56AM -0800, Yonghong Song escreveu: >>>> On 11/27/17 9:04 AM, Arnaldo Carvalho de Melo wrote: >>>>> Em Fri, Nov 24, 2017 at 04:16:52PM +0100, Daniel Borkmann escreveu: >>>>>> [ +Yonghong ] >>>>> >>>>> + Josh >>>>>> On 11/24/2017 03:47 PM, Arnaldo Carvalho de Melo wrote: >>>>>>> FYI, just noticed, recently updated clang to version 6, from its >>>>>>> upstream git repo. >>>>>> >>>>>> Do you recall what was your LLVM version prior to this where it was >>>>>> working fine? (Wild guess from below would be the BPF inline asm >>>>>> support that was added recently to LLVM (2865ab6996) vs asm() used >>>>>> in headers included in the stdin header causing trouble due to arch >>>>>> mixup?) >>>>> >>>>> So, if I go to the cset just before: >>>>> >>>>> commit f5caf621ee357279e759c0911daf6d55c7d36f03 >>>>> Author: Josh Poimboeuf >>>>> Date: Wed Sep 20 16:24:33 2017 -0500 >>>>> >>>>> x86/asm: Fix inline asm call constraints for Clang >>>>> --- >>>>> >>>>> 'perf test LLVM' works again: >>>>> >>>>> [root@jouet ~]# perf test LLVM >>>>> 37: LLVM search and compile : >>>>> 37.1: Basic BPF llvm compile : Ok >>>>> 37.2: kbuild searching : Ok >>>>> 37.3: Compile source for BPF prologue generation : Ok >>>>> 37.4: Compile source for BPF relocation : Ok >>>>> [root@jouet ~]# >>>>> >>>>> I.e. 'perf test LLVM' built from what is in my acme/perf/urgent branch, >>>>> targetted to v4.15, uses kernel headers and if I go to just before >>>>> f5caf621ee, it works again, both with clang from fedora26 (4.0.1) and >>>>> with 6.0, built from sources. >>>> >>>> This patch introduced a module level inline assembly. >>>> >>>> ... >>>> --- a/arch/x86/include/asm/asm.h >>>> +++ b/arch/x86/include/asm/asm.h >>>> @@ -132,4 +132,15 @@ >>>> /* For C file, we already have NOKPROBE_SYMBOL macro */ >>>> #endif >>>> >>>> +#ifndef __ASSEMBLY__ >>>> +/* >>>> + * This output constraint should be used for any inline asm which has a >>>> "call" >>>> + * instruction. Otherwise the asm may be inserted before the frame pointer >>>> + * gets set up by the containing function. If you forget to do this, >>>> objtool >>>> + * may print a "call without frame pointer save/setup" warning. >>>> + */ >>>> +register unsigned int __asm_call_sp asm("esp"); >>>> +#define ASM_CALL_CONSTRAINT "+r" (__asm_call_sp) >>>> +#endif >>>> ... >>>> >>>> This will cause "clang ... -target bpf ..." failure since 4.0 does not have >>>> bpf inline asm support and 6.0 does not recognize the register 'esp'. >>> >>> Ok, explains the problem then, Josh, ideas on how to proceed here? >> >> The original change to add the global inline asm: >> >> 5caf621ee35 ("x86/asm: Fix inline asm call constraints for Clang") >> >> was done to support clang in the first place. Before that change, a >> clang-built kernel didn't even boot. So I'm a bit perplexed by the fact >> that this change would be causing clang problems, since it was done to >> fix clang in the first place. >> >> Adding Andrey and Matthias, maybe they can help clarify things. > > Indeed the change was needed to boot on x86. > > I know next to nothing about BPF, if I understand correctly the error > is generated when compiling for the BPF "architecture" not for x86. In > this process x86 assembly headers are included, one of which contains > the declaration of the register variable, in an register that exists > on x86, but not BPS. > > I guess the first questions is whether the x86 asm headers should/need > to be included when compiling for BPF. If this needed/can not be > easily avoided one option could be to put the declaration within an > ifdef __x86_64__ block. There is a way to do this. You can use the similar mechanism to the one in linux:samples/bpf and linux:tools/testing/selftests/bpf. Basically, you first do: clang ... -O2 -emit-llvm -S prog.c <=== this uses x86_64 as the default target llc -march=bpf -filetype=obj prog.ll <=== this uses bpf target This should work. From 1585257315569877153@xxx Mon Nov 27 21:46:26 +0000 2017 X-GM-THRID: 1584959210990306928 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread