Skip to content

bpffs pretty print for cgroup local storage

Roman Gushchin lkml netdev 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesApplied
  2. v13 patches 5 repliesSuperseded

v2->v1 from the cover letter

- 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

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3bpf: pass struct btf pointer to the map_check_btf() callbackinclude/linux/bpf.h kernel/bpf/arraymap.c kernel/bpf/lpm_trie.c +1 more+7 -10 replies
2/3bpf: add bpffs pretty print for cgroup local storage mapsinclude/linux/btf.h kernel/bpf/btf.c kernel/bpf/local_storage.c+115 -11 reply
3/3selftests/bpf: add btf annotations for cgroup_local_storage mapstools/testing/selftests/bpf/netcnt_prog.c+6 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMartin KaFai Lau
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 bpf-next 0/3] bpffs pretty print for cgroup local storage

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(-)
Signature · 1 line
2.19.2