Module: kamailio
Branch: master
Commit: 160ce1659e9d3fd376f9fc2d6e56216b190fa529
URL:
https://github.com/kamailio/kamailio/commit/160ce1659e9d3fd376f9fc2d6e56216…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-07-11T13:45:41+02:00
core: mem_status_all - added to cfg core structure
- allow selecting of dumping memory status also for used fragments
---
Modified: cfg_core.c
Modified: cfg_core.h
---
Diff:
https://github.com/kamailio/kamailio/commit/160ce1659e9d3fd376f9fc2d6e56216…
Patch:
https://github.com/kamailio/kamailio/commit/160ce1659e9d3fd376f9fc2d6e56216…
---
diff --git a/cfg_core.c b/cfg_core.c
index 12246a4..cd65c3a 100644
--- a/cfg_core.c
+++ b/cfg_core.c
@@ -115,6 +115,7 @@ struct cfg_group_core default_core_cfg = {
4 pkg_sums, 8 shm_sums, 16 short_status */
0, /*!< mem_safety - 0 disabled */
0, /*!< mem_join - 0 disabled */
+ 0, /*!< mem_status_all - 0 only free fragments, 1 all fragements */
L_ERR, /*!< corelog */
L_DBG, /*!< latency cfg log */
L_ERR, /*!< latency log */
@@ -313,6 +314,8 @@ cfg_def_t core_cfg_def[] = {
"safety level for memory operations"},
{"mem_join", CFG_VAR_INT|CFG_ATOMIC, 0, 0, 0, 0,
"join free memory fragments"},
+ {"mem_status_all", CFG_VAR_INT|CFG_ATOMIC, 0, 0, 0, 0,
+ "print status for free or all memory fragments"},
{"corelog", CFG_VAR_INT|CFG_ATOMIC, 0, 0, 0, 0,
"log level for non-critical core error messages"},
{"latency_cfg_log", CFG_VAR_INT|CFG_ATOMIC, 0, 0, 0, 0,
diff --git a/cfg_core.h b/cfg_core.h
index 9c10b55..0487b35 100644
--- a/cfg_core.h
+++ b/cfg_core.h
@@ -103,6 +103,7 @@ struct cfg_group_core {
int mem_summary; /*!< display memory status/summary info on exit */
int mem_safety; /*!< memory safety control option */
int mem_join; /*!< memory free fragments join option */
+ int mem_status_all; /*!< memory status printed for free/all fragments */
int corelog; /*!< log level for non-critcal core error messages */
int latency_cfg_log; /*!< log level for printing latency of routing blocks */
int latency_log; /*!< log level for latency limits messages */