[Asterisk-code-review] Scope Tracing: A new facility for tracing scope enter/exit (asterisk[master])

Kevin Harwell asteriskteam at digium.com
Mon May 18 16:31:30 CDT 2020


Kevin Harwell has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/14414 )

Change subject: Scope Tracing:  A new facility for tracing scope enter/exit
......................................................................


Patch Set 1: Code-Review-1

(3 comments)

https://gerrit.asterisk.org/c/asterisk/+/14414/1/configs/samples/logger.conf.sample 
File configs/samples/logger.conf.sample:

https://gerrit.asterisk.org/c/asterisk/+/14414/1/configs/samples/logger.conf.sample@150 
PS1, Line 150: Debug
             : ; messages are also very verbose and can and do fill up logfiles quickly;
             : ; this is another reason not to have debug mode on a production system unless
             : ; you are in the process of debugging a specific issue.
I'd say add a note here, or specify "Debug and trace...", about trace's potential effect on one's system load.


https://gerrit.asterisk.org/c/asterisk/+/14414/1/main/cli.c 
File main/cli.c:

https://gerrit.asterisk.org/c/asterisk/+/14414/1/main/cli.c@664 
PS1, Line 664: 			ml = find_module_level(mod, &debug_modules);
What happens here if both debug and trace levels are specified for a given module name? For instance, it seems like it could remove the debug module for debugging, and then add the trace one. But then you'd lose the debug level? And vice versa in the similar debug level code?


https://gerrit.asterisk.org/c/asterisk/+/14414/1/main/cli.c@716 
PS1, Line 716: 		AST_RWLIST_WRLOCK(&debug_modules);
             : 		while ((ml = AST_RWLIST_REMOVE_HEAD(&debug_modules, entry))) {
             : 			ast_free(ml);
             : 		}
This removes all debug modules as well thus wiping out any debug levels set for those modules.



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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ic5ebb859883f9c10a08c5630802de33500cad027
Gerrit-Change-Number: 14414
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Comment-Date: Mon, 18 May 2020 21:31:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200518/61f20694/attachment.html>


More information about the asterisk-code-review mailing list