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/include/vty | |
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/include/vty')
-rw-r--r-- | openbsc/include/vty/command.h | 2 | ||||
-rw-r--r-- | openbsc/include/vty/vector.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/include/vty/command.h b/openbsc/include/vty/command.h index 10a60add5..03b071f70 100644 --- a/openbsc/include/vty/command.h +++ b/openbsc/include/vty/command.h @@ -356,4 +356,6 @@ void host_config_set(const char *); void print_version(const char *); +extern void *tall_vty_cmd_ctx; + #endif /* _ZEBRA_COMMAND_H */ diff --git a/openbsc/include/vty/vector.h b/openbsc/include/vty/vector.h index 00f0079f3..22a184d61 100644 --- a/openbsc/include/vty/vector.h +++ b/openbsc/include/vty/vector.h @@ -59,4 +59,6 @@ vector vector_copy(vector v); void *vector_lookup(vector, unsigned int); void *vector_lookup_ensure(vector, unsigned int); +extern void *tall_vty_vec_ctx; + #endif /* _ZEBRA_VECTOR_H */ |