blob: aa7ac28d321a32536a9c6b193e806579f84e31bd [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,
Christopher Ferris106b3a82016-08-24 12:15:38 -070031 TCA_STATS_PAD,
Tao Baod7db5942015-01-28 10:07:51 -080032 __TCA_STATS_MAX,
Elliott Hughes8cb52b02013-11-21 13:43:23 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070034};
Christopher Ferris38062f92014-07-09 15:33:25 -070035#define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070036struct gnet_stats_basic {
Tao Baod7db5942015-01-28 10:07:51 -080037 __u64 bytes;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070039 __u32 packets;
Christopher Ferris38062f92014-07-09 15:33:25 -070040};
Ben Cheng655a7c02013-10-16 16:09:24 -070041struct gnet_stats_basic_packed {
Tao Baod7db5942015-01-28 10:07:51 -080042 __u64 bytes;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070044 __u32 packets;
Tao Baod7db5942015-01-28 10:07:51 -080045} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070046struct gnet_stats_rate_est {
Tao Baod7db5942015-01-28 10:07:51 -080047 __u32 bps;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070049 __u32 pps;
Christopher Ferris38062f92014-07-09 15:33:25 -070050};
51struct gnet_stats_rate_est64 {
Tao Baod7db5942015-01-28 10:07:51 -080052 __u64 bps;
Christopher Ferris38062f92014-07-09 15:33:25 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070054 __u64 pps;
Christopher Ferris38062f92014-07-09 15:33:25 -070055};
Ben Cheng655a7c02013-10-16 16:09:24 -070056struct gnet_stats_queue {
Tao Baod7db5942015-01-28 10:07:51 -080057 __u32 qlen;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070059 __u32 backlog;
Tao Baod7db5942015-01-28 10:07:51 -080060 __u32 drops;
61 __u32 requeues;
62 __u32 overlimits;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070064};
Christopher Ferris38062f92014-07-09 15:33:25 -070065struct gnet_estimator {
Tao Baod7db5942015-01-28 10:07:51 -080066 signed char interval;
67 unsigned char ewma_log;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070069};
Christopher Ferris38062f92014-07-09 15:33:25 -070070#endif