blob: 127ae88c820ec6515a191d020a0f65d641e5c147 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __LINUX_GEN_STATS_H
20#define __LINUX_GEN_STATS_H
21#include <linux/types.h>
22enum {
Tao Baod7db5942015-01-28 10:07:51 -080023 TCA_STATS_UNSPEC,
24 TCA_STATS_BASIC,
25 TCA_STATS_RATE_EST,
26 TCA_STATS_QUEUE,
Tao Baod7db5942015-01-28 10:07:51 -080027 TCA_STATS_APP,
28 TCA_STATS_RATE_EST64,
Christopher Ferris106b3a82016-08-24 12:15:38 -070029 TCA_STATS_PAD,
Tao Baod7db5942015-01-28 10:07:51 -080030 __TCA_STATS_MAX,
Christopher Ferris106b3a82016-08-24 12:15:38 -070031};
Christopher Ferris38062f92014-07-09 15:33:25 -070032#define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070033struct gnet_stats_basic {
Tao Baod7db5942015-01-28 10:07:51 -080034 __u64 bytes;
Christopher Ferris106b3a82016-08-24 12:15:38 -070035 __u32 packets;
Christopher Ferris38062f92014-07-09 15:33:25 -070036};
Ben Cheng655a7c02013-10-16 16:09:24 -070037struct gnet_stats_basic_packed {
Tao Baod7db5942015-01-28 10:07:51 -080038 __u64 bytes;
Christopher Ferris106b3a82016-08-24 12:15:38 -070039 __u32 packets;
Tao Baod7db5942015-01-28 10:07:51 -080040} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070041struct gnet_stats_rate_est {
Tao Baod7db5942015-01-28 10:07:51 -080042 __u32 bps;
Christopher Ferris106b3a82016-08-24 12:15:38 -070043 __u32 pps;
Christopher Ferris38062f92014-07-09 15:33:25 -070044};
45struct gnet_stats_rate_est64 {
Tao Baod7db5942015-01-28 10:07:51 -080046 __u64 bps;
Christopher Ferris106b3a82016-08-24 12:15:38 -070047 __u64 pps;
Christopher Ferris38062f92014-07-09 15:33:25 -070048};
Ben Cheng655a7c02013-10-16 16:09:24 -070049struct gnet_stats_queue {
Tao Baod7db5942015-01-28 10:07:51 -080050 __u32 qlen;
Christopher Ferris106b3a82016-08-24 12:15:38 -070051 __u32 backlog;
Tao Baod7db5942015-01-28 10:07:51 -080052 __u32 drops;
53 __u32 requeues;
54 __u32 overlimits;
Christopher Ferris106b3a82016-08-24 12:15:38 -070055};
Christopher Ferris38062f92014-07-09 15:33:25 -070056struct gnet_estimator {
Tao Baod7db5942015-01-28 10:07:51 -080057 signed char interval;
58 unsigned char ewma_log;
Christopher Ferris106b3a82016-08-24 12:15:38 -070059};
Christopher Ferris38062f92014-07-09 15:33:25 -070060#endif