Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9052081ybl; Fri, 17 Jan 2020 05:38:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzA6TKLDs2O9cY53RtGOc4Fr1YDH03xZziQxIIlTuXSkJz8GNixwzP9+dy06avEJkvIp/7X X-Received: by 2002:aca:f555:: with SMTP id t82mr3501148oih.103.1579268299462; Fri, 17 Jan 2020 05:38:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579268299; cv=none; d=google.com; s=arc-20160816; b=PlHQ3lwjSzrYdW90ohlLYF1SazjoMJN+9ZoRrFw2T4NNCz1gUGkeI/x8nsgIAlRGGS odLXRFpoluq/+i7x4CX0G5mJ6yIEQEyLvhMBsOVWG6ZknJ8FyW8tNbw5au1Si6BcvZ3j 4LF0YcvOY7B98oVJwyvTFpcwvOMhehWjeEDY5HcGfhpt5AJlnGrSmNsbG7DDxQOU/5Bw 1JyKfcKvKf7b+QH3Twieg+eeKy2+OjiyDE6U7xF4LCopDvoY3nbvLb8eI5yD1XF3569U Ba5vEDieq6B2yO2yOhNT/JIeb9IiHWXY8fthBeLtByWWiMIVifTMxss8UEY6xKipeuQV ROgg== 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 :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dkim-signature; bh=kZR8zX+ydWBbBu89eT3Dfy7pXd3GWbtA0n7Gp7hmhwM=; b=ECqBm7cED09P5bc54IYWShqlhMEXJjYvbTRuDNqCV6jU1b56AhDdO5YOpkbtpaRe0i PiVrTtSCVhqDIUwNHjW+UMZ49Ttc6IeljVLlDC++vdqbATYDlAMXbFE7T9jkvO+SWygr rNTKsBvc5ClJqJf2J05ZvLFx5R+uEuQO3/ShV0OnpmZbTwN6WSKUEFLPtJIADj6do8kw I6BbvuUoSiqTLsKWrbeSpFbLrRzbfD2BxdK03F82bC6PcRVG9pilkLQLiIMvV7ZWrXX3 qa1X89TeYFjs9yfHGQrdB9hCyJPZrY1ZCiLRImUkvCHULyxnDzGj8ZtGWZS9g83vwYtc aIQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OEvp8qa1; 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 l189si13956431oih.166.2020.01.17.05.38.06; Fri, 17 Jan 2020 05:38:19 -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=OEvp8qa1; 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 S1728977AbgAQNhG (ORCPT + 99 others); Fri, 17 Jan 2020 08:37:06 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:26793 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728773AbgAQNgv (ORCPT ); Fri, 17 Jan 2020 08:36:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579268209; 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=kZR8zX+ydWBbBu89eT3Dfy7pXd3GWbtA0n7Gp7hmhwM=; b=OEvp8qa17BiG1p8jGUe5VCdM8CFwX5uYS26do52rFG/p2wzEhzvKCOkoXZepTpMA+ajcN9 1nOWSG5/FKD8wuUejEV7y8O5uTopXYF7/udjagszBzpXMyV8UIiCVvtq59C7gtGgVihuZh mc42ijyYzlRd90mcnnWDIk4hGvEXW5I= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-345-s54h8a4bN8-pVmhMKktKfw-1; Fri, 17 Jan 2020 08:36:47 -0500 X-MC-Unique: s54h8a4bN8-pVmhMKktKfw-1 Received: by mail-lf1-f70.google.com with SMTP id x23so4370651lfc.5 for ; Fri, 17 Jan 2020 05:36:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=kZR8zX+ydWBbBu89eT3Dfy7pXd3GWbtA0n7Gp7hmhwM=; b=lBj3UVaTjojUw5ZDHc+4jmHcqy1fab4gKBu2k54ep8lBE6qe8JzNKR8yeoKNWe+5w7 4R5whuoUj+k+bTIvUyMi0EFgma6GAgquo0INHZMcxBAUNggp3p479c9l7KFz/6QBp6+Y 6IQ/7pkcy2pfOKT7UFVQlFPB5MeUTZtQd7pxsqRPIRXOMyCyb7uNR0DndpnAxuAoYJmk 3dF0TNELH2ab34oy9YZBKwLIAhLpWRCx7B8PGG20EHin/bwU9fxRAs72Y55EYQRvAcBP MdXqc5wzxFlI5R9QAK11+cnsB1PA286wd+Cri3GHYUPn0pynNX9k07k7qouVOmR41+i0 olsw== X-Gm-Message-State: APjAAAVpH0jsj4o2E9Pc3ICx61ogyUSe0Lg+pElrdleM9wMkht/DW2rM WF4tJgWZb19UbA+6iqzkvcwqdyy/HVxRXXItz0pN5RpT3cYLwUD/99+ku9qjsCoSQuvRU+npuzS jRRmMstKs4v0WyQWMdhUE+7za X-Received: by 2002:a2e:548:: with SMTP id 69mr5667566ljf.67.1579268206511; Fri, 17 Jan 2020 05:36:46 -0800 (PST) X-Received: by 2002:a2e:548:: with SMTP id 69mr5667551ljf.67.1579268206336; Fri, 17 Jan 2020 05:36:46 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id h14sm12058134lfc.2.2020.01.17.05.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2020 05:36:45 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 9A5EF1804D6; Fri, 17 Jan 2020 14:36:44 +0100 (CET) Subject: [PATCH bpf-next v4 07/10] perf: Use consistent include paths for libbpf From: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= To: Alexei Starovoitov Cc: 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 , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kselftest@vger.kernel.org, clang-built-linux@googlegroups.com Date: Fri, 17 Jan 2020 14:36:44 +0100 Message-ID: <157926820454.1555735.5332893006269327491.stgit@toke.dk> In-Reply-To: <157926819690.1555735.10756593211671752826.stgit@toke.dk> References: <157926819690.1555735.10756593211671752826.stgit@toke.dk> User-Agent: StGit/0.21 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Toke Høiland-Jørgensen Fix perf to include libbpf header files with the bpf/ prefix, to be consistent with external users of the library. Acked-by: Andrii Nakryiko Signed-off-by: Toke Høiland-Jørgensen --- tools/perf/examples/bpf/5sec.c | 2 +- tools/perf/examples/bpf/empty.c | 2 +- tools/perf/examples/bpf/sys_enter_openat.c | 2 +- tools/perf/include/bpf/pid_filter.h | 2 +- tools/perf/include/bpf/stdio.h | 2 +- tools/perf/include/bpf/unistd.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/perf/examples/bpf/5sec.c b/tools/perf/examples/bpf/5sec.c index b9c203219691..49f4f84da485 100644 --- a/tools/perf/examples/bpf/5sec.c +++ b/tools/perf/examples/bpf/5sec.c @@ -39,7 +39,7 @@ Copyright (C) 2018 Red Hat, Inc., Arnaldo Carvalho de Melo */ -#include +#include int probe(hrtimer_nanosleep, rqtp->tv_sec)(void *ctx, int err, long sec) { diff --git a/tools/perf/examples/bpf/empty.c b/tools/perf/examples/bpf/empty.c index 3776d26db9e7..7d7fb0c9fe76 100644 --- a/tools/perf/examples/bpf/empty.c +++ b/tools/perf/examples/bpf/empty.c @@ -1,3 +1,3 @@ -#include +#include license(GPL); diff --git a/tools/perf/examples/bpf/sys_enter_openat.c b/tools/perf/examples/bpf/sys_enter_openat.c index 9cd124b09392..c4481c390d23 100644 --- a/tools/perf/examples/bpf/sys_enter_openat.c +++ b/tools/perf/examples/bpf/sys_enter_openat.c @@ -14,7 +14,7 @@ * the return value. */ -#include +#include struct syscall_enter_openat_args { unsigned long long unused; diff --git a/tools/perf/include/bpf/pid_filter.h b/tools/perf/include/bpf/pid_filter.h index 6e61c4bdf548..607189a315b2 100644 --- a/tools/perf/include/bpf/pid_filter.h +++ b/tools/perf/include/bpf/pid_filter.h @@ -3,7 +3,7 @@ #ifndef _PERF_BPF_PID_FILTER_ #define _PERF_BPF_PID_FILTER_ -#include +#include #define pid_filter(name) pid_map(name, bool) diff --git a/tools/perf/include/bpf/stdio.h b/tools/perf/include/bpf/stdio.h index 316af5b2ff35..7ca6fa5463ee 100644 --- a/tools/perf/include/bpf/stdio.h +++ b/tools/perf/include/bpf/stdio.h @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 -#include +#include struct bpf_map SEC("maps") __bpf_stdout__ = { .type = BPF_MAP_TYPE_PERF_EVENT_ARRAY, diff --git a/tools/perf/include/bpf/unistd.h b/tools/perf/include/bpf/unistd.h index ca7877f9a976..d1a35b6c649d 100644 --- a/tools/perf/include/bpf/unistd.h +++ b/tools/perf/include/bpf/unistd.h @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LGPL-2.1 -#include +#include static int (*bpf_get_current_pid_tgid)(void) = (void *)BPF_FUNC_get_current_pid_tgid;