| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_sock_fields.c | 48 struct bpf_tcp_sock listen_tp = {}; 50 struct bpf_tcp_sock cli_tp = {}; 51 struct bpf_tcp_sock srv_tp = {}; 88 static void tpcpy(struct bpf_tcp_sock *dst, in tpcpy() 89 const struct bpf_tcp_sock *src) in tpcpy() 129 struct bpf_tcp_sock *tp, *tp_ret; in egress_read_sock_fields() 169 tp = bpf_tcp_sock(sk); in egress_read_sock_fields() 223 struct bpf_tcp_sock *tp; in ingress_read_sock_fields() 247 tp = bpf_tcp_sock(sk); in ingress_read_sock_fields()
|
| H A D | verifier_sock.c | 479 : __imm(bpf_tcp_sock), in sk_no_skb_sk_check_2() 500 : __imm(bpf_tcp_sock), in no_null_check_on_ret_2() 502 __imm_const(bpf_tcp_sock_snd_cwnd, offsetof(struct bpf_tcp_sock, snd_cwnd)) in no_null_check_on_ret_2() 523 : __imm(bpf_tcp_sock), in skb_sk_tp_snd_cwnd_1() 525 __imm_const(bpf_tcp_sock_snd_cwnd, offsetof(struct bpf_tcp_sock, snd_cwnd)) in skb_sk_tp_snd_cwnd_1() 546 : __imm(bpf_tcp_sock), in skb_sk_tp_bytes_acked() 548 __imm_const(bpf_tcp_sock_bytes_acked, offsetof(struct bpf_tcp_sock, bytes_acked)) in skb_sk_tp_bytes_acked() 570 : __imm(bpf_tcp_sock), in skb_sk_beyond_last_field_2() 572 __imm_const(bpf_tcp_sock_bytes_acked__end, offsetofend(struct bpf_tcp_sock, bytes_acked)) in skb_sk_beyond_last_field_2() 598 __imm(bpf_tcp_sock), in skb_sk_tp_snd_cwnd_2() [all …]
|
| H A D | tcp_rtt.c | 29 struct bpf_tcp_sock *tcp_sk; in _sockops() 50 tcp_sk = bpf_tcp_sock(sk); in _sockops()
|
| H A D | verifier_ref_tracking.c | 1156 __imm(bpf_tcp_sock), in __flag() 1157 __imm_const(bpf_tcp_sock_snd_cwnd, offsetof(struct bpf_tcp_sock, snd_cwnd)), in __flag() 1223 __imm(bpf_tcp_sock), in __flag() 1253 __imm(bpf_tcp_sock), in __flag() 1349 __imm(bpf_tcp_sock), in and_bpf_tcp_sock_sk() 1350 __imm_const(bpf_tcp_sock_snd_cwnd, offsetof(struct bpf_tcp_sock, snd_cwnd)), in and_bpf_tcp_sock_sk()
|
| /linux/samples/bpf/ |
| H A D | tcp_dumpstats_kern.c | 28 struct bpf_tcp_sock *tcp_sk; in _sockops() 56 tcp_sk = bpf_tcp_sock(sk); in _sockops()
|
| H A D | hbm_kern.h | 85 struct bpf_tcp_sock *tp; in get_tcp_info() 92 tp = bpf_tcp_sock(sk); in get_tcp_info()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | sock_fields.c | 83 static void print_tp(const struct bpf_tcp_sock *tp, const char *prefix) in print_tp() 103 struct bpf_tcp_sock srv_tp, cli_tp, listen_tp; in check_result()
|
| /linux/net/core/ |
| H A D | filter.c | 7305 if (off < 0 || off >= offsetofend(struct bpf_tcp_sock, in bpf_tcp_sock_is_valid_access() 7313 case offsetof(struct bpf_tcp_sock, bytes_received): in bpf_tcp_sock_is_valid_access() 7314 case offsetof(struct bpf_tcp_sock, bytes_acked): in bpf_tcp_sock_is_valid_access() 7331 sizeof_field(struct bpf_tcp_sock, FIELD)); \ in bpf_tcp_sock_convert_ctx_access() 7341 sizeof_field(struct bpf_tcp_sock, FIELD)); \ in bpf_tcp_sock_convert_ctx_access() 7351 BTF_TYPE_EMIT(struct bpf_tcp_sock); in bpf_tcp_sock_convert_ctx_access() 7354 case offsetof(struct bpf_tcp_sock, rtt_min): in bpf_tcp_sock_convert_ctx_access() 7364 case offsetof(struct bpf_tcp_sock, snd_cwnd): in bpf_tcp_sock_convert_ctx_access() 7367 case offsetof(struct bpf_tcp_sock, srtt_us): in bpf_tcp_sock_convert_ctx_access() 7370 case offsetof(struct bpf_tcp_sock, snd_ssthresh): in bpf_tcp_sock_convert_ctx_access() [all …]
|
| /linux/include/uapi/linux/ |
| H A D | bpf.h | 3986 * struct bpf_tcp_sock *bpf_tcp_sock(struct bpf_sock *sk) 3988 * This helper gets a **struct bpf_tcp_sock** pointer from a 3991 * A **struct bpf_tcp_sock** pointer on success, or **NULL** in 4020 * **bpf_sk_fullsock**\ () or **bpf_tcp_sock**\ () to access the 6462 struct bpf_tcp_sock { 6432 struct bpf_tcp_sock { global() struct 6433 snd_cwndbpf_tcp_sock global() argument 6434 srtt_usbpf_tcp_sock global() argument 6435 rtt_minbpf_tcp_sock global() argument 6436 snd_ssthreshbpf_tcp_sock global() argument 6437 rcv_nxtbpf_tcp_sock global() argument 6438 snd_nxtbpf_tcp_sock global() argument 6439 snd_unabpf_tcp_sock global() argument 6440 mss_cachebpf_tcp_sock global() argument 6441 ecn_flagsbpf_tcp_sock global() argument 6442 rate_deliveredbpf_tcp_sock global() argument 6443 rate_interval_usbpf_tcp_sock global() argument 6444 packets_outbpf_tcp_sock global() argument 6445 retrans_outbpf_tcp_sock global() argument 6446 total_retransbpf_tcp_sock global() argument 6447 segs_inbpf_tcp_sock global() argument 6450 data_segs_inbpf_tcp_sock global() argument 6453 segs_outbpf_tcp_sock global() argument 6456 data_segs_outbpf_tcp_sock global() argument 6459 lost_outbpf_tcp_sock global() argument 6460 sacked_outbpf_tcp_sock global() argument 6461 bytes_receivedbpf_tcp_sock global() argument 6465 bytes_ackedbpf_tcp_sock global() argument 6469 dsack_dupsbpf_tcp_sock global() argument 6472 deliveredbpf_tcp_sock global() argument 6473 delivered_cebpf_tcp_sock global() argument 6474 icsk_retransmitsbpf_tcp_sock global() argument
|
| /linux/tools/include/uapi/linux/ |
| H A D | bpf.h | 3986 * struct bpf_tcp_sock *bpf_tcp_sock(struct bpf_sock *sk) 3988 * This helper gets a **struct bpf_tcp_sock** pointer from a 3991 * A **struct bpf_tcp_sock** pointer on success, or **NULL** in 4020 * **bpf_sk_fullsock**\ () or **bpf_tcp_sock**\ () to access the 6462 struct bpf_tcp_sock { 6432 struct bpf_tcp_sock { global() struct 6433 snd_cwndbpf_tcp_sock global() argument 6434 srtt_usbpf_tcp_sock global() argument 6435 rtt_minbpf_tcp_sock global() argument 6436 snd_ssthreshbpf_tcp_sock global() argument 6437 rcv_nxtbpf_tcp_sock global() argument 6438 snd_nxtbpf_tcp_sock global() argument 6439 snd_unabpf_tcp_sock global() argument 6440 mss_cachebpf_tcp_sock global() argument 6441 ecn_flagsbpf_tcp_sock global() argument 6442 rate_deliveredbpf_tcp_sock global() argument 6443 rate_interval_usbpf_tcp_sock global() argument 6444 packets_outbpf_tcp_sock global() argument 6445 retrans_outbpf_tcp_sock global() argument 6446 total_retransbpf_tcp_sock global() argument 6447 segs_inbpf_tcp_sock global() argument 6450 data_segs_inbpf_tcp_sock global() argument 6453 segs_outbpf_tcp_sock global() argument 6456 data_segs_outbpf_tcp_sock global() argument 6459 lost_outbpf_tcp_sock global() argument 6460 sacked_outbpf_tcp_sock global() argument 6461 bytes_receivedbpf_tcp_sock global() argument 6465 bytes_ackedbpf_tcp_sock global() argument 6469 dsack_dupsbpf_tcp_sock global() argument 6472 deliveredbpf_tcp_sock global() argument 6473 delivered_cebpf_tcp_sock global() argument 6474 icsk_retransmitsbpf_tcp_sock global() argument
|