fs/procfs/fs_procfscritmon.c and sched/sched/sched_critmonitor.c: Add support for global pre-emption and global critical sections to monitor as suggested by Xiang Xaio.

This commit is contained in:
Gregory Nutt
2018-11-24 13:33:37 -06:00
parent a1cb270478
commit 85c31fd4a2
6 changed files with 545 additions and 24 deletions
+12
View File
@@ -809,6 +809,18 @@ extern "C"
#define EXTERN extern
#endif
#ifdef CONFIG_SCHED_CRITMONITOR
/* Maximum time with pre-emption disabled or within critical section. */
#ifdef CONFIG_SMP_NCPUS
EXTERN uint32_t g_premp_max[CONFIG_SMP_NCPUS];
EXTERN uint32_t g_crit_max[CONFIG_SMP_NCPUS];
#else
EXTERN uint32_t g_premp_max[1];
EXTERN uint32_t g_crit_max[1];
#endif
#endif /* CONFIG_SCHED_CRITMONITOR */
/********************************************************************************
* Public Function Prototypes
********************************************************************************/