libosmocore/include/osmocom
Vadim Yanitskiy 463deef8c2 VTY: implement talloc context introspection command
This change introduces a new command, which could be used to
inspect the application's talloc context directly from VTY.
To enable this feature, an application need to provide it's
context via the 'vty_app_info' struct, and register the VTY
command by calling the osmo_talloc_vty_add_cmds().

The new command is a sub-command of 'show':

  show talloc-context <context> <depth> [filter]

Currently the following contexts may be inspected:

  - application - a context provided by an application;
  - null - all contexts, if NULL-context tracking is enabled.

A report depth is defined by the next parameter, and could be:

  - full - full tree report, as the talloc_report_full() does;
  - brief - brief tree report, as the talloc_report() does;
  - DEPTH - user defined maximal report depth.

Also, there are two optional report filters:

  - regexp - print only contexts, matching a regular expression;
  - tree - print a specific context, pointed by specified address.

The command output is formatted the same way as in case of calling
the talloc_report() or talloc_report_full().

Change-Id: I43fc42880b22294d83c565ae600ac65e4f38b30d
2017-09-27 11:02:19 +00:00
..
codec doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
coding doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
core Add time conversion helpers 2017-09-25 14:41:41 +00:00
crypt Add define for supported a5 key length limit 2017-08-30 09:09:39 +00:00
ctrl doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
gprs Add osmo_gprs_{ul,dl}_block_size_{bits,bytes} functions 2017-08-09 19:02:12 +02:00
gsm tlv: add [msgb_]t16lv_put() for 16bit tag + 8 bit len TLVs 2017-08-09 19:02:12 +02:00
sim doxygen: unify use of \file across the board 2017-06-23 00:18:23 +00:00
vty VTY: implement talloc context introspection command 2017-09-27 11:02:19 +00:00