bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/5] bpf: Misc improvements
@ 2021-02-06  6:57 Alexei Starovoitov
  2021-02-06  6:57 ` [PATCH bpf-next 1/5] bpf: Optimize program stats Alexei Starovoitov
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Alexei Starovoitov @ 2021-02-06  6:57 UTC (permalink / raw)
  To: davem; +Cc: daniel, bpf, kernel-team

From: Alexei Starovoitov <ast@kernel.org>

Several improvements
- optimize prog stats
- compute stats for sleepable progs
- prevent recursion fentry/fexit progs

Alexei Starovoitov (5):
  bpf: Optimize program stats
  bpf: Compute program stats for sleepable programs
  bpf: Add per-program recursion prevention mechanism
  selftest/bpf: Add recursion test
  bpf: Count the number of times recursion was prevented

 arch/x86/net/bpf_jit_comp.c                   | 46 +++++++++------
 include/linux/bpf.h                           | 16 ++---
 include/linux/filter.h                        | 12 +++-
 include/uapi/linux/bpf.h                      |  1 +
 kernel/bpf/core.c                             | 16 +++--
 kernel/bpf/syscall.c                          | 16 +++--
 kernel/bpf/trampoline.c                       | 59 ++++++++++++++++---
 kernel/bpf/verifier.c                         |  2 +-
 tools/bpf/bpftool/prog.c                      |  5 ++
 tools/include/uapi/linux/bpf.h                |  1 +
 .../selftests/bpf/prog_tests/fexit_stress.c   |  2 +-
 .../selftests/bpf/prog_tests/recursion.c      | 33 +++++++++++
 .../bpf/prog_tests/trampoline_count.c         |  4 +-
 tools/testing/selftests/bpf/progs/recursion.c | 46 +++++++++++++++
 14 files changed, 205 insertions(+), 54 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/recursion.c
 create mode 100644 tools/testing/selftests/bpf/progs/recursion.c

-- 
2.24.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-02-06  8:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-06  6:57 [PATCH bpf-next 0/5] bpf: Misc improvements Alexei Starovoitov
2021-02-06  6:57 ` [PATCH bpf-next 1/5] bpf: Optimize program stats Alexei Starovoitov
2021-02-06  6:57 ` [PATCH bpf-next 2/5] bpf: Compute program stats for sleepable programs Alexei Starovoitov
2021-02-06  6:57 ` [PATCH bpf-next 3/5] bpf: Add per-program recursion prevention mechanism Alexei Starovoitov
2021-02-06  6:57 ` [PATCH bpf-next 4/5] selftest/bpf: Add recursion test Alexei Starovoitov
2021-02-06  6:57 ` [PATCH bpf-next 5/5] bpf: Count the number of times recursion was prevented Alexei Starovoitov
2021-02-06  8:55   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).