diff options
author | Jason Evans <je@facebook.com> | 2010-03-02 21:01:16 (GMT) |
---|---|---|
committer | Jason Evans <je@facebook.com> | 2010-03-02 21:01:16 (GMT) |
commit | a40bc7afe8ae71b05eba81805c87d92e9bf6ce27 (patch) | |
tree | 1d4debec1893cc5e69b5c7b4774db1948f46951f /jemalloc/src | |
parent | 22ca855e8fbf4c592f5e46aaec381b68de60c71a (diff) | |
download | jemalloc-a40bc7afe8ae71b05eba81805c87d92e9bf6ce27.zip jemalloc-a40bc7afe8ae71b05eba81805c87d92e9bf6ce27.tar.gz jemalloc-a40bc7afe8ae71b05eba81805c87d92e9bf6ce27.tar.bz2 |
Add release versioning support.0.0.0
Base version string on 'git describe --long', and provide cpp
macros in jemalloc.h.
Add the version mallctl.
Diffstat (limited to 'jemalloc/src')
-rw-r--r-- | jemalloc/src/ctl.c | 4 |
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) |