forked from luck/tmp_suning_uos_patched
perf: Use consistent include paths for libbpf
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 <toke@redhat.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/157952560797.1683545.7685921032671386301.stgit@toke.dk
This commit is contained in:
parent
229c3b47b7
commit
521fe8bb58
|
@ -39,7 +39,7 @@
|
||||||
Copyright (C) 2018 Red Hat, Inc., Arnaldo Carvalho de Melo <acme@redhat.com>
|
Copyright (C) 2018 Red Hat, Inc., Arnaldo Carvalho de Melo <acme@redhat.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <bpf.h>
|
#include <bpf/bpf.h>
|
||||||
|
|
||||||
int probe(hrtimer_nanosleep, rqtp->tv_sec)(void *ctx, int err, long sec)
|
int probe(hrtimer_nanosleep, rqtp->tv_sec)(void *ctx, int err, long sec)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#include <bpf.h>
|
#include <bpf/bpf.h>
|
||||||
|
|
||||||
license(GPL);
|
license(GPL);
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* the return value.
|
* the return value.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <bpf.h>
|
#include <bpf/bpf.h>
|
||||||
|
|
||||||
struct syscall_enter_openat_args {
|
struct syscall_enter_openat_args {
|
||||||
unsigned long long unused;
|
unsigned long long unused;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#ifndef _PERF_BPF_PID_FILTER_
|
#ifndef _PERF_BPF_PID_FILTER_
|
||||||
#define _PERF_BPF_PID_FILTER_
|
#define _PERF_BPF_PID_FILTER_
|
||||||
|
|
||||||
#include <bpf.h>
|
#include <bpf/bpf.h>
|
||||||
|
|
||||||
#define pid_filter(name) pid_map(name, bool)
|
#define pid_filter(name) pid_map(name, bool)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// SPDX-License-Identifier: GPL-2.0
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
|
|
||||||
#include <bpf.h>
|
#include <bpf/bpf.h>
|
||||||
|
|
||||||
struct bpf_map SEC("maps") __bpf_stdout__ = {
|
struct bpf_map SEC("maps") __bpf_stdout__ = {
|
||||||
.type = BPF_MAP_TYPE_PERF_EVENT_ARRAY,
|
.type = BPF_MAP_TYPE_PERF_EVENT_ARRAY,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// SPDX-License-Identifier: LGPL-2.1
|
// SPDX-License-Identifier: LGPL-2.1
|
||||||
|
|
||||||
#include <bpf.h>
|
#include <bpf/bpf.h>
|
||||||
|
|
||||||
static int (*bpf_get_current_pid_tgid)(void) = (void *)BPF_FUNC_get_current_pid_tgid;
|
static int (*bpf_get_current_pid_tgid)(void) = (void *)BPF_FUNC_get_current_pid_tgid;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user