Skip to content

Misc improvements on bpf_func_info

Martin KaFai Lau netdev 1 version Applied

Status from this message: Applied, Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4bpf: Improve the info.func_info and info.func_info_rec_size behaviorkernel/bpf/core.c kernel/bpf/syscall.c+21 -270 replies
2/4bpf: Change insn_offset to insn_off in bpf_func_infoinclude/uapi/linux/bpf.h kernel/bpf/verifier.c+10 -100 replies
3/4bpf: tools: Sync uapi bpf.h for the name changes in bpf_func_infotools/include/uapi/linux/bpf.h+1 -10 replies
4/4bpf: Expect !info.func_info and insn_off name changes in test_btf/libbpf/bpftooltools/bpf/bpftool/prog.c tools/bpf/bpftool/xlated_dumper.c tools/lib/bpf/btf.c +1 more+22 -90 replies

Reviews trailers per patch

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

PatchYonghong Song
1/4A-b
2/4A-b
3/4A-b
4/4A-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 bpf-next 0/4] Misc improvements on bpf_func_info

The patchset has a few improvements on bpf_func_info:
1. Improvements on the behaviors of info.func_info, info.func_info_cnt and info.func_info_rec_size.
2. Name change: s/insn_offset/insn_off/

Please see individual patch for details.

Martin KaFai Lau (4):
bpf: Improve the info.func_info and info.func_info_rec_size behavior
bpf: Change insn_offset to insn_off in bpf_func_info
bpf: tools: Sync uapi bpf.h for the name changes in bpf_func_info
bpf: Expect !info.func_info and insn_off name changes in
test_btf/libbpf/bpftool

 include/uapi/linux/bpf.h               |  2 +-
 kernel/bpf/core.c                      |  2 +-
 kernel/bpf/syscall.c                   | 46 +++++++++++---------------
 kernel/bpf/verifier.c                  | 18 +++++-----
 tools/bpf/bpftool/prog.c               |  7 ++++
 tools/bpf/bpftool/xlated_dumper.c      |  4 +--
 tools/include/uapi/linux/bpf.h         |  2 +-
 tools/lib/bpf/btf.c                    | 12 +++----
 tools/testing/selftests/bpf/test_btf.c |  8 ++++-
 9 files changed, 54 insertions(+), 47 deletions(-)
Signature · 1 line
2.17.1