mbox series

[v2,bpf-next,0/4] bpf: Enable bpf_sk_storage for FENTRY/FEXIT/RAW_TP

Message ID 20201112211255.2585961-1-kafai@fb.com (mailing list archive)
Headers show
Series bpf: Enable bpf_sk_storage for FENTRY/FEXIT/RAW_TP | expand

Message

Martin KaFai Lau Nov. 12, 2020, 9:12 p.m. UTC
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

Comments

patchwork-bot+netdevbpf@kernel.org Nov. 13, 2020, 3 a.m. UTC | #1
Hello:

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

On Thu, 12 Nov 2020 13:12:55 -0800 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [v2,bpf-next,1/4] bpf: Folding omem_charge() into sk_storage_charge()
    https://git.kernel.org/bpf/bpf-next/c/9e838b02b0bb
  - [v2,bpf-next,2/4] bpf: Rename some functions in bpf_sk_storage
    https://git.kernel.org/bpf/bpf-next/c/e794bfddb8b8
  - [v2,bpf-next,3/4] bpf: Allow using bpf_sk_storage in FENTRY/FEXIT/RAW_TP
    https://git.kernel.org/bpf/bpf-next/c/8e4597c627fb
  - [v2,bpf-next,4/4] bpf: selftest: Use bpf_sk_storage in FENTRY/FEXIT/RAW_TP
    https://git.kernel.org/bpf/bpf-next/c/53632e111946

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html