diff options
| author | Eduard Zingerman <eddyz87@gmail.com> | 2022-06-21 02:53:44 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2022-06-20 17:40:52 -0700 |
| commit | 0e1bf9ed2000c16fa8e0703e255a23d64a4adb27 (patch) | |
| tree | 08ba017f0e2d9b36b1ed98b1e324536be50e83a5 /kernel/bpf/core.c | |
| parent | f8acfdd04410d26b096a7082444cdc402df10f89 (diff) | |
| download | linux-0e1bf9ed2000c16fa8e0703e255a23d64a4adb27.tar.gz linux-0e1bf9ed2000c16fa8e0703e255a23d64a4adb27.tar.bz2 linux-0e1bf9ed2000c16fa8e0703e255a23d64a4adb27.zip | |
selftests/bpf: BPF test_prog selftests for bpf_loop inlining
Two new test BPF programs for test_prog selftests checking bpf_loop
behavior. Both are corner cases for bpf_loop inlinig transformation:
- check that bpf_loop behaves correctly when callback function is not
a compile time constant
- check that local function variables are not affected by allocating
additional stack storage for registers spilled by loop inlining
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/r/20220620235344.569325-6-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/core.c')
0 files changed, 0 insertions, 0 deletions
