summaryrefslogtreecommitdiffstats
path: root/jemalloc/src/ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'jemalloc/src/ctl.c')
-rw-r--r--jemalloc/src/ctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/jemalloc/src/ctl.c b/jemalloc/src/ctl.c
index aa7e53d..33ddbb5 100644
--- a/jemalloc/src/ctl.c
+++ b/jemalloc/src/ctl.c
@@ -30,6 +30,7 @@ static bool ctl_init(void);
static int ctl_lookup(const char *name, ctl_node_t const **nodesp,
size_t *mibp, size_t *depthp);
+CTL_PROTO(version)
CTL_PROTO(epoch)
#ifdef JEMALLOC_TCACHE
CTL_PROTO(tcache_flush)
@@ -426,6 +427,7 @@ static const ctl_node_t swap_node[] = {
#endif
static const ctl_node_t root_node[] = {
+ {NAME("version"), CTL(version)},
{NAME("epoch"), CTL(epoch)},
#ifdef JEMALLOC_TCACHE
{NAME("tcache"), CHILD(tcache)},
@@ -916,6 +918,8 @@ RETURN: \
return (ret); \
}
+CTL_RO_GEN(version, JEMALLOC_VERSION, const char *)
+
static int
epoch_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp,
void *newp, size_t newlen)