mbox series

[v2,bpf-next,0/2] bpf: Fix fill_link_info and add selftest

Message ID 20230727114309.3739-1-laoar.shao@gmail.com (mailing list archive)
Headers show
Series bpf: Fix fill_link_info and add selftest | expand

Message

Yafang Shao July 27, 2023, 11:43 a.m. UTC
Patch #1: Fix an error in fill_link_info reported by Dan
Patch #2: Add selftest for #1

Yafang Shao (2):
  bpf: Fix uninitialized symbol in bpf_perf_link_fill_kprobe()
  selftests/bpf: Add selftest for fill_link_info

v1->v2:
  - Fix BPF CI failure due to the enabled ENDBDR

 kernel/bpf/syscall.c                               |  10 +-
 .../selftests/bpf/prog_tests/fill_link_info.c      | 238 +++++++++++++++++++++
 .../selftests/bpf/progs/test_fill_link_info.c      |  25 +++
 tools/testing/selftests/bpf/test_progs.h           |  19 ++
 4 files changed, 287 insertions(+), 5 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/fill_link_info.c
 create mode 100644 tools/testing/selftests/bpf/progs/test_fill_link_info.c