Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6535233ybl; Wed, 15 Jan 2020 06:17:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyXXowdDaqPGn83knkZsCyCQnDu1YauU2N/ysLXUXtlm1P/RnzTpmlfWXWFnFFZ4UtjslNK X-Received: by 2002:aca:4809:: with SMTP id v9mr4855405oia.92.1579097858692; Wed, 15 Jan 2020 06:17:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579097858; cv=none; d=google.com; s=arc-20160816; b=tjP9tnGM7aBV/CRBAI0CsNyygyw5VqD8GgyPZGuXyrOXFUSl51AuGJM0AMOaGpNp3L FdJOYmftrf9hMCAnIoVNr9ShIzkTki0SJ2xPHM9lI9TvVhrDkBo7V2vsi1EK+QVAZf9l G5haEUVSJlIz/hDGwRFkl1Qjs+JiRZEcDeciNrMIY1j5MctbXqJDcBL3eNDfGRZovYjS xl5HAIKcz5YBh8kVdITm7r89gimlnH7Q3a3Vt1eg0KESZtP8Y9XMca9FgS9wry1xbTuo 4wr8BIN3I2dHOi9sW9SHaG48Tab47fuT5XReatDV1o+rexGYeMYiyc5x1lqPcnjJzBrw BEWQ== 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=L2f/3xqMCvPgjOWRi/4hBoG4txZFOAtpty8CahkBiCk=; b=ILe+K4nHTPuuMW85bSJlO2MUxZO7t98KeeT9zEOhKf31hPIgN/aKJtKeJm0i/IBt9M zRRtD6O4tzXRnjYa5nYZi/+AKMPds8Kz17Bk0vNr1Bh9n2KnaKEol++sMmEVym9m/oJL gHmOna/qoXTgm3SBrxY6w8BO/AAmc3XNwS1tisLs8TLnZQbRaLsTtFpaXdgpNx74eafL +YPExtHe3kIAuPWacEGZNFgGwanpTxp/askiwGjxKE9XQ9HYmj1Yjhui7zZa3VMxRPJ+ BCqzd9B5r3zWPIi9Gik6alEG2rBVgs//45QGpMqNXzPhLQYHWQRZxNSWdsw4ZWBsn4mw GCzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LCJ9rwZh; 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 n203si9071810oia.112.2020.01.15.06.17.26; Wed, 15 Jan 2020 06:17:38 -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=LCJ9rwZh; 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 S1729464AbgAOONC (ORCPT + 99 others); Wed, 15 Jan 2020 09:13:02 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:38607 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729396AbgAOONB (ORCPT ); Wed, 15 Jan 2020 09:13:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579097580; 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=L2f/3xqMCvPgjOWRi/4hBoG4txZFOAtpty8CahkBiCk=; b=LCJ9rwZhZBhUQyyEowGvJOOpCRbfCJHqwYj1Vkwd8h9l1DmnAe0TpDb0GQbwldJj/Mmvpk jOdqPSwENct28kra+Wn1mjRF3QQrj7t3LpdaRQo4LB3IRH8SsP3ZYCzNbs2Wm7xZmOfjLy 8PZLFPdIVlFIwf6n+z/UX3Uyuvxr5DE= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-424-9zG-7vKiPU2n9SXbPp96mA-1; Wed, 15 Jan 2020 09:12:59 -0500 X-MC-Unique: 9zG-7vKiPU2n9SXbPp96mA-1 Received: by mail-lj1-f200.google.com with SMTP id f15so4188917ljj.11 for ; Wed, 15 Jan 2020 06:12:58 -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=L2f/3xqMCvPgjOWRi/4hBoG4txZFOAtpty8CahkBiCk=; b=X7sEIisosRZ6fsaLg6qzW42QRZI5klbllOsE8M1mbtwXoyCZsmcQYbQUAJXGQPsOr1 +nVFi4RrO5OYHE7liRdMD3eCgbq7KkxEdQnU2QDT5zibJjKtJvQf3IvHOfOY43mIvgCZ bs0NrV5IwW8WFiaiUXtZwL99yoL2t6rBCyIpybd8LUwM75bJIOxO6GCX4aF2X8cVVhhx 1zHq4vSh+0sJk9A4gWJGFhzD3fhwGJWU7Q8rNxxXa9dCdycuYj4HqUAI0Idv1xsaSvEa +3C/cJfFkxpsIppd+AAHzMua0Vsg03K3BD/LCl/9q7Zyz8pUiY6r7DpargBtroRrfvTy IU0g== X-Gm-Message-State: APjAAAURfZvManFTUegVNidwF86xcszQniHguDEKz035UPH9kiy+NVhE TrmZwyMtnCVfezoJqegyeHApA5KtmewE7n0yxHp7VmhcC8J0R/fhMlRFxgQAAmxCthhNCLNn9G8 Xsl8TInnzysd1Wwj0SE8jF8if X-Received: by 2002:a2e:9587:: with SMTP id w7mr1910165ljh.42.1579097577656; Wed, 15 Jan 2020 06:12:57 -0800 (PST) X-Received: by 2002:a2e:9587:: with SMTP id w7mr1910116ljh.42.1579097577147; Wed, 15 Jan 2020 06:12:57 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id t9sm8960034lfl.51.2020.01.15.06.12.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2020 06:12:56 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 5F6421804D6; Wed, 15 Jan 2020 15:12:55 +0100 (CET) Subject: [PATCH bpf-next v2 06/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: Wed, 15 Jan 2020 15:12:55 +0100 Message-ID: <157909757530.1192265.16430056843174690136.stgit@toke.dk> In-Reply-To: <157909756858.1192265.6657542187065456112.stgit@toke.dk> References: <157909756858.1192265.6657542187065456112.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. 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;