[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191209000114.1876138-1-ast@kernel.org>
Date: Sun, 8 Dec 2019 16:01:11 -0800
From: Alexei Starovoitov <ast@...nel.org>
To: <davem@...emloft.net>
CC: <daniel@...earbox.net>, <rostedt@...dmis.org>, <x86@...nel.org>,
<netdev@...r.kernel.org>, <bpf@...r.kernel.org>,
<kernel-team@...com>
Subject: [PATCH bpf 0/3] bpf: Make BPF trampoline friendly to ftrace
Patch 1 - fix crash function_graph tracer encounters BPF trampoline
Patch 2 - use register_ftrace_direct() API to attach BPF trampoline
Patch 3 - simple test
Alexei Starovoitov (3):
ftrace: Fix function_graph tracer interaction with BPF trampoline
bpf: Make BPF trampoline use register_ftrace_direct() API
selftests/bpf: test function_graph tracer and bpf trampoline together
arch/x86/kernel/ftrace.c | 14 -----
include/linux/bpf.h | 1 +
include/linux/ftrace.h | 5 ++
kernel/bpf/trampoline.c | 64 ++++++++++++++++++++--
kernel/trace/fgraph.c | 9 +++
kernel/trace/ftrace.c | 19 +++----
tools/testing/selftests/bpf/test_ftrace.sh | 39 +++++++++++++
7 files changed, 119 insertions(+), 32 deletions(-)
create mode 100755 tools/testing/selftests/bpf/test_ftrace.sh
--
2.23.0
Powered by blists - more mailing lists