From: Roman Gushchin <guroan@gmail.com>
To: netdev@vger.kernel.org
Cc: kernel-team@fb.com, linux-kernel@vger.kernel.org,
Yonghong Song <yhs@fb.com>, Martin Lau <kafai@fb.com>,
Roman Gushchin <guro@fb.com>
Subject: [PATCH v2 bpf-next 0/3] bpffs pretty print for cgroup local storage
Date: Mon, 10 Dec 2018 15:42:59 -0800 [thread overview]
Message-ID: <20181210234302.31327-1-guro@fb.com> (raw)
This patchset implements bpffs pretty printing for cgroup local storage maps.
v2->v1:
- fixed size checks in cgroup_storage_check_btf(),
based on input from Yonghong and Martin
- implemented and used btf_type_is_reg_int(), suggested by Martin
Roman Gushchin (3):
bpf: pass struct btf pointer to the map_check_btf() callback
bpf: add bpffs pretty print for cgroup local storage maps
selftests/bpf: add btf annotations for cgroup_local_storage maps
include/linux/bpf.h | 3 +
include/linux/btf.h | 1 +
kernel/bpf/arraymap.c | 1 +
kernel/bpf/btf.c | 22 ++++++
kernel/bpf/local_storage.c | 93 ++++++++++++++++++++++-
kernel/bpf/lpm_trie.c | 1 +
kernel/bpf/syscall.c | 3 +-
tools/testing/selftests/bpf/netcnt_prog.c | 6 ++
8 files changed, 128 insertions(+), 2 deletions(-)
--
2.19.2
next reply other threads:[~2018-12-10 23:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-10 23:42 Roman Gushchin [this message]
2018-12-10 23:43 ` [PATCH v2 bpf-next 1/3] bpf: pass struct btf pointer to the map_check_btf() callback Roman Gushchin
2018-12-10 23:43 ` [PATCH v2 bpf-next 2/3] bpf: add bpffs pretty print for cgroup local storage maps Roman Gushchin
2018-12-11 17:16 ` Martin Lau
2018-12-10 23:43 ` [PATCH v2 bpf-next 3/3] selftests/bpf: add btf annotations for cgroup_local_storage maps Roman Gushchin
2018-12-11 17:18 ` Martin Lau
2018-12-12 9:56 ` [PATCH v2 bpf-next 0/3] bpffs pretty print for cgroup local storage Daniel Borkmann
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=20181210234302.31327-1-guro@fb.com \
--to=guroan@gmail.com \
--cc=guro@fb.com \
--cc=kafai@fb.com \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).