Skip to content

BTF uapi cleanup

Martin KaFai Lau netdev 2 versions – Applied

Status from this message: Applied to bpf-next, thanks Martin!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 1 replyApplied
  2. v17 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Remove NR_SECS from patch 2
- Remove "unsigned" check on array->index_type from patch 3
- Remove BTF_INT_VARARGS and further limit BTF_INT_ENCODING from 8 bits to 4 bits in patch 4
- Adjustments in test_btf.c to reflect changes in v2

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7bpf: Expose check_uarg_tail_zero()include/linux/bpf.h kernel/bpf/syscall.c+9 -70 replies
2/7bpf: btf: Change how section is supported in btf_headerinclude/uapi/linux/btf.h kernel/bpf/btf.c+160 -570 replies
3/7bpf: btf: Check array->index_typekernel/bpf/btf.c+56 -240 replies
4/7bpf: btf: Remove unused bits from uapi/linux/btf.hinclude/uapi/linux/btf.h kernel/bpf/btf.c+44 -370 replies
5/7bpf: btf: Rename btf_key_id and btf_value_id in bpf_map_infoinclude/linux/bpf.h include/uapi/linux/bpf.h kernel/bpf/arraymap.c +1 more+16 -160 replies
6/7bpf: btf: Sync bpf.h and btf.h to toolstools/include/uapi/linux/bpf.h tools/include/uapi/linux/btf.h+15 -300 replies
7/7bpf: btf: Add tests for the btf uapi changestools/lib/bpf/bpf.c tools/lib/bpf/bpf.h tools/lib/bpf/btf.c +3 more+456 -1160 replies

Reviews trailers per patch

4 of 7 patches have a Reviewed-by or Acked-by.

PatchYonghong Song
1/7A-b
2/7
3/7
4/7A-b
5/7A-b
6/7A-b
7/7

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 bpf-next v2 0/7] BTF uapi cleanup

This patch set makes some changes to cleanup the unused bits in BTF uapi. It also makes the btf_header extensible.

Please see individual patches for details.

v2:
- Remove NR_SECS from patch 2
- Remove "unsigned" check on array->index_type from patch 3
- Remove BTF_INT_VARARGS and further limit BTF_INT_ENCODING from 8 bits to 4 bits in patch 4
- Adjustments in test_btf.c to reflect changes in v2

Martin KaFai Lau (7):
bpf: Expose check_uarg_tail_zero()
bpf: btf: Change how section is supported in btf_header
bpf: btf: Check array->index_type
bpf: btf: Remove unused bits from uapi/linux/btf.h
bpf: btf: Rename btf_key_id and btf_value_id in bpf_map_info
bpf: btf: Sync bpf.h and btf.h to tools
bpf: btf: Add tests for the btf uapi changes

 include/linux/bpf.h                    |   6 +-
 include/uapi/linux/bpf.h               |   8 +-
 include/uapi/linux/btf.h               |  37 +--
 kernel/bpf/arraymap.c                  |   2 +-
 kernel/bpf/btf.c                       | 335 +++++++++++++++------
 kernel/bpf/syscall.c                   |  32 +-
 tools/include/uapi/linux/bpf.h         |   8 +-
 tools/include/uapi/linux/btf.h         |  37 +--
 tools/lib/bpf/bpf.c                    |   4 +-
 tools/lib/bpf/bpf.h                    |   4 +-
 tools/lib/bpf/btf.c                    |   5 +-
 tools/lib/bpf/libbpf.c                 |  34 +--
 tools/lib/bpf/libbpf.h                 |   4 +-
 tools/testing/selftests/bpf/test_btf.c | 521 +++++++++++++++++++++++++++------
 14 files changed, 753 insertions(+), 284 deletions(-)
Signature · 1 line
2.9.5