diff options
| author | Martin KaFai Lau <[email protected]> | 2022-09-01 17:29:37 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-09-02 20:34:32 -0700 |
| commit | f649f992deeeab020257b886e054cc407154cbfc (patch) | |
| tree | 7a922ac6e0db46244b5f47744066af73b75adc2a /tools/perf/scripts/python | |
| parent | 38566ec06f52250c4abaa7447aae676e0b881c46 (diff) | |
selftest/bpf: Add test for bpf_getsockopt()
This patch removes the __bpf_getsockopt() which directly
reads the sk by using PTR_TO_BTF_ID. Instead, the test now directly
uses the kernel bpf helper bpf_getsockopt() which supports all
the required optname now.
TCP_SAVE[D]_SYN and TCP_MAXSEG are not tested in a loop for all
the hooks and sock_ops's cb. TCP_SAVE[D]_SYN only works
in passive connection. TCP_MAXSEG only works when
it is setsockopt before the connection is established and
the getsockopt return value can only be tested after
the connection is established.
Signed-off-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions