37 : statistics::
Group(parent,
"EtherDevice"),
38 ADD_STAT(postedInterrupts, statistics::units::Count::get(),
39 "Number of posts to CPU"),
40 ADD_STAT(txBytes, statistics::units::Byte::get(),
42 ADD_STAT(rxBytes, statistics::units::Byte::get(),
"Bytes Received"),
43 ADD_STAT(txPackets, statistics::units::Count::get(),
44 "Number of Packets Transmitted"),
45 ADD_STAT(rxPackets, statistics::units::Count::get(),
46 "Number of Packets Received"),
47 ADD_STAT(txBandwidth, statistics::units::Rate<
48 statistics::units::Bit, statistics::units::Second>::get(),
51 ADD_STAT(rxBandwidth, statistics::units::Rate<
52 statistics::units::Bit, statistics::units::Second>::get(),
55 ADD_STAT(txIpChecksums, statistics::units::Count::get(),
56 "Number of tx IP Checksums done by device"),
57 ADD_STAT(rxIpChecksums, statistics::units::Count::get(),
58 "Number of rx IP Checksums done by device"),
59 ADD_STAT(txTcpChecksums, statistics::units::Count::get(),
60 "Number of tx TCP Checksums done by device"),
61 ADD_STAT(rxTcpChecksums, statistics::units::Count::get(),
62 "Number of rx TCP Checksums done by device"),
63 ADD_STAT(txUdpChecksums, statistics::units::Count::get(),
64 "Number of tx UDP Checksums done by device"),
65 ADD_STAT(rxUdpChecksums, statistics::units::Count::get(),
66 "Number of rx UDP Checksums done by device"),
67 ADD_STAT(descDmaReads, statistics::units::Count::get(),
68 "Number of descriptors the device read w/ DMA"),
69 ADD_STAT(descDmaWrites, statistics::units::Count::get(),
70 "Number of descriptors the device wrote w/ DMA"),
71 ADD_STAT(descDmaRdBytes, statistics::units::Count::get(),
72 "Number of descriptor bytes read w/ DMA"),
73 ADD_STAT(descDmaWrBytes, statistics::units::Count::get(),
74 "Number of descriptor bytes write w/ DMA"),
75 ADD_STAT(totBandwidth, statistics::units::Rate<
76 statistics::units::Bit, statistics::units::Second>::get(),
78 txBandwidth + rxBandwidth),
79 ADD_STAT(totPackets, statistics::units::Count::get(),
"Total Packets",
80 txPackets + rxPackets),
81 ADD_STAT(totBytes, statistics::units::Byte::get(),
"Total Bytes",
83 ADD_STAT(totPacketRate, statistics::units::Rate<
84 statistics::units::Count, statistics::units::Second>::get(),
85 "Total Packet Tranmission Rate",
87 ADD_STAT(txPacketRate, statistics::units::Rate<
88 statistics::units::Count, statistics::units::Second>::get(),
89 "Packet Tranmission Rate",
91 ADD_STAT(rxPacketRate, statistics::units::Rate<
92 statistics::units::Count, statistics::units::Second>::get(),
93 "Packet Reception Rate",
95 ADD_STAT(postedSwi, statistics::units::Count::get(),
96 "Number of software interrupts posted to CPU"),
97 ADD_STAT(totalSwi, statistics::units::Count::get(),
98 "Total number of Swi written to ISR"),
99 ADD_STAT(coalescedSwi, statistics::units::Rate<
100 statistics::units::Count, statistics::units::Count>::get(),
101 "Average number of Swi's coalesced into each post",
102 totalSwi / postedInterrupts),
103 ADD_STAT(postedRxIdle, statistics::units::Count::get(),
104 "Number of rxIdle interrupts posted to CPU"),
105 ADD_STAT(totalRxIdle, statistics::units::Count::get(),
106 "Total number of RxIdle written to ISR"),
107 ADD_STAT(coalescedRxIdle, statistics::units::Rate<
108 statistics::units::Count, statistics::units::Count>::get(),
109 "Average number of RxIdle's coalesced into each post",
110 totalRxIdle / postedInterrupts),
111 ADD_STAT(postedRxOk, statistics::units::Count::get(),
112 "Number of RxOk interrupts posted to CPU"),
113 ADD_STAT(totalRxOk, statistics::units::Count::get(),
114 "Total number of RxOk written to ISR"),
115 ADD_STAT(coalescedRxOk, statistics::units::Rate<
116 statistics::units::Count, statistics::units::Count>::get(),
117 "Average number of RxOk's coalesced into each post",
118 totalRxOk / postedInterrupts),
119 ADD_STAT(postedRxDesc, statistics::units::Count::get(),
120 "Number of RxDesc interrupts posted to CPU"),
121 ADD_STAT(totalRxDesc, statistics::units::Count::get(),
122 "Total number of RxDesc written to ISR"),
123 ADD_STAT(coalescedRxDesc, statistics::units::Rate<
124 statistics::units::Count, statistics::units::Count>::get(),
125 "Average number of RxDesc's coalesced into each post",
126 totalRxDesc / postedInterrupts),
127 ADD_STAT(postedTxOk, statistics::units::Count::get(),
128 "Number of TxOk interrupts posted to CPU"),
129 ADD_STAT(totalTxOk, statistics::units::Count::get(),
130 "Total number of TxOk written to ISR"),
131 ADD_STAT(coalescedTxOk, statistics::units::Rate<
132 statistics::units::Count, statistics::units::Count>::get(),
133 "Average number of TxOk's coalesced into each post",
134 totalTxOk / postedInterrupts),
135 ADD_STAT(postedTxIdle, statistics::units::Count::get(),
136 "Number of TxIdle interrupts posted to CPU"),
137 ADD_STAT(totalTxIdle, statistics::units::Count::get(),
138 "Total number of TxIdle written to ISR"),
139 ADD_STAT(coalescedTxIdle, statistics::units::Rate<
140 statistics::units::Count, statistics::units::Count>::get(),
141 "Average number of TxIdle's coalesced into each post",
142 totalTxIdle / postedInterrupts),
143 ADD_STAT(postedTxDesc, statistics::units::Count::get(),
144 "Number of TxDesc interrupts posted to CPU"),
145 ADD_STAT(totalTxDesc, statistics::units::Count::get(),
146 "Total number of TxDesc written to ISR"),
147 ADD_STAT(coalescedTxDesc, statistics::units::Rate<
148 statistics::units::Count, statistics::units::Count>::get(),
149 "Average number of TxDesc's coalesced into each post",
150 totalTxDesc / postedInterrupts),
151 ADD_STAT(postedRxOrn, statistics::units::Count::get(),
152 "Number of RxOrn posted to CPU"),
153 ADD_STAT(totalRxOrn, statistics::units::Count::get(),
154 "Total number of RxOrn written to ISR"),
155 ADD_STAT(coalescedRxOrn, statistics::units::Rate<
156 statistics::units::Count, statistics::units::Count>::get(),
157 "Average number of RxOrn's coalesced into each post",
158 totalRxOrn / postedInterrupts),
159 ADD_STAT(coalescedTotal, statistics::units::Rate<
160 statistics::units::Count, statistics::units::Count>::get(),
161 "Average number of interrupts coalesced into each post"),
162 ADD_STAT(droppedPackets, statistics::units::Count::get(),
163 "Number of packets dropped")