summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-09-05 10:20:40 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-09-05 10:20:40 -0400
commit1044139f1ad1c1900826b7980ff07873e4dabbb1 (patch)
treee3a18cd6112d51461bfd238c1332bc146301aae6
parentd4e35ac85af99905bdb1c88f7750d917d7dc3473 (diff)
downloadsystemtap-steved-1044139f1ad1c1900826b7980ff07873e4dabbb1.tar.gz
systemtap-steved-1044139f1ad1c1900826b7980ff07873e4dabbb1.tar.xz
systemtap-steved-1044139f1ad1c1900826b7980ff07873e4dabbb1.zip
add comments explaining why '-L' works; add NEWS blurb too
-rw-r--r--NEWS7
-rw-r--r--main.cxx5
2 files changed, 10 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index be56757d..5036cebb 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,12 @@
* What's new
+- Probe listing mode is improved: "-L" lists available script-level variables
+
+ % stap -L 'syscall.*open*'
+ syscall.mq_open name:string name_uaddr:long filename:string mode:long u_attr_uaddr:long oflag:long argstr:string
+ syscall.open name:string filename:string flags:long mode:long argstr:string
+ syscall.openat name:string filename:string flags:long mode:long argstr:string
+
- All user-space-related probes support $PATH-resolved executable
names, so
diff --git a/main.cxx b/main.cxx
index 83afb913..5d0739eb 100644
--- a/main.cxx
+++ b/main.cxx
@@ -180,10 +180,11 @@ printscript(systemtap_session& s, ostream& o)
if (seen.find (pp) == seen.end())
{
o << pp;
+ // This list will be empty unless s.unoptimized = true -- i.e., -L mode
for (unsigned j=0; j<p->locals.size(); j++)
{
o << " ";
- vardecl* v = p->locals[j];
+ vardecl* v = p->locals[j];
v->printsig (o);
}
o << endl;
@@ -587,7 +588,7 @@ main (int argc, char * const argv [])
break;
case 'L':
- s.unoptimized = true;
+ s.unoptimized = true; // This causes retention of variables for listing_mode
case 'l':
s.suppress_warnings = true;