From cd221ed4afd8d5e0f24f3f9d6ed4216f3181b1ca Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Thu, 28 Aug 2008 11:05:32 -0400 Subject: Document written but unread global variable automatic display. --- stap.1.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stap.1.in') diff --git a/stap.1.in b/stap.1.in index 466c021b..d787a015 100644 --- a/stap.1.in +++ b/stap.1.in @@ -351,7 +351,9 @@ Variables may be declared global, so that they are shared amongst all probes and live as long as the entire systemtap session. There is one namespace for all global variables, regardless of which script file they are found within. A global declaration may be written at the -outermost level anywhere, not within a block of code. The following +outermost level anywhere, not within a block of code. Global +variables which are written but never read will be displayed +automatically at session shutdown. The following declaration marks a few variables as global. The translator will infer for each its value type, and if it is used as an array, its key types. Optionally, scalar globals may be initialized with a string -- cgit