From cc9ee6059e4d3fb51c0695a8a57f75eb988a1786 Mon Sep 17 00:00:00 2001 From: fche Date: Mon, 5 Sep 2005 22:00:43 +0000 Subject: 2005-09-05 Frank Ch. Eigler PR 1172. * staptree.h, staptree.cxx: Make all ::print*(), operator<< functions take const staptree objects. (literal_string::print): \-prefix double-quotes. * translate.cxx (emit_common_header): Add context probe_point field. Switch to atomic_t busy flags. (emit_module_exit): Use atomic operations for busy flag. (visit_*): Use lex_cast_qstring for last_stmt strings. * tapsets.cxx (lex_cast_quoted): \-prefix double-quotes too. (*::emit_probe_entries): Populate probe_point. Use atomic operations for busy flag. * tapset/context.stp (pp): New function. * stapfuncs.5.in: Document it. * testsuite/buildok/context_test.stp: Test it. --- tapset/context.stp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tapset') diff --git a/tapset/context.stp b/tapset/context.stp index 4d801956..3e776547 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -88,3 +88,7 @@ function print_stack(stk:string) %{ tok = strsep(&ptr, " "); } %} + +function pp:string () %{ + strlcpy (THIS->__retvalue, CONTEXT->probe_point, MAXSTRINGLEN); +%} -- cgit