Bug 23507 - Need a command-line option to disable the automatic (unread) global variable display
Summary: Need a command-line option to disable the automatic (unread) global variable ...
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Jafeer Uddin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-10 19:01 UTC by agentzh
Modified: 2018-11-09 21:47 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.