forked from Minki/linux
d6d4f60c3a
Added a selftest for tcpbpf (sock_ops) that checks that the appropriate callbacks occured and that it can access tcp_sock fields and that their values are correct. Run with command: ./test_tcpbpf_user Adding the flag "-d" will show why it did not pass. Signed-off-by: Lawrence Brakmo <brakmo@fb.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
17 lines
291 B
C
17 lines
291 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#ifndef _TEST_TCPBPF_H
|
|
#define _TEST_TCPBPF_H
|
|
|
|
struct tcpbpf_globals {
|
|
__u32 event_map;
|
|
__u32 total_retrans;
|
|
__u32 data_segs_in;
|
|
__u32 data_segs_out;
|
|
__u32 bad_cb_test_rv;
|
|
__u32 good_cb_test_rv;
|
|
__u64 bytes_received;
|
|
__u64 bytes_acked;
|
|
};
|
|
#endif
|