BPF refactor and add bpf_prog05
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 0 repliesNew
- v25 patches 0 repliesSuperseded
- v12 patches 0 repliesSuperseded
Changes in v3 from the cover letter
* constify and add attributes
* replace insn builder with BPF_MAP_ARRAY_STX macro to insert multiple instructions.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | lapi/bpf: Add /= and %=include/ | +2 | 0 replies | |
| 2/4 | bpf: Add map_array helper functions/macro and constifytestcases/ testcases/ testcases/ +3 more | +112 | 1 reply | |
| 3/4 | bpf: Add helper to run socket programstestcases/ testcases/ testcases/ +2 more | +19 | 0 replies | |
| 4/4 | bpf: Check truncation on 32bit div/mod by zeroruntest/ runtest/ testcases/ +1 more | +180 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [LTP] [PATCH v3 0/4] BPF refactor and add bpf_prog05
Hello,
V3:
* constify and add attributes
* replace insn builder with BPF_MAP_ARRAY_STX macro to insert multiple instructions.
V2:
* Added a number of helper functions to bpf_common and used them on all tests.
* Added some instruction concatenation helpers, but only used these on bpf_prog05 as they don't seem to make the other tests better to read.
* Further shorten bpf_prog05 by using a generic expect function
Richard Palethorpe (4):
lapi/bpf: Add /= and %=
bpf: Add map_array helper functions/macro and constify
bpf: Add helper to run socket programs
bpf: Check truncation on 32bit div/mod by zero
include/lapi/bpf.h | 2 + runtest/cve | 1 + runtest/syscalls | 1 + testcases/kernel/syscalls/bpf/.gitignore | 1 + testcases/kernel/syscalls/bpf/bpf_common.c | 64 ++++++-- testcases/kernel/syscalls/bpf/bpf_common.h | 53 +++++- testcases/kernel/syscalls/bpf/bpf_prog01.c | 32 +--- testcases/kernel/syscalls/bpf/bpf_prog02.c | 54 ++----- testcases/kernel/syscalls/bpf/bpf_prog03.c | 32 +--- testcases/kernel/syscalls/bpf/bpf_prog04.c | 17 +- testcases/kernel/syscalls/bpf/bpf_prog05.c | 177 +++++++++++++++++++++ 11 files changed, 308 insertions(+), 126 deletions(-) create mode 100644 testcases/kernel/syscalls/bpf/bpf_prog05.c
Signature · 1 line
2.31.1