summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorfche <fche>2007-03-22 20:54:27 +0000
committerfche <fche>2007-03-22 20:54:27 +0000
commit37ebca01742fea41602ecb5b471d3367a1e2c64b (patch)
tree7aadf5c821ef9744a72ba236bfabdad745ca3d9f /parse.cxx
parent41f49ea56914d10d91c292a80d864fb8cee4d6f1 (diff)
downloadsystemtap-steved-37ebca01742fea41602ecb5b471d3367a1e2c64b.tar.gz
systemtap-steved-37ebca01742fea41602ecb5b471d3367a1e2c64b.tar.xz
systemtap-steved-37ebca01742fea41602ecb5b471d3367a1e2c64b.zip
2007-03-22 Frank Ch. Eigler <fche@elastic.org>
PR 4224. * staptree.h (probe): Add privileged field. * elaborate.cxx, parse.cxx: Pass privileged flag to probes. * tapsets.cxx (dwarf_query): Add has_absolute field. (dwarf_derived_probe ctor): Tolerate it. (register_patterns): Expose it. (dwarf_builder::build): Implement it with no dwfl whatsoever. * NEWS: Document kernel.statement().absolute. * stapprobes.5.in: Ditto. 2007-03-22 Frank Ch. Eigler <fche@elastic.org> PR 4224. * systemtap.base/probefunc.exp: Use kernel.statement().absolute instead with grep-found schedule_tick address. * semko/thirtyseven.stp, thirtyeight.stp: New tests. * buildok/twentyeight.stp: New test. 2007-03-22 Frank Ch. Eigler <fche@elastic.org> * sym.c (_stp_module_relocate): Tolerate empty section string.
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse.cxx b/parse.cxx
index 5674daa8..41784430 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -1,5 +1,5 @@
// recursive descent parser for systemtap scripts
-// Copyright (C) 2005-2006 Red Hat Inc.
+// Copyright (C) 2005-2007 Red Hat Inc.
// Copyright (C) 2006 Intel Corporation.
//
// This file is part of systemtap, and is free software. You can
@@ -899,6 +899,7 @@ parser::parse_probe (std::vector<probe *> & probe_ret,
p->tok = t0;
p->locations = locations;
p->body = parse_stmt_block ();
+ p->privileged = privileged;
probe_ret.push_back (p);
}
else
@@ -911,6 +912,7 @@ parser::parse_probe (std::vector<probe *> & probe_ret,
p->tok = t0;
p->locations = locations;
p->body = parse_stmt_block ();
+ p->privileged = privileged;
alias_ret.push_back (p);
}
}