proc.c (295ff7edb8f72b77d524759266f7524deae379b3) proc.c (20380731bc2897f2952ae055420972ded4cd786e)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * This file implements the various access functions for the
7 * PROC file system. It is mainly used for debugging and
8 * statistics.

--- 45 unchanged lines hidden (view full) ---

54 return res;
55}
56
57/*
58 * Report socket allocation statistics [mea@utu.fi]
59 */
60static int sockstat_seq_show(struct seq_file *seq, void *v)
61{
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * This file implements the various access functions for the
7 * PROC file system. It is mainly used for debugging and
8 * statistics.

--- 45 unchanged lines hidden (view full) ---

54 return res;
55}
56
57/*
58 * Report socket allocation statistics [mea@utu.fi]
59 */
60static int sockstat_seq_show(struct seq_file *seq, void *v)
61{
62 /* From net/socket.c */
63 extern void socket_seq_show(struct seq_file *seq);
64
65 socket_seq_show(seq);
66 seq_printf(seq, "TCP: inuse %d orphan %d tw %d alloc %d mem %d\n",
67 fold_prot_inuse(&tcp_prot), atomic_read(&tcp_orphan_count),
68 tcp_death_row.tw_count, atomic_read(&tcp_sockets_allocated),
69 atomic_read(&tcp_memory_allocated));
70 seq_printf(seq, "UDP: inuse %d\n", fold_prot_inuse(&udp_prot));
71 seq_printf(seq, "RAW: inuse %d\n", fold_prot_inuse(&raw_prot));
72 seq_printf(seq, "FRAG: inuse %d memory %d\n", ip_frag_nqueues,

--- 310 unchanged lines hidden ---
62 socket_seq_show(seq);
63 seq_printf(seq, "TCP: inuse %d orphan %d tw %d alloc %d mem %d\n",
64 fold_prot_inuse(&tcp_prot), atomic_read(&tcp_orphan_count),
65 tcp_death_row.tw_count, atomic_read(&tcp_sockets_allocated),
66 atomic_read(&tcp_memory_allocated));
67 seq_printf(seq, "UDP: inuse %d\n", fold_prot_inuse(&udp_prot));
68 seq_printf(seq, "RAW: inuse %d\n", fold_prot_inuse(&raw_prot));
69 seq_printf(seq, "FRAG: inuse %d memory %d\n", ip_frag_nqueues,

--- 310 unchanged lines hidden ---