summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
authorguanglei <guanglei>2006-06-01 05:46:35 +0000
committerguanglei <guanglei>2006-06-01 05:46:35 +0000
commit01133ccb0ee31f7108f7cb4e89454f2693df912e (patch)
tree71996abd2cf591efa823aa86fa7969f77529d548 /staptree.cxx
parent6d82733dfa661eddccfa3cae7232773cafd66a82 (diff)
downloadsystemtap-steved-01133ccb0ee31f7108f7cb4e89454f2693df912e.tar.gz
systemtap-steved-01133ccb0ee31f7108f7cb4e89454f2693df912e.tar.xz
systemtap-steved-01133ccb0ee31f7108f7cb4e89454f2693df912e.zip
make user able to append extra trace data. The way of logging backtrace is also changed.
lket_trace_extra() and lket_backtrace() are introduced for these two purpose. I also modified lket.5.in for the backtrace changes
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx
index 676a4ec3..5ccbc26b 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -626,6 +626,7 @@ void print_format::print (ostream& o) const
string name = (string(print_to_stream ? "" : "s")
+ string("print")
+ string(print_with_format ? "f" : ""));
+ if(lket_trace_extra) name="lket_trace_extra";
o << name << "(";
if (print_with_format)
{
@@ -2203,6 +2204,7 @@ deep_copy_visitor::visit_print_format (print_format* e)
n->tok = e->tok;
n->print_with_format = e->print_with_format;
n->print_to_stream = e->print_to_stream;
+ n->lket_trace_extra = e->lket_trace_extra;
n->raw_components = e->raw_components;
n->components = e->components;
for (unsigned i = 0; i < e->args.size(); ++i)