Received: by 10.192.165.156 with SMTP id m28csp1121273imm; Wed, 11 Apr 2018 12:50:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+MwSQC/2cwP06pMydGjb6fijLG2U47yEdYf+uNslAiXHc/USZ2Z+3VW9WaSj1fDLVO0fS6 X-Received: by 2002:a17:902:122:: with SMTP id 31-v6mr6591580plb.280.1523476253148; Wed, 11 Apr 2018 12:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523476253; cv=none; d=google.com; s=arc-20160816; b=HFln6dZ/fuFB7wzMra+9OmA0gKZS+E7Y2+SiQbhuvAW+7NJGrsWhYXS2JB9FTLQfaS SiM0Y3+jvEImTY2mI/DWverxIgoKajxws12yKA0UXs1CVYo5OJpGu5079WzuqdFwFB28 gxkrPzF78hifEpTkVccpC2IdsVKl26VXGY+PktVevv/YK69k7YCIUFLkkLHlQvnogwJQ 3rjnvym0PmMziHObi2qCiD0K3gu2a3C9ELHgldF3TahxZQXTJEoZdzMqnp2scLFAT2v1 kIbHDtaLey1buY21EAW+8bfmI8BC5vIalSlIBdHaMa1zJA0CcAO5gilzZcX3Yq9deu2i Y06g== 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:arc-authentication-results; bh=q1NlWLL7dP8mGTaJpGcDaMrKiPn/p/cpduVhOnpH4JA=; b=ZWVYh6Dyy70Ne/zaarl5pbEs1jxtAU/N3LKpNpcuSJ9mRtD8rLCgj6iSqqRmnG5/3I EABwgra9i+uc+QcGwbdbAjGonEM+oqZHU5bmzGWEhIq1YNjljVlkXs+sAKtDjIkCZvcN d1y2ou5p5EYfJmdrTPqsMYWhptm3Laod/TIhGmINfbmxqxSBwNM7JB+I2QRWDJ7Zauhg 3auS3sDhqDtnKrqLdeykhAe7lnmsjycNhZoumJj4CWmtuxNlbg+2Jp08JSo3R3YbinWT dDf9f+KMmgCazxiWhkiNjmZ8GRYtid4rylcNsSgPgir1+NOnD+Srs5weXNJvIwd8Sfj0 42pw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si1682306pla.452.2018.04.11.12.50.16; Wed, 11 Apr 2018 12:50:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756820AbeDKTre (ORCPT + 99 others); Wed, 11 Apr 2018 15:47:34 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:39994 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755829AbeDKTrd (ORCPT ); Wed, 11 Apr 2018 15:47:33 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 721D98DC2F; Wed, 11 Apr 2018 19:47:32 +0000 (UTC) Received: from sandy.ghostprotocols.net (ovpn-112-4.gru2.redhat.com [10.97.112.4]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2F72A1208F73; Wed, 11 Apr 2018 19:47:32 +0000 (UTC) Received: by sandy.ghostprotocols.net (Postfix, from userid 1000) id DBFF14BF9; Wed, 11 Apr 2018 16:47:29 -0300 (BRT) Date: Wed, 11 Apr 2018 16:47:29 -0300 From: Arnaldo Carvalho de Melo To: Yonghong Song Cc: Alexei Starovoitov , Daniel Borkmann , David Miller , Peter Zijlstra , Ingo Molnar , acme@kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: bpf: handling non BPF register names in inline assembly with -target bpf Message-ID: <20180411194729.GD12166@redhat.com> References: <20180411183902.GC12166@redhat.com> <613f0a0d-c433-8f4d-dcc1-c9889deae39e@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <613f0a0d-c433-8f4d-dcc1-c9889deae39e@fb.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 11 Apr 2018 19:47:32 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 11 Apr 2018 19:47:32 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'acme@redhat.com' RCPT:'' 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 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__. - Arnaldo