Skip to content

Introduce BTF ID

Martin KaFai Lau netdev 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 7 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6bpf: btf: Avoid WARN_ON when CONFIG_REFCOUNT_FULL=ykernel/bpf/btf.c+1 -11 reply
2/6bpf: btf: Introduce BTF IDinclude/linux/btf.h include/uapi/linux/bpf.h kernel/bpf/btf.c +1 more+128 -111 reply
3/6bpf: btf: Add struct bpf_btf_infoinclude/uapi/linux/bpf.h kernel/bpf/btf.c kernel/bpf/syscall.c+43 -61 reply
4/6bpf: btf: Some test_btf clean uptools/testing/selftests/bpf/test_btf.c+99 -1021 reply
5/6bpf: btf: Update tools/include/uapi/linux/btf.h with BTF IDtools/include/uapi/linux/bpf.h+11 -01 reply
6/6bpf: btf: Tests for BPF_OBJ_GET_INFO_BY_FD and BPF_BTF_GET_FD_BY_IDtools/lib/bpf/bpf.c tools/lib/bpf/bpf.h tools/testing/selftests/bpf/test_btf.c+287 -131 reply

Reviews trailers per patch

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

PatchAlexei StarovoitovYonghong SongSong Liu
1/6T-b A-b
2/6A-b A-b
3/6A-b A-b
4/6A-b A-b
5/6A-b A-b
6/6A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH bpf-next 0/6] Introduce BTF ID

This series introduces BTF ID which is exposed through the new BPF_BTF_GET_FD_BY_ID cmd, new "struct bpf_btf_info" and new members in the "struct bpf_map_info".

Please see individual patch for details.

Martin KaFai Lau (6):
bpf: btf: Avoid WARN_ON when CONFIG_REFCOUNT_FULL=y
bpf: btf: Introduce BTF ID
bpf: btf: Add struct bpf_btf_info
bpf: btf: Some test_btf clean up
bpf: btf: Update tools/include/uapi/linux/btf.h with BTF ID
bpf: btf: Tests for BPF_OBJ_GET_INFO_BY_FD and BPF_BTF_GET_FD_BY_ID

 include/linux/btf.h                    |   2 +
 include/uapi/linux/bpf.h               |  11 +
 kernel/bpf/btf.c                       | 136 ++++++++--
 kernel/bpf/syscall.c                   |  41 ++-
 tools/include/uapi/linux/bpf.h         |  11 +
 tools/lib/bpf/bpf.c                    |  10 +
 tools/lib/bpf/bpf.h                    |   1 +
 tools/testing/selftests/bpf/test_btf.c | 478 +++++++++++++++++++++++++--------
 8 files changed, 563 insertions(+), 127 deletions(-)
Signature · 1 line
2.9.5