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. --- NEWS | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index ce3954cf..969f736f 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,12 @@ * What's new +- Global variables which are written to but never read are now + automatically displayed when the session does a shutdown. For example: + global running_tasks + probe timer.profile {tc=task_current(); + running_tasks[task_pid(tc),task_tid(tc)] = execname()} + probe timer.ms(8000) {exit()} + - A formatted string representation of the variables, parameters, or local variables at a probe point is now supported via the special $$vars, $$parms, and $$locals context variables, which expand to a string -- cgit From 5d9541658a8598f9430a7285ea04cafdb849e7d7 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 28 Aug 2008 11:59:26 -0400 Subject: fix NEWS to refer to simpler context.stp tapset functions in auto-printing blurb --- NEWS | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 969f736f..398964d9 100644 --- a/NEWS +++ b/NEWS @@ -2,10 +2,10 @@ - Global variables which are written to but never read are now automatically displayed when the session does a shutdown. For example: - global running_tasks - probe timer.profile {tc=task_current(); - running_tasks[task_pid(tc),task_tid(tc)] = execname()} - probe timer.ms(8000) {exit()} + + global running_tasks + probe timer.profile {running_tasks[pid(),tid()] = execname()} + probe timer.ms(8000) {exit()} - A formatted string representation of the variables, parameters, or local variables at a probe point is now supported via the special $$vars, -- cgit