<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/26461">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">VTY: enable talloc introspection for OTC_GLOBAL<br><br>Change-Id: I831722174ecbac7f2d53f2427ba7e2615fa28c8a<br>---<br>M src/vty/talloc_ctx_vty.c<br>1 file changed, 4 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/61/26461/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/vty/talloc_ctx_vty.c b/src/vty/talloc_ctx_vty.c</span><br><span>index 3966478..2900409 100644</span><br><span>--- a/src/vty/talloc_ctx_vty.c</span><br><span>+++ b/src/vty/talloc_ctx_vty.c</span><br><span>@@ -151,6 +151,8 @@</span><br><span>         /* Determine a context for report */</span><br><span>         if (!strncmp(ctx, "app", 3))</span><br><span>               talloc_ctx = host.app_info->tall_ctx;</span><br><span style="color: hsl(120, 100%, 40%);">+      else if (!strcmp(ctx, "global"))</span><br><span style="color: hsl(120, 100%, 40%);">+            talloc_ctx = OTC_GLOBAL;</span><br><span>     else if (!strncmp(ctx, "all", 3))</span><br><span>          talloc_ctx = NULL;</span><br><span> </span><br><span>@@ -167,11 +169,12 @@</span><br><span> }</span><br><span> </span><br><span> #define BASE_CMD_STR \</span><br><span style="color: hsl(0, 100%, 40%);">-       "show talloc-context (application|all) (full|brief|DEPTH)"</span><br><span style="color: hsl(120, 100%, 40%);">+  "show talloc-context (application|global|all) (full|brief|DEPTH)"</span><br><span> </span><br><span> #define BASE_CMD_DESCR \</span><br><span>  SHOW_STR "Show talloc memory hierarchy\n" \</span><br><span>        "Application's context\n" \</span><br><span style="color: hsl(120, 100%, 40%);">+     "Global context (OTC_GLOBAL)" \</span><br><span>    "All contexts, if NULL-context tracking is enabled\n" \</span><br><span>    "Display a full talloc memory hierarchy\n" \</span><br><span>       "Display a brief talloc memory hierarchy\n" \</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/26461">change 26461</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/26461"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I831722174ecbac7f2d53f2427ba7e2615fa28c8a </div>
<div style="display:none"> Gerrit-Change-Number: 26461 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>