Safety checks: Expose config value via mallctl and stats.
This commit is contained in:
parent
f4d24f05e1
commit
f95a88fcd9
@ -72,6 +72,7 @@ CTL_PROTO(config_debug)
|
||||
CTL_PROTO(config_fill)
|
||||
CTL_PROTO(config_lazy_lock)
|
||||
CTL_PROTO(config_malloc_conf)
|
||||
CTL_PROTO(config_opt_safety_checks)
|
||||
CTL_PROTO(config_prof)
|
||||
CTL_PROTO(config_prof_libgcc)
|
||||
CTL_PROTO(config_prof_libunwind)
|
||||
@ -286,6 +287,7 @@ static const ctl_named_node_t config_node[] = {
|
||||
{NAME("fill"), CTL(config_fill)},
|
||||
{NAME("lazy_lock"), CTL(config_lazy_lock)},
|
||||
{NAME("malloc_conf"), CTL(config_malloc_conf)},
|
||||
{NAME("opt_safety_checks"), CTL(config_opt_safety_checks)},
|
||||
{NAME("prof"), CTL(config_prof)},
|
||||
{NAME("prof_libgcc"), CTL(config_prof_libgcc)},
|
||||
{NAME("prof_libunwind"), CTL(config_prof_libunwind)},
|
||||
@ -1706,6 +1708,7 @@ CTL_RO_CONFIG_GEN(config_debug, bool)
|
||||
CTL_RO_CONFIG_GEN(config_fill, bool)
|
||||
CTL_RO_CONFIG_GEN(config_lazy_lock, bool)
|
||||
CTL_RO_CONFIG_GEN(config_malloc_conf, const char *)
|
||||
CTL_RO_CONFIG_GEN(config_opt_safety_checks, bool)
|
||||
CTL_RO_CONFIG_GEN(config_prof, bool)
|
||||
CTL_RO_CONFIG_GEN(config_prof_libgcc, bool)
|
||||
CTL_RO_CONFIG_GEN(config_prof_libunwind, bool)
|
||||
|
@ -976,6 +976,7 @@ stats_general_print(emitter_t *emitter) {
|
||||
emitter_kv(emitter, "malloc_conf", "config.malloc_conf",
|
||||
emitter_type_string, &config_malloc_conf);
|
||||
|
||||
CONFIG_WRITE_BOOL(opt_safety_checks);
|
||||
CONFIG_WRITE_BOOL(prof);
|
||||
CONFIG_WRITE_BOOL(prof_libgcc);
|
||||
CONFIG_WRITE_BOOL(prof_libunwind);
|
||||
|
Loading…
Reference in New Issue
Block a user