diff options
author | Harald Welte <laforge@netfilter.org> | 2009-12-24 10:51:56 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-12-24 10:51:56 +0100 |
commit | 3cefa9aaa0832b9cf99f3599f7cc1c0499e78cbb (patch) | |
tree | 9660ee8150e74ecfe13b0939148874d0f89a5c1d /openbsc/src/vty/vty.c | |
parent | 28f811c87f939fc9d3523f85baa2b62a2629796d (diff) |
vty: sub-divide talloc contexts and include them in talloc report
The VTY code makes so many allocations that a full report is
simply too long to provide any useful information. So we sub-divide
it in multiple contexts, and report only one level deep at SIGURS1.
We also introduce SIGUSR2 for the full detailed VTY report.
Diffstat (limited to 'openbsc/src/vty/vty.c')
-rw-r--r-- | openbsc/src/vty/vty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/vty/vty.c b/openbsc/src/vty/vty.c index 788c7fd6f..2339bbd4b 100644 --- a/openbsc/src/vty/vty.c +++ b/openbsc/src/vty/vty.c @@ -1633,6 +1633,8 @@ extern void *tall_bsc_ctx; void vty_init() { tall_vty_ctx = talloc_named_const(NULL, 0, "vty"); + tall_vty_vec_ctx = talloc_named_const(tall_vty_ctx, 0, "vty_vector"); + tall_vty_cmd_ctx = talloc_named_const(tall_vty_ctx, 0, "vty_command"); /* For further configuration read, preserve current directory. */ vty_save_cwd(); |