~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/gen_stats.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 #ifndef __LINUX_GEN_STATS_H
  3 #define __LINUX_GEN_STATS_H
  4 
  5 #include <linux/types.h>
  6 
  7 enum {
  8         TCA_STATS_UNSPEC,
  9         TCA_STATS_BASIC,
 10         TCA_STATS_RATE_EST,
 11         TCA_STATS_QUEUE,
 12         TCA_STATS_APP,
 13         TCA_STATS_RATE_EST64,
 14         TCA_STATS_PAD,
 15         TCA_STATS_BASIC_HW,
 16         TCA_STATS_PKT64,
 17         __TCA_STATS_MAX,
 18 };
 19 #define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
 20 
 21 /**
 22  * struct gnet_stats_basic - byte/packet throughput statistics
 23  * @bytes: number of seen bytes
 24  * @packets: number of seen packets
 25  */
 26 struct gnet_stats_basic {
 27         __u64   bytes;
 28         __u32   packets;
 29 };
 30 
 31 /**
 32  * struct gnet_stats_rate_est - rate estimator
 33  * @bps: current byte rate
 34  * @pps: current packet rate
 35  */
 36 struct gnet_stats_rate_est {
 37         __u32   bps;
 38         __u32   pps;
 39 };
 40 
 41 /**
 42  * struct gnet_stats_rate_est64 - rate estimator
 43  * @bps: current byte rate
 44  * @pps: current packet rate
 45  */
 46 struct gnet_stats_rate_est64 {
 47         __u64   bps;
 48         __u64   pps;
 49 };
 50 
 51 /**
 52  * struct gnet_stats_queue - queuing statistics
 53  * @qlen: queue length
 54  * @backlog: backlog size of queue
 55  * @drops: number of dropped packets
 56  * @requeues: number of requeues
 57  * @overlimits: number of enqueues over the limit
 58  */
 59 struct gnet_stats_queue {
 60         __u32   qlen;
 61         __u32   backlog;
 62         __u32   drops;
 63         __u32   requeues;
 64         __u32   overlimits;
 65 };
 66 
 67 /**
 68  * struct gnet_estimator - rate estimator configuration
 69  * @interval: sampling period
 70  * @ewma_log: the log of measurement window weight
 71  */
 72 struct gnet_estimator {
 73         signed char     interval;
 74         unsigned char   ewma_log;
 75 };
 76 
 77 
 78 #endif /* __LINUX_GEN_STATS_H */
 79 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php