Change in libosmocore[master]: VTY: enable talloc introspection for OTC_GLOBAL

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Dec 8 08:06:07 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/26461 )

Change subject: VTY: enable talloc introspection for OTC_GLOBAL
......................................................................

VTY: enable talloc introspection for OTC_GLOBAL

Change-Id: I831722174ecbac7f2d53f2427ba7e2615fa28c8a
---
M src/vty/talloc_ctx_vty.c
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/vty/talloc_ctx_vty.c b/src/vty/talloc_ctx_vty.c
index 3966478..206d049 100644
--- a/src/vty/talloc_ctx_vty.c
+++ b/src/vty/talloc_ctx_vty.c
@@ -151,6 +151,8 @@
 	/* Determine a context for report */
 	if (!strncmp(ctx, "app", 3))
 		talloc_ctx = host.app_info->tall_ctx;
+	else if (!strcmp(ctx, "global"))
+		talloc_ctx = OTC_GLOBAL;
 	else if (!strncmp(ctx, "all", 3))
 		talloc_ctx = NULL;
 
@@ -167,11 +169,12 @@
 }
 
 #define BASE_CMD_STR \
-	"show talloc-context (application|all) (full|brief|DEPTH)"
+	"show talloc-context (application|global|all) (full|brief|DEPTH)"
 
 #define BASE_CMD_DESCR \
 	SHOW_STR "Show talloc memory hierarchy\n" \
 	"Application's context\n" \
+	"Global context (OTC_GLOBAL)\n" \
 	"All contexts, if NULL-context tracking is enabled\n" \
 	"Display a full talloc memory hierarchy\n" \
 	"Display a brief talloc memory hierarchy\n" \

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/26461
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I831722174ecbac7f2d53f2427ba7e2615fa28c8a
Gerrit-Change-Number: 26461
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211208/2af70a05/attachment.htm>


More information about the gerrit-log mailing list