Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2539495ybl; Mon, 20 Jan 2020 04:58:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzP0hvXt1ljMYkmDHpJfpK8rwEUQ0hSFdpfpLC2YAs6252nYVOl09VdPHN44bBt8bxdcG5C X-Received: by 2002:a9d:674f:: with SMTP id w15mr16074643otm.243.1579525128023; Mon, 20 Jan 2020 04:58:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579525128; cv=none; d=google.com; s=arc-20160816; b=0hRb0wOnN+AoYM78nygQ7Si8YqzhXgTLE8vSpIB6N0Iv1J4LMzE0PdmNsOLEgPxgoP 7mmotdPrMO/mQ4sPn6m97B7L2QJNvjx2G41oeYtCRXCaYU+6LOqd+ttkuSowzZz3a5WD eioRvI79duBlBluG3vbLYS8QHqIlxu2UQ8XjuIaf9Tmew3C9vT4igTsKQ1iWADZkaF/w xhQIvxgeG8npNhvRP331Tlk9AFCRCE1Ya9AKxd2zCY0YtpKQ8A/m4pnvz0II0xZblXvv +At6CdyDuyKIv54yefYvMJv6RbKeDG2QyT/oICtO5MeLSjKOLvZuwbNkS6ZSzU/vMoAi bqQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=FEDkrujKlTJc5+7hmDpzcA7gq/UPeEUXrVOs87I/0F4=; b=DWoXuB4QYf4+kVkAUCxAGsYoHKVf8lM0kDgGJu6O+HXIx+64/ZL1L05osPjVqUcdvt Q+WlFoXXzU9P9pAMGJz+H0nYU45CHaUqZDSPooNylHZYbs0vUXU+MvoLh7pw5KlYfg4N OtCCNe94mpbE7Epumaz36nnXB3lj42GBoPsceRkb+1VHOoZPX7v2HljyJgmbslZDZA/l kKOBJ5gI6USDad3TMsuJeudfoqA4j/rJVqzSD668M6HSY8VwrEuTA6hLrNVTYLzAXpzd nsobrfcb7Xvx8Aq0vsU22MNTMVl9UXLTKX6gd/Ri5YXB+k4NXe9wa1zKIqqhx4i+ESc6 zaYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PMRCjq8r; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si20568954oth.26.2020.01.20.04.58.35; Mon, 20 Jan 2020 04:58:48 -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=@redhat.com header.s=mimecast20190719 header.b=PMRCjq8r; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726942AbgATM5G (ORCPT + 99 others); Mon, 20 Jan 2020 07:57:06 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:51079 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726589AbgATM5G (ORCPT ); Mon, 20 Jan 2020 07:57:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579525024; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FEDkrujKlTJc5+7hmDpzcA7gq/UPeEUXrVOs87I/0F4=; b=PMRCjq8r3kflwb+497XgRMs6YzZG95l6goXTdFI0PNTAJFeEM/LR2Z/2wQOnxvxjCpa6f0 RBKedeVmwaaN6MYEmVfMaGiHxeXBdNG1ru7GSATFxLW9Wl/vkX0O/jIsDhAOnXX5DJojab RsrwLlPxviQA5TzNlF5kB35UFibZtqE= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-367-vl_qzjN0NhGrL6xjVBCcAQ-1; Mon, 20 Jan 2020 07:57:02 -0500 X-MC-Unique: vl_qzjN0NhGrL6xjVBCcAQ-1 Received: by mail-lj1-f197.google.com with SMTP id b15so7513348ljp.7 for ; Mon, 20 Jan 2020 04:57:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=FEDkrujKlTJc5+7hmDpzcA7gq/UPeEUXrVOs87I/0F4=; b=tDXUWb66nw9qZAaTTZl6REheNZDzEk1aA1OBPJVxhquvgB5kyR3fqJ5+yPJv8GMrXc 6fscGkayu5WVYGdWincA+HgAuKQVWWO4GxAb7ejv42G3ee5/MgxcAD/gqUH86AoOaxbE 4JxQZbOwjBUkHs46CMhXvrHTSFpmXmTNMfkh+8sWfJ5Zf2caClkCv2mgmQocQeH8qeVr yM5AIo7uP1vWAzQKv3h6rIqu1HpRV3p1q9u8uVAU+jSuqfRrGb9nPk0sj6V8FBRJ3EBa 26vZvnraJB0Keyx7RPKr6lQ9w5zr92ie/ZKtoJ2D4nFL2Bt4K3n6Sby/JnLeEXcHCWFn mZsA== X-Gm-Message-State: APjAAAUAG9Uw8+sPMWpaJr0AkdSQopYDWnkl6fypp8IQd47x3LEJp70M N4Kzgn1JGDi2cD+ikayqSpHczpENXylp6z1Ok46HLLMT3HYx4PUJyqN2EMTh9WA9i5PaCuOo1w8 o9q6b1eskhcUUlw1HNCGUhlIz X-Received: by 2002:a2e:721a:: with SMTP id n26mr13678542ljc.128.1579525021238; Mon, 20 Jan 2020 04:57:01 -0800 (PST) X-Received: by 2002:a2e:721a:: with SMTP id n26mr13678516ljc.128.1579525020966; Mon, 20 Jan 2020 04:57:00 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id 2sm16813782ljq.38.2020.01.20.04.57.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jan 2020 04:57:00 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 5785F1804D6; Mon, 20 Jan 2020 13:56:59 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Andrii Nakryiko Cc: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Doug Ledford , Jason Gunthorpe , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Shuah Khan , Networking , bpf , open list , linux-rdma@vger.kernel.org, "open list\:KERNEL SELFTEST FRAMEWORK" , clang-built-linux@googlegroups.com Subject: Re: [PATCH bpf-next v4 04/10] tools/runqslower: Use consistent include paths for libbpf In-Reply-To: References: <157926819690.1555735.10756593211671752826.stgit@toke.dk> <157926820131.1555735.1177228853838027248.stgit@toke.dk> X-Clacks-Overhead: GNU Terry Pratchett Date: Mon, 20 Jan 2020 13:56:59 +0100 Message-ID: <875zh6p9pg.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrii Nakryiko writes: > On Fri, Jan 17, 2020 at 5:37 AM Toke H=C3=B8iland-J=C3=B8rgensen wrote: >> >> From: Toke H=C3=B8iland-J=C3=B8rgensen >> >> Fix the runqslower tool to include libbpf header files with the bpf/ >> prefix, to be consistent with external users of the library. Also ensure >> that all includes of exported libbpf header files (those that are export= ed >> on 'make install' of the library) use bracketed includes instead of quot= ed. >> >> To not break the build, keep the old include path until everything has b= een >> changed to the new one; a subsequent patch will remove that. >> >> Fixes: 6910d7d3867a ("selftests/bpf: Ensure bpf_helper_defs.h are taken = from selftests dir") >> Acked-by: Andrii Nakryiko >> Signed-off-by: Toke H=C3=B8iland-J=C3=B8rgensen >> --- >> tools/bpf/runqslower/Makefile | 5 +++-- >> tools/bpf/runqslower/runqslower.bpf.c | 2 +- >> tools/bpf/runqslower/runqslower.c | 4 ++-- >> 3 files changed, 6 insertions(+), 5 deletions(-) >> >> diff --git a/tools/bpf/runqslower/Makefile b/tools/bpf/runqslower/Makefi= le >> index b62fc9646c39..9f022f7f2593 100644 >> --- a/tools/bpf/runqslower/Makefile >> +++ b/tools/bpf/runqslower/Makefile >> @@ -5,6 +5,7 @@ LLC :=3D llc >> LLVM_STRIP :=3D llvm-strip >> DEFAULT_BPFTOOL :=3D $(OUTPUT)/sbin/bpftool >> BPFTOOL ?=3D $(DEFAULT_BPFTOOL) >> +INCLUDES :=3D -I$(OUTPUT) -I$(abspath ../../lib) -I$(abspath ../../lib/= bpf) >> LIBBPF_SRC :=3D $(abspath ../../lib/bpf) > > drop LIBBPF_SRC, it's not used anymore It is: in the rule for building libbpf there's a '-C $(LIBBPF_SRC)' -Toke