selftest/bpf: Add test for var-offset stack access

Add a higher-level test (C BPF program) for the new functionality -
variable access stack reads and writes.

Signed-off-by: Andrei Matei <andreimatei1@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210207011027.676572-5-andreimatei1@gmail.com
This commit is contained in:
Andrei Matei 2021-02-06 20:10:27 -05:00 • committed by Alexei Starovoitov
commit 0fd7562af1
2 changed files with 86 additions and 0 deletions