mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 07:21:36 +08:00
load_mon: decrease warning threshold for stack check builds
- enabling stack check increases stack usage and will assert if there's any overflow
This commit is contained in:
@@ -55,7 +55,13 @@
|
|||||||
# error load_mon support requires CONFIG_SCHED_INSTRUMENTATION
|
# error load_mon support requires CONFIG_SCHED_INSTRUMENTATION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define STACK_LOW_WARNING_THRESHOLD 300 ///< if free stack space falls below this, print a warning
|
// if free stack space falls below this, print a warning
|
||||||
|
#if defined(CONFIG_ARMV7M_STACKCHECK)
|
||||||
|
static constexpr unsigned STACK_LOW_WARNING_THRESHOLD = 100;
|
||||||
|
#else
|
||||||
|
static constexpr unsigned STACK_LOW_WARNING_THRESHOLD = 300;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define FDS_LOW_WARNING_THRESHOLD 3 ///< if free file descriptors fall below this, print a warning
|
#define FDS_LOW_WARNING_THRESHOLD 3 ///< if free file descriptors fall below this, print a warning
|
||||||
|
|
||||||
namespace load_mon
|
namespace load_mon
|
||||||
|
|||||||
Reference in New Issue
Block a user