Skip to content

bpf: Extend bpf_{prog,map}_info

Martin KaFai Lau netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bpf: Add name, load_time, uid and map_ids to bpf_prog_infoinclude/linux/bpf.h include/uapi/linux/bpf.h kernel/bpf/syscall.c+60 -10 replies
2/5bpf: Add map_name to bpf_map_infoinclude/linux/bpf.h include/uapi/linux/bpf.h kernel/bpf/syscall.c+9 -13 replies
3/5bpf: libbpf: Provide basic API support to specify BPF obj namesamples/bpf/bpf_load.c samples/bpf/map_perf_test_user.c tools/include/uapi/linux/bpf.h +4 more+157 -470 replies
4/5bpf: Swap the order of checking prog_info and map_infotools/testing/selftests/bpf/test_progs.c+30 -280 replies
5/5bpf: Test new fields in bpf_attr and bpf_{prog,map}_infotools/testing/selftests/bpf/test_progs.c+132 -110 replies

Reviews trailers per patch

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

PatchAlexei StarovoitovDaniel Borkmann
1/5A-b A-b
2/5A-b A-b
3/5A-b A-b
4/5A-b A-b
5/5A-b A-b

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

Read the v1 thread

Cover letter [PATCH net-next 0/5] bpf: Extend bpf_{prog,map}_info

This patch series adds more fields to bpf_prog_info and bpf_map_info. Please see individual patch for details.

Martin KaFai Lau (5):
bpf: Add name, load_time, uid and map_ids to bpf_prog_info
bpf: Add map_name to bpf_map_info
bpf: libbpf: Provide basic API support to specify BPF obj name
bpf: Swap the order of checking prog_info and map_info
bpf: Test new fields in bpf_attr and bpf_{prog,map}_info

 include/linux/bpf.h                         |   3 +
 include/uapi/linux/bpf.h                    |  10 ++
 kernel/bpf/syscall.c                        |  58 ++++++++-
 samples/bpf/bpf_load.c                      |   2 +
 samples/bpf/map_perf_test_user.c            |   1 +
 tools/include/uapi/linux/bpf.h              |  10 ++
 tools/lib/bpf/bpf.c                         |  57 ++++++--
 tools/lib/bpf/bpf.h                         |  23 +++-
 tools/lib/bpf/libbpf.c                      | 109 ++++++++++++----
 tools/testing/selftests/bpf/test_progs.c    | 195 +++++++++++++++++++++++-----
 tools/testing/selftests/bpf/test_verifier.c |   2 +-
 11 files changed, 385 insertions(+), 85 deletions(-)
Signature · 1 line
2.9.5