Lines Matching +full:- +full:10
1 // SPDX-License-Identifier: GPL-2.0
23 return list_first_or_null_rcu(&knet->mux_list, in kcm_get_first()
29 struct kcm_net *knet = mux->knet; in kcm_get_next()
31 return list_next_or_null_rcu(&knet->mux_list, &mux->kcm_mux_list, in kcm_get_next()
41 list_for_each_entry_rcu(m, &knet->mux_list, kcm_mux_list) { in kcm_get_idx()
44 --pos; in kcm_get_idx()
69 return kcm_get_idx(seq, *pos - 1); in kcm_seq_start()
90 knet->count); in kcm_format_mux_header()
93 "%-14s %-10s %-16s %-10s %-16s %-8s %-8s %-8s %-8s %s", in kcm_format_mux_header()
95 "RX-Msgs", in kcm_format_mux_header()
96 "RX-Bytes", in kcm_format_mux_header()
97 "TX-Msgs", in kcm_format_mux_header()
98 "TX-Bytes", in kcm_format_mux_header()
99 "Recv-Q", in kcm_format_mux_header()
101 "Send-Q", in kcm_format_mux_header()
113 " kcm-%-7u %-10llu %-16llu %-10llu %-16llu %-8d %-8d %-8d %-8s ", in kcm_format_sock()
114 kcm->index, in kcm_format_sock()
115 kcm->stats.rx_msgs, in kcm_format_sock()
116 kcm->stats.rx_bytes, in kcm_format_sock()
117 kcm->stats.tx_msgs, in kcm_format_sock()
118 kcm->stats.tx_bytes, in kcm_format_sock()
119 kcm->sk.sk_receive_queue.qlen, in kcm_format_sock()
120 sk_rmem_alloc_get(&kcm->sk), in kcm_format_sock()
121 kcm->sk.sk_write_queue.qlen, in kcm_format_sock()
122 "-"); in kcm_format_sock()
124 if (kcm->tx_psock) in kcm_format_sock()
125 seq_printf(seq, "Psck-%u ", kcm->tx_psock->index); in kcm_format_sock()
127 if (kcm->tx_wait) in kcm_format_sock()
130 if (kcm->tx_wait_more) in kcm_format_sock()
133 if (kcm->rx_wait) in kcm_format_sock()
143 " psock-%-5u %-10llu %-16llu %-10llu %-16llu %-8d %-8d %-8d %-8d ", in kcm_format_psock()
144 psock->index, in kcm_format_psock()
145 psock->strp.stats.msgs, in kcm_format_psock()
146 psock->strp.stats.bytes, in kcm_format_psock()
147 psock->stats.tx_msgs, in kcm_format_psock()
148 psock->stats.tx_bytes, in kcm_format_psock()
149 psock->sk->sk_receive_queue.qlen, in kcm_format_psock()
150 atomic_read(&psock->sk->sk_rmem_alloc), in kcm_format_psock()
151 psock->sk->sk_write_queue.qlen, in kcm_format_psock()
152 refcount_read(&psock->sk->sk_wmem_alloc)); in kcm_format_psock()
154 if (psock->done) in kcm_format_psock()
157 if (psock->tx_stopped) in kcm_format_psock()
160 if (psock->strp.stopped) in kcm_format_psock()
163 if (psock->tx_kcm) in kcm_format_psock()
164 seq_printf(seq, "Rsvd-%d ", psock->tx_kcm->index); in kcm_format_psock()
166 if (!psock->strp.paused && !psock->ready_rx_msg) { in kcm_format_psock()
167 if (psock->sk->sk_receive_queue.qlen) { in kcm_format_psock()
168 if (psock->strp.need_bytes) in kcm_format_psock()
170 psock->strp.need_bytes); in kcm_format_psock()
175 if (psock->strp.paused) in kcm_format_psock()
178 if (psock->ready_rx_msg) in kcm_format_psock()
194 "%-6s%-8s %-10llu %-16llu %-10llu %-16llu %-8s %-8s %-8s %-8s ", in kcm_format_mux()
196 mux->stats.rx_msgs, in kcm_format_mux()
197 mux->stats.rx_bytes, in kcm_format_mux()
198 mux->stats.tx_msgs, in kcm_format_mux()
199 mux->stats.tx_bytes, in kcm_format_mux()
200 "-", "-", "-", "-"); in kcm_format_mux()
203 mux->kcm_socks_cnt, mux->psocks_cnt); in kcm_format_mux()
207 spin_lock_bh(&mux->lock); in kcm_format_mux()
208 list_for_each_entry(kcm, &mux->kcm_socks, kcm_sock_list) { in kcm_format_mux()
213 list_for_each_entry(psock, &mux->psocks, psock_list) { in kcm_format_mux()
217 spin_unlock_bh(&mux->lock); in kcm_format_mux()
224 mux_state = seq->private; in kcm_seq_show()
226 mux_state->idx = 0; in kcm_seq_show()
229 kcm_format_mux(v, mux_state->idx, seq); in kcm_seq_show()
230 mux_state->idx++; in kcm_seq_show()
249 struct net *net = seq->private; in kcm_stats_seq_show()
256 mutex_lock(&knet->mutex); in kcm_stats_seq_show()
258 aggregate_mux_stats(&knet->aggregate_mux_stats, &mux_stats); in kcm_stats_seq_show()
259 aggregate_psock_stats(&knet->aggregate_psock_stats, in kcm_stats_seq_show()
261 aggregate_strp_stats(&knet->aggregate_strp_stats, in kcm_stats_seq_show()
264 list_for_each_entry(mux, &knet->mux_list, kcm_mux_list) { in kcm_stats_seq_show()
265 spin_lock_bh(&mux->lock); in kcm_stats_seq_show()
266 aggregate_mux_stats(&mux->stats, &mux_stats); in kcm_stats_seq_show()
267 aggregate_psock_stats(&mux->aggregate_psock_stats, in kcm_stats_seq_show()
269 aggregate_strp_stats(&mux->aggregate_strp_stats, in kcm_stats_seq_show()
271 list_for_each_entry(psock, &mux->psocks, psock_list) { in kcm_stats_seq_show()
272 aggregate_psock_stats(&psock->stats, &psock_stats); in kcm_stats_seq_show()
273 save_strp_stats(&psock->strp, &strp_stats); in kcm_stats_seq_show()
276 spin_unlock_bh(&mux->lock); in kcm_stats_seq_show()
279 mutex_unlock(&knet->mutex); in kcm_stats_seq_show()
282 "%-8s %-10s %-16s %-10s %-16s %-10s %-10s %-10s %-10s %-10s\n", in kcm_stats_seq_show()
284 "RX-Msgs", in kcm_stats_seq_show()
285 "RX-Bytes", in kcm_stats_seq_show()
286 "TX-Msgs", in kcm_stats_seq_show()
287 "TX-Bytes", in kcm_stats_seq_show()
288 "TX-Retries", in kcm_stats_seq_show()
292 "RX-RdyDrops"); in kcm_stats_seq_show()
295 "%-8s %-10llu %-16llu %-10llu %-16llu %-10u %-10u %-10u %-10u %-10u\n", in kcm_stats_seq_show()
308 …"%-8s %-10s %-16s %-10s %-16s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s %-10s\n", in kcm_stats_seq_show()
310 "RX-Msgs", in kcm_stats_seq_show()
311 "RX-Bytes", in kcm_stats_seq_show()
312 "TX-Msgs", in kcm_stats_seq_show()
313 "TX-Bytes", in kcm_stats_seq_show()
316 "RX-Aborts", in kcm_stats_seq_show()
317 "RX-Intr", in kcm_stats_seq_show()
318 "RX-Unrecov", in kcm_stats_seq_show()
319 "RX-MemFail", in kcm_stats_seq_show()
320 "RX-NeedMor", in kcm_stats_seq_show()
321 "RX-BadLen", in kcm_stats_seq_show()
322 "RX-TooBig", in kcm_stats_seq_show()
323 "RX-Timeout", in kcm_stats_seq_show()
324 "TX-Aborts"); in kcm_stats_seq_show()
327 …"%-8s %-10llu %-16llu %-10llu %-16llu %-10llu %-10llu %-10u %-10u %-10u %-10u %-10u %-10u %-10u %-… in kcm_stats_seq_show()
350 if (!proc_create_net_single("kcm_stats", 0444, net->proc_net, in kcm_proc_init_net()
354 if (!proc_create_net("kcm", 0444, net->proc_net, &kcm_seq_ops, in kcm_proc_init_net()
361 remove_proc_entry("kcm_stats", net->proc_net); in kcm_proc_init_net()
363 return -ENOMEM; in kcm_proc_init_net()
368 remove_proc_entry("kcm", net->proc_net); in kcm_proc_exit_net()
369 remove_proc_entry("kcm_stats", net->proc_net); in kcm_proc_exit_net()