Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp67558imm; Wed, 5 Sep 2018 15:07:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaE3+VWhK8o+PQPHUC4gAnvjxRFjzgO4jtC3Q0qs7vO97n/9svNsc2PwQBB1oXiz16TMX4c X-Received: by 2002:a62:8704:: with SMTP id i4-v6mr42465137pfe.62.1536185245475; Wed, 05 Sep 2018 15:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536185245; cv=none; d=google.com; s=arc-20160816; b=Xi/4vhrFaV0fOAl+FGcH0NIoMsvjF/GKd0cAy8pjh1tBr6PWj3I218f7SagnAcpHyR 2v3i2LjlxdXi6d9s7Lh+v7SVub7lIfZh/W+ggOcLY1VePS5SQNfA2l7f6Ch0vKgrkeX7 E3WvkH4L29V90zZIlE1YHDuzMaaFZ/6c3au2DlXwPNlcXT2oNaqUSel7Qi3Cu3I1ChZB U8SK/PQoV3XXu0sWfRxLOS0ePQEPsyTnUJ11FJawefOZWMahQU45lU+7lYoafnVBBbZ3 7nb0IEnhHIPUilgqB30EQgfRGfH3I4w2iHa6vj9LXp2o7DVC1jPSxkAlklzi6MPrpptW LANA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=X4WJNPKh8w98QPeEVTCYMs+bErFbjIIsdJC3D/UdWN4=; b=EAlD5xWFHVVW1505v9zMxtUPQw5iwsbixsW89YYanpZaVu5isQdpG/bg28H2O8cVxO +LfJDiBTvGGt3xzuXIr/q4AaA/2q3Rvi3CTj8hJyUU5zQBXG4/0Amy86RusH3LHfk8Et YiLJXdwz8ksROwAWE2nz3nUjzeVtSjaP9zQH8+it0sJ62uU2RtcG+VMmA8++kZf2DjK5 6EAnno/cWhiShJwe/bwojyJBUL/KaQTq+1UZoa6DOYRE2q8TJo0YiZyMetHxgqWI6kRF uf+HouIimbai4H187WsAE+bqVP7JO0nBgXlOfCQD/dmnEwzwFyXu2MkAXsqU5ni+BPH8 uICQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aa+aClQQ; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k29-v6si3227608pgf.227.2018.09.05.15.07.09; Wed, 05 Sep 2018 15:07:25 -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; dkim=pass header.i=@kernel.org header.s=default header.b=aa+aClQQ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728176AbeIFChh (ORCPT + 99 others); Wed, 5 Sep 2018 22:37:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:51790 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727518AbeIFChg (ORCPT ); Wed, 5 Sep 2018 22:37: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 BF01D20839; Wed, 5 Sep 2018 22:05:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536185125; bh=kr/2tGHbEEHthf5EeDIdlkCvF2ExAzujYmBBTzY20Wc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aa+aClQQ2+Jz1wbULahVD17UEhe5/pvfIBYbUmmXEV2D1AaxgBoMuG/XkLc/cdU1Q QCeSjQ1Z99IJ+/nCGL8qFCTz1X4H3ZvRhtkN/jddkQkJ/rsX1UBqtKTFVuZUulLkfX lU0HjabO3UOxXpg0+7imRgSOLN4nKp5axzb9Sz6k= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo , Adrian Hunter , David Ahern , Jiri Olsa , Namhyung Kim , Wang Nan Subject: [PATCH 12/77] perf bpf: Give precedence to bpf header dir Date: Wed, 5 Sep 2018 19:03:35 -0300 Message-Id: <20180905220440.20256-13-acme@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180905220440.20256-1-acme@kernel.org> References: <20180905220440.20256-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo I need to check the need for $KERNEL_INC_OPTIONS when building eBPF restricted C programs, for now just give precedence to $PERF_BPF_INC_OPTIONS so that we can get a linux/socket.h usable in eBPF programs. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-5z7qw529sdebrn9y1xxqw9hf@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/llvm-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/llvm-utils.c b/tools/perf/util/llvm-utils.c index 19262f98cd4e..5b0b60f00275 100644 --- a/tools/perf/util/llvm-utils.c +++ b/tools/perf/util/llvm-utils.c @@ -19,7 +19,7 @@ #define CLANG_BPF_CMD_DEFAULT_TEMPLATE \ "$CLANG_EXEC -D__KERNEL__ -D__NR_CPUS__=$NR_CPUS "\ "-DLINUX_VERSION_CODE=$LINUX_VERSION_CODE " \ - "$CLANG_OPTIONS $KERNEL_INC_OPTIONS $PERF_BPF_INC_OPTIONS " \ + "$CLANG_OPTIONS $PERF_BPF_INC_OPTIONS $KERNEL_INC_OPTIONS " \ "-Wno-unused-value -Wno-pointer-sign " \ "-working-directory $WORKING_DIR " \ "-c \"$CLANG_SOURCE\" -target bpf $CLANG_EMIT_LLVM -O2 -o - $LLVM_OPTIONS_PIPE" -- 2.14.4