<div dir="ltr"><div>Hi Neels,<br><br>> If you submitted a patch for it I would probably +vote it.<br><br></div><div>Not yet.<br></div><div><br>> I guess it would actually be a whole bunch of patches,<br>> a common part in libosmocore and using it in each osmo* program?<br><br></div><div>Probably, it would be a whole bunch of patches for osmo*<br></div><div>programs only. I was wondering about modifying libosmovty<br></div><div>to enable a new VTY command in all projects, like Harald did<br>in osmo-fsm implementation. But in case of FSM, all state<br>machines are being registered before use, so libosmovty<br></div><div>"knows" about them.<br><br></div><div>What is impossible in case of talloc contexts right now.<br></div><div>Of course, we can write a new function and register every<br></div><div>root talloc context using it. What about that?<br><br></div><div>Regarding to the commands to add, I think<br><br></div><div>show ctx all - Show list of all registered talloc contexts.<br></div><div>show ctx NAME - Find specified context and call talloc_report_full.<br></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>With best regards,<br></div><div>Vadim Yanitskiy.<br></div></div></div></div></div></div>
<br><div class="gmail_quote">2017-06-01 4:34 GMT+07:00 Neels Hofmeyr <span dir="ltr"><<a href="mailto:nhofmeyr@sysmocom.de" target="_blank">nhofmeyr@sysmocom.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">re "what do you guys think about having a special VTY command to get a talloc report?"<br>
<br>
If you submitted a patch for it I would probably +vote it. I guess it would<br>
actually be a whole bunch of patches, a common part in libosmocore and using it<br>
in each osmo* program?<br>
<span class="HOEnZb"><font color="#888888"><br>
~N<br>
<br>
</font></span></blockquote></div><br></div></div>