Browse code

core: mem_status_all - added to cfg core structure

- allow selecting of dumping memory status also for used fragments

(cherry picked from commit 160ce1659e9d3fd376f9fc2d6e56216b190fa529)

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_ERR, /*!< latency log */
120 121
 	0, /*!< latency limit db */
... ...
@@ -312,6 +313,8 @@ cfg_def_t core_cfg_def[] = {
312 312
 		"safety level for memory operations"},
313 313
 	{"mem_join",		CFG_VAR_INT|CFG_ATOMIC,	0, 0, 0, 0,
314 314
 		"join free memory fragments"},
315
+	{"mem_status_all",		CFG_VAR_INT|CFG_ATOMIC,	0, 0, 0, 0,
316
+		"print status for free or all memory fragments"},
315 317
 	{"corelog",		CFG_VAR_INT|CFG_ATOMIC,	0, 0, 0, 0,
316 318
 		"log level for non-critical core error messages"},
317 319
 	{"latency_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_log; /*!< log level for latency limits messages */
108 109
 	int latency_limit_db; /*!< alert limit of running db commands */