Bug 23507

Summary: Need a command-line option to disable the automatic (unread) global variable display
Product: systemtap Reporter: agentzh <agentzh>
Component: translatorAssignee: Jafeer Uddin <juddin>
Status: RESOLVED FIXED    
Severity: normal CC: fche
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description agentzh 2018-08-10 19:01:43 UTC
I think we need a command-line option like `--no-global-var-display` to disable the automatic value display feature in the C++ function `add_global_var_display()`.

For automatically generated stap scripts, it can be common to have unread stap globals and such automatic value logging in a synthesized "end" probe can be quite noisy and annoying.
Comment 1 agentzh 2018-10-18 18:11:54 UTC
We've already got a patch in our patch queue. Will submit to the mailing list for review soon.
Comment 2 Jafeer Uddin 2018-11-09 21:31:05 UTC
Did not see your patch in the mailing list and since this is a very simple issue, I decided to go ahead and make a patch for it myself. The new command line option is added in commit e428db4740f7763b168d6cc060ce620770c577e8.
Comment 3 agentzh 2018-11-09 21:47:13 UTC
Oh, sorry for the delay on my side. Dealing with too many other stap patches atm. I'll submit a patch for the test suite then :) I prepared some tests in my patch.