diff options
| author | YiFei Zhu <zhuyifei@google.com> | 2021-12-16 02:04:28 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2022-01-19 12:51:30 -0800 |
| commit | b8bff6f890513e0ae0f711e481b368c1d133c558 (patch) | |
| tree | 24a23960153e626bd6d19214b1a52794befde5a8 /tools/perf/scripts/python | |
| parent | bpf: Add cgroup helpers bpf_{get,set}_retval to get/set syscall return value (diff) | |
| download | linux-b8bff6f890513e0ae0f711e481b368c1d133c558.tar.gz linux-b8bff6f890513e0ae0f711e481b368c1d133c558.zip | |
selftests/bpf: Test bpf_{get,set}_retval behavior with cgroup/sockopt
The tests checks how different ways of interacting with the helpers
(getting retval, setting EUNATCH, EISCONN, and legacy reject
returning 0 without setting retval), produce different results in
both the setsockopt syscall and the retval returned by the helper.
A few more tests verify the interaction between the retval of the
helper and the retval in getsockopt context.
Signed-off-by: YiFei Zhu <zhuyifei@google.com>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/43ec60d679ae3f4f6fd2460559c28b63cb93cd12.1639619851.git.zhuyifei@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
