Received: by 10.192.165.156 with SMTP id m28csp1291257imm; Wed, 11 Apr 2018 16:24:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx48akRHAADW0SORwlG3ZQU3/h0itGF3PwNdoXk/agIgNP13Mw1BTx717rUgPpKN+AOzaEOBt X-Received: by 10.98.170.13 with SMTP id e13mr5592523pff.137.1523489052848; Wed, 11 Apr 2018 16:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523489052; cv=none; d=google.com; s=arc-20160816; b=vPD+aeOj9OQQG4n3Gkd1sEGYJ179HplPR0M05kmUz9+2vD6O70ZjOeq6gEzhs4CaS3 v0EIAOCfbe6Bfq/DHw8PcxmIsVm7GVWs4vr68242mCQv7RvCI/8tYaCsTJ/PfH11CMQw T8XIPkyoDw7kQegB3nE05fsvDttnY5GvREyWVopRSydtwKyJI367Qs9h5dnOtPQX/g/7 mdk6PY15WqfVnD4qPws6WsxwXQ11p6VApBBV1T+rbFOEiTR5rVeDJgWdcw+GrbTI6SG+ Eu1spO1szkzNoYS1UtfBC0s7F3HnmJ9TXRbjgDxV7k/+HCUo3QrJfFS6wWxqiGBIz//W /sww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=ubdPkvUpZbQ5LbjahMqPcAbfKU/8GwGTIWQ6jLSJJlU=; b=L0bRGKnVBSrciFcKI/GoD0cmyL1cZqRosewu99bNgRdXXocfDKC7S2MrUP0aWUsqjJ LLQlXwHMYESjjtR0W1K02tQmpZTWSutoZ6lEsUr7deTXUJYm7HiCieH/2C05iYvP/cZv Yp5GwX0iwY7CUEkBhibLG/6QYFT5Np7bCzjkOXf86T1oVrX49Rbs2nd/f/M08mxJXFtD /U2jrOxKk64OG8l8qDGjPi8Md3xVelbyWdwolygQTwqlEEvqmfEP91vNIVpt7E+jMCcA lbr/qFBjhKfNVol9BolrE5F2wHjv6Kow/RPe494hOubMg0KKSVtciTLha5YymbFvVXUQ iffQ== 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 c10-v6si2095993pla.602.2018.04.11.16.23.36; Wed, 11 Apr 2018 16:24:12 -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 S1752558AbeDKXRh (ORCPT + 99 others); Wed, 11 Apr 2018 19:17:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:33590 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751734AbeDKXRg (ORCPT ); Wed, 11 Apr 2018 19:17:36 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 07F4121722; Wed, 11 Apr 2018 23:17:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 07F4121722 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Received: by jouet.infradead.org (Postfix, from userid 1000) id 92337145736; Wed, 11 Apr 2018 20:17:33 -0300 (-03) Date: Wed, 11 Apr 2018 20:17:33 -0300 From: Arnaldo Carvalho de Melo To: Arnaldo Carvalho de Melo Cc: Yonghong Song , Alexei Starovoitov , Daniel Borkmann , David Miller , Peter Zijlstra , Ingo Molnar , "linux-kernel@vger.kernel.org" Subject: Re: bpf: handling non BPF register names in inline assembly with -target bpf Message-ID: <20180411231733.GB24386@kernel.org> References: <20180411183902.GC12166@redhat.com> <613f0a0d-c433-8f4d-dcc1-c9889deae39e@fb.com> <20180411194729.GD12166@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180411194729.GD12166@redhat.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Apr 11, 2018 at 04:47:29PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Apr 11, 2018 at 12:22:37PM -0700, Yonghong Song escreveu: > > Look at test bpf-script-test-kbuild.c, I think you can drop > > uapi/asm/ptrace.h from include file list. This way, you do not need > > __BPF__ in x86/include/asm/asm.h. At the same time, you can > > remove __BPF__ as well. > > That's even better, I'll try that approach, that code was done by > someone else, so I ended up not considering looking if removing a > unnecessary header would fix the issue, I'll check and if that works > I'll revert the patch that introduced that ifndef __BPF__. So this is what I've pushed to my perf/core branch: https://git.kernel.org/acme/c/707ba03243d2 (HEAD -> perf/core) Revert "x86/asm: Allow again using asm.h when building for the 'bpf' clang target" https://git.kernel.org/acme/c/4364203f5563 pref tests bpf: Remove unused ptrace.h include from LLVM test Thanks, - Arnaldo