diff options
author | David Howells <dhowells@redhat.com> | 2018-07-23 12:18:36 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-08-01 08:28:23 -0400 |
commit | 6b97bd7a272cddc48adb384142db99a935834765 (patch) | |
tree | 32ce488f5361e39611641fd16d2898aba1798801 /net/rxrpc/proc.c | |
parent | 887763bbc34112f4126ec52d16072ba736c83a6f (diff) |
rxrpc: Show some more information through /proc files
Show the four current call IDs in /proc/net/rxrpc/conns.
Show the current packet Rx serial number in /proc/net/rxrpc/calls.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/proc.c')
-rw-r--r-- | net/rxrpc/proc.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/net/rxrpc/proc.c b/net/rxrpc/proc.c index bc6f27c8869d..163d05df339d 100644 --- a/net/rxrpc/proc.c +++ b/net/rxrpc/proc.c | |||
@@ -72,7 +72,7 @@ static int rxrpc_call_seq_show(struct seq_file *seq, void *v) | |||
72 | "Proto Local " | 72 | "Proto Local " |
73 | " Remote " | 73 | " Remote " |
74 | " SvID ConnID CallID End Use State Abort " | 74 | " SvID ConnID CallID End Use State Abort " |
75 | " UserID TxSeq TW RxSeq RW RxTimo\n"); | 75 | " UserID TxSeq TW RxSeq RW RxSerial RxTimo\n"); |
76 | return 0; | 76 | return 0; |
77 | } | 77 | } |
78 | 78 | ||
@@ -105,7 +105,7 @@ static int rxrpc_call_seq_show(struct seq_file *seq, void *v) | |||
105 | rx_hard_ack = READ_ONCE(call->rx_hard_ack); | 105 | rx_hard_ack = READ_ONCE(call->rx_hard_ack); |
106 | seq_printf(seq, | 106 | seq_printf(seq, |
107 | "UDP %-47.47s %-47.47s %4x %08x %08x %s %3u" | 107 | "UDP %-47.47s %-47.47s %4x %08x %08x %s %3u" |
108 | " %-8.8s %08x %lx %08x %02x %08x %02x %06lx\n", | 108 | " %-8.8s %08x %lx %08x %02x %08x %02x %08x %06lx\n", |
109 | lbuff, | 109 | lbuff, |
110 | rbuff, | 110 | rbuff, |
111 | call->service_id, | 111 | call->service_id, |
@@ -118,6 +118,7 @@ static int rxrpc_call_seq_show(struct seq_file *seq, void *v) | |||
118 | call->user_call_ID, | 118 | call->user_call_ID, |
119 | tx_hard_ack, READ_ONCE(call->tx_top) - tx_hard_ack, | 119 | tx_hard_ack, READ_ONCE(call->tx_top) - tx_hard_ack, |
120 | rx_hard_ack, READ_ONCE(call->rx_top) - rx_hard_ack, | 120 | rx_hard_ack, READ_ONCE(call->rx_top) - rx_hard_ack, |
121 | call->rx_serial, | ||
121 | timeout); | 122 | timeout); |
122 | 123 | ||
123 | return 0; | 124 | return 0; |
@@ -187,7 +188,7 @@ static int rxrpc_connection_seq_show(struct seq_file *seq, void *v) | |||
187 | print: | 188 | print: |
188 | seq_printf(seq, | 189 | seq_printf(seq, |
189 | "UDP %-47.47s %-47.47s %4x %08x %s %3u" | 190 | "UDP %-47.47s %-47.47s %4x %08x %s %3u" |
190 | " %s %08x %08x %08x\n", | 191 | " %s %08x %08x %08x %08x %08x %08x %08x\n", |
191 | lbuff, | 192 | lbuff, |
192 | rbuff, | 193 | rbuff, |
193 | conn->service_id, | 194 | conn->service_id, |
@@ -197,7 +198,11 @@ print: | |||
197 | rxrpc_conn_states[conn->state], | 198 | rxrpc_conn_states[conn->state], |
198 | key_serial(conn->params.key), | 199 | key_serial(conn->params.key), |
199 | atomic_read(&conn->serial), | 200 | atomic_read(&conn->serial), |
200 | conn->hi_serial); | 201 | conn->hi_serial, |
202 | conn->channels[0].call_id, | ||
203 | conn->channels[1].call_id, | ||
204 | conn->channels[2].call_id, | ||
205 | conn->channels[3].call_id); | ||
201 | 206 | ||
202 | return 0; | 207 | return 0; |
203 | } | 208 | } |