mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-27 10:41:12 +08:00
patch #8423 "arch/perf.h" should be made an optional item
This commit is contained in:
@@ -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" {
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user