blob: 9dc9b3200f2dd7904aef571a96c37d93b3ffd03c [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 {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024 TCA_STATS_UNSPEC,
25 TCA_STATS_BASIC,
26 TCA_STATS_RATE_EST,
27 TCA_STATS_QUEUE,
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 TCA_STATS_APP,
30 TCA_STATS_RATE_EST64,
31 __TCA_STATS_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -070032};
Elliott Hughes8cb52b02013-11-21 13:43:23 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070034#define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070035struct gnet_stats_basic {
Tao Baod7db5942015-01-28 10:07:51 -080036 __u64 bytes;
37 __u32 packets;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070039};
Ben Cheng655a7c02013-10-16 16:09:24 -070040struct gnet_stats_basic_packed {
Tao Baod7db5942015-01-28 10:07:51 -080041 __u64 bytes;
42 __u32 packets;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070045struct gnet_stats_rate_est {
Tao Baod7db5942015-01-28 10:07:51 -080046 __u32 bps;
47 __u32 pps;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070049};
50struct gnet_stats_rate_est64 {
Tao Baod7db5942015-01-28 10:07:51 -080051 __u64 bps;
52 __u64 pps;
Christopher Ferris38062f92014-07-09 15:33:25 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54};
Ben Cheng655a7c02013-10-16 16:09:24 -070055struct gnet_stats_queue {
Tao Baod7db5942015-01-28 10:07:51 -080056 __u32 qlen;
57 __u32 backlog;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __u32 drops;
60 __u32 requeues;
61 __u32 overlimits;
Ben Cheng655a7c02013-10-16 16:09:24 -070062};
Elliott Hughes8cb52b02013-11-21 13:43:23 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070064struct gnet_estimator {
Tao Baod7db5942015-01-28 10:07:51 -080065 signed char interval;
66 unsigned char ewma_log;
Ben Cheng655a7c02013-10-16 16:09:24 -070067};
Elliott Hughes8cb52b02013-11-21 13:43:23 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070069#endif