Browse code

core: mem_status_all - added to cfg core structure

- allow selecting of dumping memory status also for used fragments

Daniel-Constantin Mierla authored on 11/07/2016 11:45:41
Showing 2 changed files
... ...
@@ -115,6 +115,7 @@ struct cfg_group_core default_core_cfg = {
115 115
 		4 pkg_sums, 8 shm_sums, 16 short_status */
116 116
 	0, /*!< mem_safety - 0 disabled */
117 117
 	0, /*!< mem_join - 0 disabled */
118
+	0, /*!< mem_status_all - 0 only free fragments, 1 all fragements */
118 119
 	L_ERR, /*!< corelog */
119 120
 	L_DBG, /*!< latency cfg log */
120 121
 	L_ERR, /*!< latency log */
... ...
@@ -313,6 +314,8 @@ cfg_def_t core_cfg_def[] = {
313 314
 		"safety level for memory operations"},
314 315
 	{"mem_join",		CFG_VAR_INT|CFG_ATOMIC,	0, 0, 0, 0,
315 316
 		"join free memory fragments"},
317
+	{"mem_status_all",		CFG_VAR_INT|CFG_ATOMIC,	0, 0, 0, 0,
318
+		"print status for free or all memory fragments"},
316 319
 	{"corelog",		CFG_VAR_INT|CFG_ATOMIC,	0, 0, 0, 0,
317 320
 		"log level for non-critical core error messages"},
318 321
 	{"latency_cfg_log",		CFG_VAR_INT|CFG_ATOMIC,	0, 0, 0, 0,
... ...
@@ -103,6 +103,7 @@ struct cfg_group_core {
103 103
 	int mem_summary; /*!< display memory status/summary info on exit */
104 104
 	int mem_safety; /*!< memory safety control option */
105 105
 	int mem_join; /*!< memory free fragments join option */
106
+	int mem_status_all; /*!< memory status printed for free/all fragments */
106 107
 	int corelog; /*!< log level for non-critcal core error messages */
107 108
 	int latency_cfg_log; /*!< log level for printing latency of routing blocks */
108 109
 	int latency_log; /*!< log level for latency limits messages */