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.
We've already got a patch in our patch queue. Will submit to the mailing list for review soon.
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.
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.