#include "lwip/opt.h"#include "lwip/mem.h"#include "lwip/memp.h"Classes | |
| struct | stats_proto |
| struct | stats_igmp |
| struct | stats_mem |
| struct | stats_syselem |
| struct | stats_sys |
| struct | stats_ |
Defines | |
| #define | LWIP_STATS_LARGE 0 |
| #define | STAT_COUNTER u16_t |
| #define | STAT_COUNTER_F U16_F |
| #define | STATS_INC(x) ++lwip_stats.x |
| #define | STATS_DEC(x) --lwip_stats.x |
| #define | STATS_INC_USED(x, y) |
| #define | TCP_STATS_INC(x) STATS_INC(x) |
| #define | TCP_STATS_DISPLAY() stats_display_proto(&lwip_stats.tcp, "TCP") |
| #define | UDP_STATS_INC(x) STATS_INC(x) |
| #define | UDP_STATS_DISPLAY() stats_display_proto(&lwip_stats.udp, "UDP") |
| #define | ICMP_STATS_INC(x) STATS_INC(x) |
| #define | ICMP_STATS_DISPLAY() stats_display_proto(&lwip_stats.icmp, "ICMP") |
| #define | IGMP_STATS_INC(x) |
| #define | IGMP_STATS_DISPLAY() |
| #define | IP_STATS_INC(x) STATS_INC(x) |
| #define | IP_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip, "IP") |
| #define | IPFRAG_STATS_INC(x) STATS_INC(x) |
| #define | IPFRAG_STATS_DISPLAY() stats_display_proto(&lwip_stats.ip_frag, "IP_FRAG") |
| #define | ETHARP_STATS_INC(x) STATS_INC(x) |
| #define | ETHARP_STATS_DISPLAY() stats_display_proto(&lwip_stats.etharp, "ETHARP") |
| #define | LINK_STATS_INC(x) STATS_INC(x) |
| #define | LINK_STATS_DISPLAY() stats_display_proto(&lwip_stats.link, "LINK") |
| #define | MEM_STATS_AVAIL(x, y) lwip_stats.mem.x = y |
| #define | MEM_STATS_INC(x) STATS_INC(mem.x) |
| #define | MEM_STATS_INC_USED(x, y) STATS_INC_USED(mem, y) |
| #define | MEM_STATS_DEC_USED(x, y) lwip_stats.mem.x -= y |
| #define | MEM_STATS_DISPLAY() stats_display_mem(&lwip_stats.mem, "HEAP") |
| #define | MEMP_STATS_AVAIL(x, i, y) lwip_stats.memp[i].x = y |
| #define | MEMP_STATS_INC(x, i) STATS_INC(memp[i].x) |
| #define | MEMP_STATS_DEC(x, i) STATS_DEC(memp[i].x) |
| #define | MEMP_STATS_INC_USED(x, i) STATS_INC_USED(memp[i], 1) |
| #define | MEMP_STATS_DISPLAY(i) stats_display_memp(&lwip_stats.memp[i], i) |
| #define | SYS_STATS_INC(x) STATS_INC(sys.x) |
| #define | SYS_STATS_DEC(x) STATS_DEC(sys.x) |
| #define | SYS_STATS_INC_USED(x) STATS_INC_USED(sys.x, 1) |
| #define | SYS_STATS_DISPLAY() stats_display_sys(&lwip_stats.sys) |
| #define | stats_display() |
| #define | stats_display_proto(proto, name) |
| #define | stats_display_igmp(igmp) |
| #define | stats_display_mem(mem, name) |
| #define | stats_display_memp(mem, index) |
| #define | stats_display_sys(sys) |
Functions | |
| void | stats_init (void) |
Variables | |
| struct stats_ | lwip_stats |
| #define ETHARP_STATS_DISPLAY | ( | ) | stats_display_proto(&lwip_stats.etharp, "ETHARP") |
| #define ETHARP_STATS_INC | ( | x | ) | STATS_INC(x) |
| #define ICMP_STATS_DISPLAY | ( | ) | stats_display_proto(&lwip_stats.icmp, "ICMP") |
| #define ICMP_STATS_INC | ( | x | ) | STATS_INC(x) |
| #define IGMP_STATS_DISPLAY | ( | ) |
| #define IGMP_STATS_INC | ( | x | ) |
| #define IP_STATS_DISPLAY | ( | ) | stats_display_proto(&lwip_stats.ip, "IP") |
| #define IP_STATS_INC | ( | x | ) | STATS_INC(x) |
| #define IPFRAG_STATS_DISPLAY | ( | ) | stats_display_proto(&lwip_stats.ip_frag, "IP_FRAG") |
| #define IPFRAG_STATS_INC | ( | x | ) | STATS_INC(x) |
| #define LINK_STATS_DISPLAY | ( | ) | stats_display_proto(&lwip_stats.link, "LINK") |
| #define LINK_STATS_INC | ( | x | ) | STATS_INC(x) |
| #define LWIP_STATS_LARGE 0 |
| #define MEM_STATS_AVAIL | ( | x, | ||
| y | ||||
| ) | lwip_stats.mem.x = y |
| #define MEM_STATS_DEC_USED | ( | x, | ||
| y | ||||
| ) | lwip_stats.mem.x -= y |
| #define MEM_STATS_DISPLAY | ( | ) | stats_display_mem(&lwip_stats.mem, "HEAP") |
| #define MEM_STATS_INC | ( | x | ) | STATS_INC(mem.x) |
| #define MEM_STATS_INC_USED | ( | x, | ||
| y | ||||
| ) | STATS_INC_USED(mem, y) |
| #define MEMP_STATS_AVAIL | ( | x, | ||
| i, | ||||
| y | ||||
| ) | lwip_stats.memp[i].x = y |
| #define MEMP_STATS_DEC | ( | x, | ||
| i | ||||
| ) | STATS_DEC(memp[i].x) |
| #define MEMP_STATS_DISPLAY | ( | i | ) | stats_display_memp(&lwip_stats.memp[i], i) |
| #define MEMP_STATS_INC | ( | x, | ||
| i | ||||
| ) | STATS_INC(memp[i].x) |
| #define MEMP_STATS_INC_USED | ( | x, | ||
| i | ||||
| ) | STATS_INC_USED(memp[i], 1) |
| #define STAT_COUNTER u16_t |
| #define STAT_COUNTER_F U16_F |
| #define STATS_DEC | ( | x | ) | --lwip_stats.x |
| #define stats_display | ( | ) |
| #define stats_display_igmp | ( | igmp | ) |
| #define stats_display_mem | ( | mem, | ||
| name | ||||
| ) |
| #define stats_display_memp | ( | mem, | ||
| index | ||||
| ) |
| #define stats_display_proto | ( | proto, | ||
| name | ||||
| ) |
| #define stats_display_sys | ( | sys | ) |
| #define STATS_INC | ( | x | ) | ++lwip_stats.x |
| #define STATS_INC_USED | ( | x, | ||
| y | ||||
| ) |
do { lwip_stats.x.used += y; \ if (lwip_stats.x.max < lwip_stats.x.used) { \ lwip_stats.x.max = lwip_stats.x.used; \ } \ } while(0)
| #define SYS_STATS_DEC | ( | x | ) | STATS_DEC(sys.x) |
| #define SYS_STATS_DISPLAY | ( | ) | stats_display_sys(&lwip_stats.sys) |
| #define SYS_STATS_INC | ( | x | ) | STATS_INC(sys.x) |
| #define SYS_STATS_INC_USED | ( | x | ) | STATS_INC_USED(sys.x, 1) |
| #define TCP_STATS_DISPLAY | ( | ) | stats_display_proto(&lwip_stats.tcp, "TCP") |
| #define TCP_STATS_INC | ( | x | ) | STATS_INC(x) |
| #define UDP_STATS_DISPLAY | ( | ) | stats_display_proto(&lwip_stats.udp, "UDP") |
| #define UDP_STATS_INC | ( | x | ) | STATS_INC(x) |
| void stats_init | ( | void | ) |
| struct stats_ lwip_stats |
1.7.1