Skip to content

bpf: Enable bpf_sk_storage for FENTRY/FEXIT/RAW_TP

Martin KaFai Lau bpf netdev 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 9 repliesApplied 4/4
  2. v13 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- Rename some of the function prefix from sk_storage to bpf_sk_storage
- Use prefix check instead of substr check

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4bpf: Folding omem_charge() into sk_storage_charge()net/core/bpf_sk_storage.c+10 -131 replyApplied
2/4bpf: Rename some functions in bpf_sk_storagenet/core/bpf_sk_storage.c+19 -191 replyApplied
3/4bpf: Allow using bpf_sk_storage in FENTRY/FEXIT/RAW_TPinclude/net/bpf_sk_storage.h kernel/trace/bpf_trace.c net/core/bpf_sk_storage.c+81 -07 repliesApplied
4/4bpf: selftest: Use bpf_sk_storage in FENTRY/FEXIT/RAW_TPtools/testing/selftests/bpf/prog_tests/sk_storage_tracing.c tools/testing/selftests/bpf/progs/test_sk_storage_trace_itself.c tools/testing/selftests/bpf/progs/test_sk_storage_tracing.c+259 -00 repliesApplied

Reviews trailers per patch

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

PatchSong LiuKP Singh
1/4A-b A-b
2/4A-b
3/4A-b
4/4

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 v2 bpf-next 0/4] bpf: Enable bpf_sk_storage for FENTRY/FEXIT/RAW_TP

This set is to allow the FENTRY/FEXIT/RAW_TP tracing program to use bpf_sk_storage. The first two patches are a cleanup. The last patch is tests. Patch 3 has the required kernel changes to
enable bpf_sk_storage for FENTRY/FEXIT/RAW_TP.

Please see individual patch for details.

v2:
- Rename some of the function prefix from sk_storage to bpf_sk_storage
- Use prefix check instead of substr check

Martin KaFai Lau (4):
bpf: Folding omem_charge() into sk_storage_charge()
bpf: Rename some functions in bpf_sk_storage
bpf: Allow using bpf_sk_storage in FENTRY/FEXIT/RAW_TP
bpf: selftest: Use bpf_sk_storage in FENTRY/FEXIT/RAW_TP

 include/net/bpf_sk_storage.h                  |   2 +
 kernel/trace/bpf_trace.c                      |   5 +
 net/core/bpf_sk_storage.c                     | 135 +++++++++++++-----
 .../bpf/prog_tests/sk_storage_tracing.c       | 135 ++++++++++++++++++
 .../bpf/progs/test_sk_storage_trace_itself.c  |  29 ++++
 .../bpf/progs/test_sk_storage_tracing.c       |  95 ++++++++++++
 6 files changed, 369 insertions(+), 32 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/sk_storage_tracing.c
 create mode 100644 tools/testing/selftests/bpf/progs/test_sk_storage_trace_itself.c
 create mode 100644 tools/testing/selftests/bpf/progs/test_sk_storage_tracing.c
Signature · 1 line
2.24.1