Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5107713yba; Tue, 30 Apr 2019 09:15:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqw00MNQjlQItYniaKXmAe7cjEJjj9pJhldWXXWy2AiLFTLNvFs1TVumhC9vvQu4FLihiexU X-Received: by 2002:a17:902:e287:: with SMTP id cf7mr71008567plb.217.1556640900941; Tue, 30 Apr 2019 09:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556640900; cv=none; d=google.com; s=arc-20160816; b=QVr9Vmx2xD1FxoBPf+TcUsBjq3oECPK1Y+2SGkzW6EdqtUByF91PtLf+CQaAVMLJY9 gLPaC6Y4APmDx1rXS5Yo30LIGspwjcyrR69RTIBvIM9qNwWGaTGOF2MWji/JFIrNS5fI sOuX+vfATn4q3/3ajF7xiWqTnK6djipIL20rXPTKVV+Fv3MkwJTPvoSx9NSMqFM84++Q YvWiahL+eOdXRUaxvuZnQOahb7Lm4pTqwyBC9vjzdlpnY5yH0EmwSN7TPM0lWPUcTKPL y/x+bcyLfInnsM1i9bREZspCUJ6rfJgAsgjw/tx0EDie995EMm7h7QFF5IaTIK86VUzC ZOjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=0Dw1Sc4DgzUhOMvuweilLKv0I/kx7THnj4Gu6G9qc/A=; b=txzgt5LUUchlWcloNmRKGsuyry0/AUut+dPe3P3jEk+9X3I5+133LUQnCE4hEgd1H2 3BAHlcpGMJQHuB3Zlk6n9UmVecfR5wCXcGfSSQIdjBoZ3tykiC+6qk+OPwiUKN6QpkeX jeRJYHNtrsMYyIWjLYflPo9mRs4Y5gTIBCQ8OujSDuCbwmjl23n8p15FOT4l2EKgdgRy OwKIShHjz/pnCBCijAGG7Tp8jUjOo47FdXNOdb96xOGzth/FtQsd/z8+2bJZE/vZgNwa hpjoNZ1Tp4O91urtq9rIqzDtGxOf4VreUeNoWXcYB2HWtQPwtVNuK56ybZLCsUJHjz+n vcVA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si38415245pfc.278.2019.04.30.09.14.43; Tue, 30 Apr 2019 09:15:00 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726512AbfD3QMy (ORCPT + 99 others); Tue, 30 Apr 2019 12:12:54 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:33388 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbfD3QMy (ORCPT ); Tue, 30 Apr 2019 12:12:54 -0400 Received: by mail-qk1-f193.google.com with SMTP id k189so8526092qkc.0; Tue, 30 Apr 2019 09:12:53 -0700 (PDT) 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:from:date :message-id:subject:to:cc; bh=0Dw1Sc4DgzUhOMvuweilLKv0I/kx7THnj4Gu6G9qc/A=; b=V9njuefs8h5r7nWTByHu/7skJsBICOSgC+t3zv2Lv5auS+F4kG9z5ftuxNisuUm9KW NpI16KFGqbJrGixjVc4QzMhYTJOTLwx4vIv+D/hKq7KDYpAvAd6wvyE4fvo2ovk4pCjI A8jpqgG/oQfS/R0shXbk5tDxWslVMeHdmFM/MoVtkqaeTpUKeq9hRWUeC66oQFtsOHHq TQVL8zzAIN68XYKGaFGedRhmrWaidq9Gj+7dyIBugHggM2MyklgXmgbeqo3CPrOMMXlZ s69n9vuQzuauq0P8muU/Uv+WB8S1ozQjvltUrcQssXxqiMQ/zBUg5rNeLeJws+IdKO4t YCwg== X-Gm-Message-State: APjAAAXlqgx0NWZ6oULx/Gw45MnVyRMkoK5RKdi3w55P4ERODdlD0vOv nI5F1MDP0PSXUyJjmu7FTOg/xCej8pSV6ekwFx4= X-Received: by 2002:a37:b802:: with SMTP id i2mr48165405qkf.343.1556640772741; Tue, 30 Apr 2019 09:12:52 -0700 (PDT) MIME-Version: 1.0 References: <20190422152027.GB11750@kernel.org> In-Reply-To: From: Arnd Bergmann Date: Tue, 30 Apr 2019 18:12:35 +0200 Message-ID: Subject: Re: perf tools build broken after v5.1-rc1 To: Vineet Gupta Cc: Arnaldo Carvalho de Melo , Arnaldo Carvalho de Melo , lkml , "linux-perf-users@vger.kernel.org" , Jiri Olsa , Namhyung Kim , arcml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 29, 2019 at 7:17 PM Vineet Gupta wrote: > > On 4/22/19 8:31 AM, Arnaldo Carvalho de Melo wrote: > >> A quick fix for ARC will be to create our own version but I presume all existing > >> arches using generic syscall abi are affected. Thoughts ? In lack of ideas I'll > >> send out a patch for ARC. > >> > >> P.S. Why do we need the unistd.h duplication in tools directory, given it could > >> have used the in-tree unistd headers directly ? > > I have to write down the explanation and have it in a file, but we can't > > use anything in the kernel from outside tools/ to avoid adding a burden > > to kernel developers that would then have to make sure that the changes > > that they make outside tools/ don't break things living there. > > That is a sound guiding principle in general but I don't agree here. unistd is > backbone of kernel user interface it has to work and can't possibly be broken even > when kernel devs add a new syscall is added or condition-alize existing one. So > adding a copy - and deferring the propagation of in-kernel unistd to usersapce > won't necessarily help with anything and it just adds the burden of keeping them > in sync. Granted we won't necessarily need all the bleeding edge (new syscall > updates) into that header, its still more work. I think more importantly, it seems completely broken to sync a file from asm-generic but not the arch specific file that includes it. The 1a787fc5ba18ac7 commit copied over the changes for arm64, but missed all the other architectures changed in c8ce48f06503 and the related commits. Arnd