patch #8423 "arch/perf.h" should be made an optional item

This commit is contained in:
sg 2015-02-11 21:25:47 +01:00
parent 7ff9825f55
commit 974a853f40
8 changed files with 22 additions and 5 deletions

View File

@ -6,6 +6,9 @@ HISTORY
++ New features:
2015-02-11: Frederick Baksik
opt.h, def.h, others: patch #8423 "arch/perf.h" should be made an optional item
2015-02-11: Simon Goldschmidt
* api_msg.c, opt.h: started to implement fullduplex sockets/netconns
(note that this is highly unstable yet!)

View File

@ -54,7 +54,6 @@
#include "lwip/dhcp.h"
#include "lwip/autoip.h"
#include "lwip/stats.h"
#include "arch/perf.h"
#include <string.h>

View File

@ -69,7 +69,6 @@
#include "lwip/memp.h"
#include "lwip/pbuf.h"
#include "lwip/sys.h"
#include "arch/perf.h"
#if LWIP_TCP && TCP_QUEUE_OOSEQ
#include "lwip/tcp_impl.h"
#endif

View File

@ -48,7 +48,6 @@
#include "lwip/netif.h"
#include "lwip/raw.h"
#include "lwip/stats.h"
#include "arch/perf.h"
#include "lwip/ip6.h"
#include "lwip/ip6_addr.h"
#include "lwip/inet_chksum.h"

View File

@ -54,7 +54,6 @@
#include "lwip/inet_chksum.h"
#include "lwip/stats.h"
#include "lwip/snmp.h"
#include "arch/perf.h"
#include "lwip/ip6.h"
#include "lwip/ip6_addr.h"
#include "lwip/inet_chksum.h"

View File

@ -63,7 +63,6 @@
#include "lwip/icmp6.h"
#include "lwip/stats.h"
#include "lwip/snmp.h"
#include "arch/perf.h"
#include "lwip/dhcp.h"
#include <string.h>

View File

@ -35,6 +35,12 @@
/* arch.h might define NULL already */
#include "lwip/arch.h"
#include "lwip/opt.h"
#if LWIP_PERF
#include "arch/perf.h"
#else /* LWIP_PERF */
#define PERF_START /* null definition */
#define PERF_STOP(x) /* null definition */
#endif /* LWIP_PERF */
#ifdef __cplusplus
extern "C" {

View File

@ -2796,4 +2796,17 @@
#define IP6_DEBUG LWIP_DBG_OFF
#endif
/*
--------------------------------------------------
---------- Performance tracking options ----------
--------------------------------------------------
*/
/**
* LWIP_PERF: Enable performance testing for lwIP
* (if enabled, arch/perf.h is included)
*/
#ifndef LWIP_PERF
#define LWIP_PERF 0
#endif
#endif /* LWIP_HDR_OPT_H */