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.
diff --git a/openbsc/include/vty/vector.h b/openbsc/include/vty/vector.h
index 00f0079..22a184d 100644
--- a/openbsc/include/vty/vector.h
+++ b/openbsc/include/vty/vector.h
@@ -59,4 +59,6 @@
void *vector_lookup(vector, unsigned int);
void *vector_lookup_ensure(vector, unsigned int);
+extern void *tall_vty_vec_ctx;
+
#endif /* _ZEBRA_VECTOR_H */