Skip to content

bpf: implement syscall command BPF_MAP_GET_NEXT_KEY for stacktrace map

Yonghong Song netdev 2 versions Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- For invalid key (key pointer is non-NULL), sets next_key to be the first valid key.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2bpf: implement syscall command BPF_MAP_GET_NEXT_KEY for stacktrace mapkernel/bpf/stackmap.c+26 -20 replies
2/2tools/bpf: add a bpf selftest for stacktracetools/testing/selftests/bpf/Makefile tools/testing/selftests/bpf/test_progs.c tools/testing/selftests/bpf/test_stacktrace_map.c+190 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH bpf-next v2 0/2] bpf: implement syscall command BPF_MAP_GET_NEXT_KEY for stacktrace map

The patch set implements bpf syscall command BPF_MAP_GET_NEXT_KEY for stacktrace map. Patch #1 is the core implementation and Patch #2 implements a bpf test at tools/testing/selftests/bpf directory. Please see individual patch comments for details.

Changelog:
v1 -> v2:
- For invalid key (key pointer is non-NULL), sets next_key to be the first valid key.

Yonghong Song (2):
bpf: implement syscall command BPF_MAP_GET_NEXT_KEY for stacktrace map tools/bpf: add a bpf selftest for stacktrace

 kernel/bpf/stackmap.c                             |  28 ++++-
 tools/testing/selftests/bpf/Makefile              |   2 +-
 tools/testing/selftests/bpf/test_progs.c          | 127 ++++++++++++++++++++++
 tools/testing/selftests/bpf/test_stacktrace_map.c |  62 +++++++++++
 4 files changed, 216 insertions(+), 3 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/test_stacktrace_map.c
Signature · 1 line
2.9.5