From: Matt Mullins <mmullins@fb.com>
To: <hall@fb.com>, <mmullins@fb.com>, <ast@kernel.org>,
<bpf@vger.kernel.org>, <netdev@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Martin KaFai Lau <kafai@fb.com>, Song Liu <songliubraving@fb.com>,
Yonghong Song <yhs@fb.com>
Subject: [PATCH bpf-next 0/3] writable contexts for bpf raw tracepoints
Date: Thu, 28 Mar 2019 17:07:55 -0700 [thread overview]
Message-ID: <20190329000758.494762-1-mmullins@fb.com> (raw)
This adds an opt-in interface for tracepoints to expose a writable context to
BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE programs that are attached, while
supporting read-only access from existing BPF_PROG_TYPE_RAW_TRACEPOINT
programs, as well as from non-BPF-based tracepoints.
The initial motivation is to support tracing that can be observed from the
remote end of an NBD socket, e.g. by adding flags to the struct nbd_request
header. Earlier attempts included adding an NBD-specific tracepoint fd, but in
code review, I was recommended to implement it more generically -- as a result,
this patchset is far simpler than my initial try.
Andrew Hall (1):
nbd: add tracepoints for send/receive timing
Matt Mullins (2):
bpf: add writable context for raw tracepoints
nbd: trace sending nbd requests
MAINTAINERS | 1 +
drivers/block/nbd.c | 13 +++
include/linux/bpf.h | 2 +
include/linux/bpf_types.h | 1 +
include/linux/tracepoint-defs.h | 1 +
include/trace/bpf_probe.h | 27 +++++-
include/trace/events/nbd.h | 148 ++++++++++++++++++++++++++++++++
include/uapi/linux/bpf.h | 1 +
kernel/bpf/syscall.c | 8 +-
kernel/bpf/verifier.c | 11 +++
kernel/trace/bpf_trace.c | 21 +++++
11 files changed, 230 insertions(+), 4 deletions(-)
create mode 100644 include/trace/events/nbd.h
--
2.17.1
next reply other threads:[~2019-03-29 0:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-29 0:07 Matt Mullins [this message]
2019-03-29 0:07 ` [PATCH bpf-next 1/3] bpf: add writable context for " Matt Mullins
2019-04-01 20:40 ` Daniel Borkmann
2019-04-03 18:39 ` Matt Mullins
2019-04-05 1:17 ` Alexei Starovoitov
2019-04-05 21:51 ` Matt Mullins
2019-03-29 0:07 ` [PATCH bpf-next 3/3] nbd: add tracepoints for send/receive timing Matt Mullins
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=20190329000758.494762-1-mmullins@fb.com \
--to=mmullins@fb.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=hall@fb.com \
--cc=kafai@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=songliubraving@fb.com \
--cc=yhs@fb.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
all inboxes | Powered by JetHome®