aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gen_stats.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/gen_stats.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/gen_stats.h')
-rw-r--r--include/linux/gen_stats.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/include/linux/gen_stats.h b/include/linux/gen_stats.h
new file mode 100644
index 000000000000..13f4e74609ac
--- /dev/null
+++ b/include/linux/gen_stats.h
@@ -0,0 +1,67 @@
1#ifndef __LINUX_GEN_STATS_H
2#define __LINUX_GEN_STATS_H
3
4#include <linux/types.h>
5
6enum {
7 TCA_STATS_UNSPEC,
8 TCA_STATS_BASIC,
9 TCA_STATS_RATE_EST,
10 TCA_STATS_QUEUE,
11 TCA_STATS_APP,
12 __TCA_STATS_MAX,
13};
14#define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
15
16/**
17 * struct gnet_stats_basic - byte/packet throughput statistics
18 * @bytes: number of seen bytes
19 * @packets: number of seen packets
20 */
21struct gnet_stats_basic
22{
23 __u64 bytes;
24 __u32 packets;
25};
26
27/**
28 * struct gnet_stats_rate_est - rate estimator
29 * @bps: current byte rate
30 * @pps: current packet rate
31 */
32struct gnet_stats_rate_est
33{
34 __u32 bps;
35 __u32 pps;
36};
37
38/**
39 * struct gnet_stats_queue - queuing statistics
40 * @qlen: queue length
41 * @backlog: backlog size of queue
42 * @drops: number of dropped packets
43 * @requeues: number of requeues
44 * @overlimits: number of enqueues over the limit
45 */
46struct gnet_stats_queue
47{
48 __u32 qlen;
49 __u32 backlog;
50 __u32 drops;
51 __u32 requeues;
52 __u32 overlimits;
53};
54
55/**
56 * struct gnet_estimator - rate estimator configuration
57 * @interval: sampling period
58 * @ewma_log: the log of measurement window weight
59 */
60struct gnet_estimator
61{
62 signed char interval;
63 unsigned char ewma_log;
64};
65
66
67#endif /* __LINUX_GEN_STATS_H */