From: Mark Rutland <mark.rutland@arm.com>
To: Chris Mason <clm@meta.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
Alexei Starovoitov <alexei.starovoitov@gmail.com>,
Florent Revest <revest@chromium.org>, bpf <bpf@vger.kernel.org>,
Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Andrii Nakryiko <andrii@kernel.org>,
KP Singh <kpsingh@kernel.org>,
Brendan Jackman <jackmanb@google.com>,
markowsky@google.com, Masami Hiramatsu <mhiramat@kernel.org>,
Xu Kuohai <xukuohai@huawei.com>,
LKML <linux-kernel@vger.kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Christoph Hellwig <hch@infradead.org>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: [RFC 0/1] BPF tracing for arm64 using fprobe
Date: Fri, 18 Nov 2022 16:18:32 +0000 [thread overview]
Message-ID: <Y3ewWJITWH2b4ihI@FVFF77S0Q05N.cambridge.arm.com> (raw)
In-Reply-To: <d24cded7-87b1-89f5-fc2a-5346669f6d57@meta.com>
On Thu, Nov 17, 2022 at 04:55:12PM -0500, Chris Mason wrote:
> On 11/17/22 12:16 PM, Steven Rostedt wrote:
> > On Wed, 16 Nov 2022 18:41:26 -0800
> > Alexei Starovoitov <alexei.starovoitov@gmail.com> wrote:
> >
> > > Even with all optimization the performance overhead is not acceptable.
> > > It feels to me that folks are still thinking about bpf trampoline
> > > as a tracing facility.
> > > It's a lot more than that. It needs to run 24/7 with zero overhead.
> >
> > It obviously doesn't have zero overhead.
> >
> > And correctness and maintainability trumps micro-optimizations.
>
> During the bpf office hours today Mark Rutland and Florent had some
> great ideas about how to wire things up. I'm sure Mark will need some
> time to write it all down but it was a fun call.
I'd hoped to write that up today, but I haven't had enough time yet, so I'll
try to write up that proposal next week.
The rough idea was to *somehow* rejig the per-callsite ftrace_ops code I've
been working on to permit (but not require) the use of custom trampolines. As
mentioned during the call I want to ensure that this doesn't adversely affect
regular ftrace usage, and I'd also like to ensure that the regular ftrace code
is able to gain form those changes (without the need for trampolines). AFAICT,
that's likely to require some rework to the way direct functions are managed.
The WIP code for per-callsite ftrace_ops is at:
https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/log/?h=arm64/ftrace/per-callsite-ops
To be clear, my comments were purely about the *mechanism* we end up
implementing. I do have concerns w.r.t. overriding arbitrary parts of the
kernel.
Thanks,
Mark.
next prev parent reply other threads:[~2022-11-18 16:18 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-08 22:06 [RFC 0/1] BPF tracing for arm64 using fprobe Florent Revest
2022-11-08 22:06 ` [RFC 1/1] bpf: Invoke tracing progs using fprobe on archs without direct call Florent Revest
2022-11-17 2:41 ` [RFC 0/1] BPF tracing for arm64 using fprobe Alexei Starovoitov
2022-11-17 13:33 ` Masami Hiramatsu
2022-11-17 16:50 ` Alexei Starovoitov
2022-11-18 16:26 ` Mark Rutland
2022-11-17 17:16 ` Steven Rostedt
2022-11-17 21:55 ` Chris Mason
2022-11-17 22:40 ` Steven Rostedt
2022-11-18 16:34 ` Mark Rutland
2022-11-18 16:45 ` Steven Rostedt
2022-11-18 17:44 ` Chris Mason
2022-11-18 18:06 ` Steven Rostedt
2022-11-18 18:52 ` Chris Mason
2022-11-21 13:47 ` KP Singh
2022-11-21 14:16 ` Peter Zijlstra
2022-11-21 14:23 ` KP Singh
2022-11-21 15:15 ` Steven Rostedt
2022-11-21 15:29 ` KP Singh
2022-11-21 15:39 ` Steven Rostedt
2022-11-21 16:16 ` Jiri Kosina
2022-11-21 15:40 ` Alexei Starovoitov
2022-11-21 15:45 ` Steven Rostedt
2022-11-21 15:55 ` Borislav Petkov
2022-11-21 10:09 ` Peter Zijlstra
2022-11-21 14:40 ` Masami Hiramatsu
2022-11-18 16:18 ` Mark Rutland [this message]
2022-11-17 13:16 ` Masami Hiramatsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y3ewWJITWH2b4ihI@FVFF77S0Q05N.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=alexei.starovoitov@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=clm@meta.com \
--cc=daniel@iogearbox.net \
--cc=gregkh@linuxfoundation.org \
--cc=hch@infradead.org \
--cc=jackmanb@google.com \
--cc=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=markowsky@google.com \
--cc=mhiramat@kernel.org \
--cc=peterz@infradead.org \
--cc=revest@chromium.org \
--cc=rostedt@goodmis.org \
--cc=torvalds@linux-foundation.org \
--cc=xukuohai@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox