summaryrefslogtreecommitdiffstats
path: root/tapset/logging.stp
Commit message (Collapse)AuthorAgeFilesLines
* Revoke unprivileged from ftrace()Josh Stone2010-03-111-4/+2
| | | | | | | | It's writing into a system-wide resource, so it shouldn't be permitted to just anyone. Also remove the printk fallback that isn't actually functional. * tapset/logging.stp (ftrace): Remove unprivileged and printk.
* PR10700 Add newline after log() message.Mark Wielaard2009-09-281-1/+1
| | | | * tapset/logging.stp (log): Use _stp_printf "%s\n".
* PR10390: ftrace() tapset functionFrank Ch. Eigler2009-09-231-4/+59
| | | | | | | | | | | * tapset/logging.stp (ftrace): New function. (*): Add kerneldoc to other functions. * doc/SystemTap_Tapset_Reference/tapsets.tmpl: Process logging.stp. * stapfuncs.3stap.in: Remove "LOGGING" section, now redundant. * runtime/autoconf-trace-printk.c: New autoconf test. * buildrun.cxx (compile_pass): Build it. * NEWS: Mention it. * testsuite/buildok/logging.stp: Test it.
* Disallow embedded C in tapset functions ifor unprivileged users unless ↵Dave Brolley2009-06-251-4/+4
| | | | tagged by /* unprivileged */.
* 2007-11-12 Martin Hunt <hunt@redhat.com>hunt2007-11-121-7/+2
| | | | | | * logging.stp (print_char): Remove. Now implemented by stap. (log): Add a comment that it is deprecated.
* 2007-04-10 Martin Hunt <hunt@redhat.com>hunt2007-04-101-0/+5
| | | | | | * logging.stp (print_char): New function. * aux_syscalls.stp: Clean up network includes.
* 2006-09-18 Martin Hunt <hunt@redhat.com>hunt2006-09-181-0/+5
| | | | | * logging.stp (stp_print_binary): New function. * string.stp: Fix docs.
* Fix comment.hunt2006-04-171-2/+1
|
* Revert.hunt2006-04-171-1/+1
|
* 2006-04-17 Martin Hunt <hunt@redhat.com>hunt2006-04-171-2/+3
| | | | * endian.stp (set_endian): New function.
* 2006-01-24 Frank Ch. Eigler <fche@elastic.org>fche2006-01-241-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR 2060 etc. * tapsets.cxx (visit_target_symbol): Tolerate failed resolution by letting target_symbol instance pass through to optimizer and type checker. * elaborate.cxx (semantic_pass_optimize): New family of functions and associated visitor classes. (visit_for_loop): Tolerate absent init/incr clauses. (semantic_pass): Invoke unless unoptimized (-u) option given. * main.cxx, session.h: Add support for flag. * staptree.cxx (visit_for_loop): Tolerate absent init/incr clauses. (traversing_visitor::visit_arrayindex): Visit the index expressions. (functioncall_traversing_visitor): New class. (varuse_tracking_visitor): New class. * staptree.h: Corresponding changes. * parse.cxx (parse_for_loop): Represent absent init/incr expressions with null statement pointer instead of optimized-out dummy numbers. * stap.1.in: Document optimization. * testsuite/{semko,transko}/*.stp: Added "-u" or other code to many tests to check bad code without optimizer elision. * testsuite/semok/optimize.stp: New test. * elaborate.cxx (unresolved, invalid, mismatch): Standardize error message wording. * stapfuncs.5.in: Tweak print/printf docs. * tapset/logging.stp: Remove redundant "print" auxiliary function, since it's a translator built-in. * testsuite/transok/five.stp: Extend test. * translate.cxx (emit_symbol_data): Put symbol table into a separate temporary header file, to make "-p3" output easier on the eyes. * buildrun.cxx (compile_pass): Eliminate test-mode support throughout. * main.cxx, session.h, translate.cxx: Ditto. * main.cxx (main): For last-pass=2 runs, print post-optimization ASTs.
* 2006-01-15 Frank Ch. Eigler <fche@elastic.org>fche2006-01-151-0/+1
| | | | | | | | PR 2148 * translate.cxx (MAXERRORS): Actually the max should be 0, so first error aborts session. * Revert last stp_exit change.
* 2006-01-10 Martin Hunt <hunt@redhat.com>hunt2006-01-101-1/+0
| | | | | * logging.stp: Don't set STAP_SESSION_STOPPING. That it done in _stp_exit().
* 2006-01-03 Frank Ch. Eigler <fche@redhat.com>fche2006-01-031-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR 1144, 1379 * tapsets.cxx (emit_probe_prologue, _epilogue): New routines. Call from existing derived_probe spots. Implement soft errors in epilogue code. Implement reentrancy detection in prologue code. (dwarf_derived_probe::emit_deregistration): Add kprobes layer "nmissed" to skipped_count. * translate.cxx (varlock): Use nsleep(TRYLOCKDELAY) in lock contention loop. (emit_module_exit): Report number of soft errors and skipped probes. (emit_function, _probe): Add __restrict__ marker to context pointer. (translate_pass): Define new MAXTRYLOCK, TRYLOCKDELAY, MAXERRORS, MAXSKIPPED parameters. * tapset/logging.stp (error): Don't stp_error, just set context state. * stap.1.in, stapfuncs.5.in: Document soft errors. * elaborate.h: Corresponding changes. 2006-01-03 Frank Ch. Eigler <fche@redhat.com> * io.c (_stp_softerror): New function. 2006-01-03 Frank Ch. Eigler <fche@redhat.com> * systemtap.base/timers.exp: Extend the test run duration. Accept skipped probe warnings at shutdown.
* Stop additional systemtap probes from collecting data when exit()wcohen2005-12-121-0/+1
| | | | occurs.
* 2005-11-18 Martin Hunt <hunt@redhat.com>hunt2005-11-181-4/+0
| | | | | | | | | | | | | | | | | | | | | | | PR 1837 * testsuite/buildko/one.stp: Replace printk. * testsuite/buildok/one.stp: Ditto. * testsuite/buildok/two.stp: Ditto. * testsuite/semko/fifteen.stp: Ditto. * testsuite/semko/fourteen.stp: Ditto. * testsuite/semko/thirteen.stp: Ditto. * testsuite/transok/eight.stp: Ditto. * testsuite/transok/seven.stp: Ditto. * testsuite/transok/six.stp: Ditto. * tapsets.cxx (*::emit_probe_entries): Replace printk() calls with _stp_warn(). * stap.1.in: Replace printk with printf in example. * stapfuncs.5.in: Remove docs for printk and add for print and printf. * tapset/logging.stp (printk): Deleted.
* gpl headersfche2005-09-281-1/+7
|
* 2005-09-04 Martin Hunt <hunt@redhat.com>hunt2005-09-041-4/+4
| | | | | | | * testsuite/buildok/context_test.stp: New test. * tapset/logging.stp (log): Call _stp_printf(). * stapfuncs.5.in: Add contextinfo funcs. * tapset/context.stp: Minor cleanup.
* 2005-09-03 Frank Ch. Eigler <fche@elastic.org>fche2005-09-031-22/+6
| | | | | | | | | | PR 1292, by popular request. * parse.cxx (parse_functiondecl): Allow optional value/param type declarations. * stap.1.in: Document this. * tapset/*.stp: Convert most functions accordingly. * testsuite/parseok/twelve.stp, semok/seven.stp, semko/twenty.stp: Test this.
* 2005-09-02 Martin Hunt <hunt@redhat.com>hunt2005-09-021-5/+2
| | | | * tapset/logging.stp: Make log() be same as print().
* 2005-09-02 Frank Ch. Eigler <fche@elastic.org>fche2005-09-021-0/+47
* tapset/*.stp: Renamed several files to simplify names.