summaryrefslogtreecommitdiffstats
path: root/stapfuncs.5.in
Commit message (Collapse)AuthorAgeFilesLines
* Move man pages from man5 to man3 (3stap).Will Cohen2009-03-241-668/+0
|
* tapset/s390/registers.stp: fixed a typo, updated stapfuncs(5)Jim Keniston2008-11-191-2/+5
|
* Functions for kdev_t information: MAJOR, MINOR, MKDEV, and usrdev2kerndev.William Cohen2008-06-201-0/+14
|
* Add user_mode function to tapset and document.William Cohen2008-06-121-0/+3
|
* Fix PR 6582: verify CONTEXT->regs in [u_]register()Jim Keniston2008-05-291-1/+6
|
* powerpc register+arg accessAnanth N Mavinakayanahalli2008-05-221-0/+8
|
* Added CPU REGISTERS and NUMBERED FUNCTION ARGUMENTS sections toJim Keniston2008-05-061-0/+104
| | | | stapfuncs.5.in.
* 2008-03-21 Eugene Teo <eugeneteo@kernel.sg>eteo2008-03-211-0/+54
| | | | | | | | | | | | PR 5528 * tapset/conversions.stp (user_string_n, user_string_n2, user_string_n_warn, user_string_n_quoted, user_short, user_short_warn, user_int, user_int_warn, user_long, user_long_warn, user_char, user_char_warn): New user_* functions. * stapfuncs.5.in: Documented the new functions. * testsuite/systemtap.stress/conversions.stp: Test new functions. * testsuite/buildok/conversions.stp: Test new functions. * testsuite/buildok/conversions-embedded.stp: Test new functions.
* 2008-01-16 Eugene Teo <eteo@redhat.com>eteo2008-01-161-0/+23
| | | | | | | | | | | | | | | | | | | | | | * stapfuncs.5.in: Document signal.stp tapset functions. 2008-01-16 Eugene Teo <eteo@redhat.com> * signal.stp (get_sa_flags, get_sa_handler): New functions to return addresses of sa_flags and sa_handler of struct k_sigaction. (sigset_mask_str): New function. Returns a string containing the set of signals to be blocked when executing the signal handler. (is_sig_blocked): New function. Checks task_struct->blocked signal mask for signals that are currently blocked. (signal_str): New function. Translates a signal number. (sa_flags_str): New function. Translates the sa_flags. (sa_handler_str): New function. Returns the signal action or handler associated to the signal. 2008-01-16 Eugene Teo <eteo@redhat.com> * buildok/signal-embedded.stp: Add all new embedded C functions in signal.
* 2007-11-14 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-11-141-3/+3
| | | | | * stapfuncs.5.in (tokenize): Change NULL to blank to avoid misunderstanding.
* 2007-11-12 Martin Hunt <hunt@redhat.com>hunt2007-11-121-15/+5
| | | | | | | * stap.1.in: Replaced references to the log() function. * stapex.5.in: Ditto. * stapfuncs.5.in: Ditto. ALso remove print and printf. They are documented in stap.1.in.
* Corrected tokenize() description. Added task_* functions.mmason2007-10-181-6/+80
|
* 2007-10-15 Zhaolei <zhaolei@cn.fujitsu.com>zhaolei2007-10-151-0/+6
| | | | | | | | | | | From Cai Fei <caifei@cn.fujitsu.com> * conversions.stp: Add a function kernel_string_n for copy non-0-terminated string with fixed length from kernel space at given address. * stapfuncs.5.in: Add kernel_string_n. * nfsd.stp: Using kernel_string_n to copy non-0-terminated string with fixed length from kernel space at given address. * nfs_proc.stp: Ditto.
* rhbz 319611: htonl and friends in tapsetfche2007-10-051-0/+23
| | | | | | | | | | 2007-10-04 Frank Ch. Eigler <fche@elastic.org> * stapfuncs.5.in: Document inet.stp tapset functions. * buildok/inet-embedded.stp: Test inet.stp functions. * inet.stp: New tapset for htonl and friends.
* 2007-08-16 Frank Ch. Eigler <fche@elastic.org>fche2007-08-171-0/+9
| | | | | | | | | PR 1315. * target_set.stp: New tapset file. * stapfuncs.5.in: Document new target_set tapset. * buildok/fortyfive.stp: New test.
* 2007-08-15 David Smith <dsmith@redhat.com>dsmith2007-08-151-2/+2
| | | | | | | | | * systemtap.spec.in: Updated %pre to latest Fedora group creation guidelines. * stap.1.in: Changed '/usr' to '@prefix@' so the values will be updated correctly. * stapfunc.5.in: Ditto.
* * kernel_{string,long,...,char} protected accessor functionsfche2007-02-061-5/+27
| | | | | | | | | | | | | | | | | | | | * test suites for all of 'em too * even documentation * mm, donuts 2007-02-06 Frank Ch. Eigler <fche@elastic.org> * stapfuncs.5.in: Add docs for kernel_{long,int,short,char} and some user_string* variants. 2007-02-06 Frank Ch. Eigler <fche@elastic.org> * conversions.stp (kernel_long/int/short/char): New functions. 2007-02-06 Frank Ch. Eigler <fche@elastic.org> * buildok/conversions.stp: Build-test all conversions.stp functions. * systemtap.stress/conversions.*: New test.
* Added stapprobes.socket(5) man page and updates to stapprobes(5) and ↵mmason2007-01-241-0/+50
| | | | stapfuncs(5).
* 2006-09-26 David Smith <dsmith@redhat.com>dsmith2006-09-261-3/+3
| | | | | | | | | | | | | | | | | | | | | * .cvsignore: Changed 'stpd' reference to 'staprun'. * INTERNALS: Ditto. * buildrun.cxx (run_pass): Ditto. * lket.5.in: Ditto. * stap.1.in: Ditto. * stapruncs.5.in: Ditto. * examples/small_demos/demo_script.txt: Ditto. * examples/small_demos/sys.stp: Ditto. * systemtap.spec.in: Created a new subpackage, "systemtap-runtime", that contains staprun. * Makefile.am: Renamed 'stpd' to 'staprun' and moved it to $(bindir). * Makefile.in: Regenerated from Makefile.am. * configure.ac: Incremented version number. * configure: Regenerated from configure.ac.
* 2006-09-20 Josh Stone <joshua.i.stone@intel.com>jistone2006-09-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | PR 3233 ./ * stapfuncs.5.in: Document new gettimeofday_ns. runtime/ * time.c (stp_time_t): Use ns for the base time, and freq is now kHz. (__stp_estimate_cpufreq): Compute kHz instead of MHz. (__stp_time_timer_callback, __stp_init_time): Compute base in ns. (__stp_time_cpufreq_callback): Record kHz instead of MHz. (_stp_init_time): Record kHz, and disable preemption to avoid a race in the cpufreq notifier. (_stp_gettimeofday_ns): Converted from _stp_gettimeofday_us. tapset/ * timestamp.stp (gettimeofday_ns): New function (gettimeofday_us, gettimeofday_ms, gettimeofday_s): Use gettimeofday_ns as the base unit. testsuite/ * buildok/timestamp.stp: add gettimeofday_ns test.
* Systemtap perfmon support to access the processors perfmon hardware.wcohen2006-09-121-0/+7
|
* 2006-08-22 Josh Stone <joshua.i.stone@intel.com>jistone2006-08-221-1/+1
| | | | | | | | PR 3094 From Eugeniy Meshcheryakov <eugen@debian.org>: * stap.1.in: In groff, '-' produces a Unicode hyphen. Use '\-' where a plain-old minus sign is desired, e.g., code examples. * lket.5.in, stapex.5.in, stapfuncs.5.in, stapprobes.5.in: ditto
* 2006-08-08 Eugene Teo <eteo@redhat.com>eteo2006-08-081-0/+3
| | | | | | * tapset/context.stp (probemod): New function. * stapfuncs.5.in: Document it. * testsuite/buildok/probemod.stp: Test it.
* * add ctime() documentationfche2006-08-081-1/+8
|
* i2006-07-17 David Smith <dsmith@redhat.com>dsmith2006-07-171-4/+0
| | | | | * stapfuncs.5.in: Removed retval function description, since it has been removed.
* add addr_to_node() from Jose Santosguanglei2006-07-041-0/+5
|
* 2006-06-05 David Smith <dsmith@redhat.com>dsmith2006-06-051-0/+1
| | | | | | | | | | | | | | | | | | | | | * tapsets.cxx (dwflpp::express_as_string): New function. Extracted from dwflpp::literal_stmt_for_local() so that dwflpp::literal_stmt_for_return() could also call it. (dwflpp::literal_stmt_for_local): Portion extracted to create dwflpp::express_as_string(). (dwflpp::literal_stmt_for_return): New function. Adds support for new symbolic access ("$return") to return value in .return probes. Fixes PR 1132. (target_variable_flavour_calculating_visitor::visit_target_symbol): Calls dwflpp::literal_stmt_for_return() when in a return probe and the variable name is "$return". (dwarf_var_expanding_copy_visitor::visit_target_symbol): Ditto. * stapfuncs.5.in: Noted that the retval() function is deprecated. * stapprobes.5.in: Corrected the name of the return value variable. * tapset/return.stp: Marked the retval() function as deprecated. * testsuite/semko/return01.stp: Added new test. * testsuite/semko/return02.stp: Ditto.
* 2006-05-16 David Smith <dsmith@redhat.com>dsmith2006-05-161-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * parse.cxx (parser::parser): Added initializer for 'context' member variable. (tt2str): Added support for new tok_keyword type. (operator <<): Ignores keyword content when outputting error message. (lexer::scan): Recognizes keywords, such as 'probe', 'global', 'function', etc. and classifies them as type 'tok_keyword'. This causes keywords to become reserved so they cannot be used for function names, variable names, etc. (parser::parse): Changed tok_identifier to tok_keyword when looking for "probe", "global", or "function". Also sets context member variable which remembers if we're in probe, global, function, or embedded context. (parser::parse_probe, parser::parse_statement) (parser::parse_global, parser::parse_functiondecl) (parser::parse_if_statement, parser::parse_delete_statement) (parser::parse_break_statement, parser::parse_continue_statement) (parser::parse_for_loop, parser::parse_while_loop) (parser::parse_foreach_loop, parser::parse_array_in): Looks for tok_keyword instead of tok_identifier. (parser::parse_probe_point): Allows keywords as part of a probe name, since "return" and "function" are keywords. (parser::parse_return_statement): Looks for tok_keyword instead of tok_identifier. Make sure we're in function context. (parser::parse_next_statement): Looks for tok_keyword instead of tok_identifier. Make sure we're in probe context. * parse.h: Added parse_context enum. Added 'tok_keyword' to token_type enum. Added parse_context 'context' member variable to parser class. * stap.1.in: Because the string() function has been removed, the 'string()' function reference has been changed to a 'sprint()' function reference. * stapex.5.in: Ditto. * stapfuncs.5.in: The description of the string() and hexstring() functions has been removed. * testsuite/buildok/context_test.stp: Calls to the string() function were converted to sprint() function calls. * testsuite/buildok/fifteen.stp: Ditto. * testsuite/buildok/nineteen.stp: Ditto. * testsuite/buildok/process_test.stp: Ditto. * testsuite/buildok/task_test.stp: Ditto. * testsuite/buildok/timestamp.stp: Ditto. * testsuite/buildok/twentyone.stp: Ditto. * testsuite/semok/args.stp: Ditto. * testsuite/semok/seven.stp: Ditto. * testsuite/buildok/fourteen.stp: Calls to log()/string() were converted to a call to printf(). * testsuite/buildok/sixteen.stp: Ditto. * testsuite/buildok/thirteen.stp: Ditto. * testsuite/buildok/twentythree.stp: Ditto. * testsuite/buildok/twentytwo.stp: Ditto. * testsuite/buildok/seven.stp: Calls to the string() function were converted to sprint() calls. Calls to the hexstring() function were converted to sprintf() calls. * testsuite/semok/eleven.stp: Ditto. * testsuite/buildok/seventeen.stp: Calls to log()/hexstring() were converted to a call to printf(). * testsuite/semko/nineteen.stp: Ditto. * testsuite/parseok/three.stp: Because keywords are reserved, a variable named 'string' was renamed to 'str'. * testsuite/parseok/two.stp: Because keywords are reserved, a variable named 'global' was renamed to 'gbl'. * testsuite/transko/two.stp: Because the parser now checks for 'next' and 'return' statement context, a 'next' statement was removed from a function and a 'return' statement was removed from a probe.
* 2006-05-15 Frank Ch. Eigler <fche@elastic.org>fche2006-05-161-3/+3
| | | | | | | | | * tapsets.cxx, translator.cxx (*): Designate more emitted functions as static. * translator.cxx (visit_print_format): Correct regression regression from two weeks ago. * stapfuncs.5.in: Tweak wording. Deprecate returnval() in favour of retval().
* 2006-05-12 Frank Ch. Eigler <fche@elastic.org>fche2006-05-121-6/+13
| | | | * stapfuncs.5.in: Clarify backtrace-related functions.
* spelling correctionsjistone2006-05-091-1/+1
|
* 2006-03-06 Martin Hunt <hunt@redhat.com>hunt2006-03-061-0/+6
| | | | | * buildrun.cxx (run_pass): Add "-u username". * stapfuncs.5.in: Document system().
* 2006-03-03 Frank Ch. Eigler <fche@elastic.org>fche2006-03-031-0/+17
| | | | | | * tapset/indent.stp, indent-default.stp: New little tapset. * stapfuncs.5.in: Document it. * testsuite/buildok/indent.stp: Build it.
* 2006-02-22 Frank Ch. Eigler <fche@elastic.org>fche2006-02-221-0/+3
| | | | | | | | | * stapfuncs.5.in: Document get_cycles(). * testsuite/buildok/timestamp.stp: Build it and its friends. 2006-02-22 Frank Ch. Eigler <fche@elastic.org> * timestamp.stp (get_cycles): New function.
* 2006-02-17 Frank Ch. Eigler <fche@elastic.org>fche2006-02-171-0/+3
| | | | | | * stapfuncs.5.in (cpu): Document contextinfo function. * context.stp (cpu): Clone undocumented cpuid() function.
* add tid docsfche2006-02-171-2/+5
|
* wording tweaksfche2006-02-151-3/+3
|
* 2006-02-14 Frank Ch. Eigler <fche@elastic.org>fche2006-02-141-0/+52
| | | | | | | | | | | | * stapfuncs.5.in: Document new queue_stats tapset. * elaborate.cxx (*): Put "while:" clarification messages before a thrown semantic error. * staptree.cxx (print_format::string_to_components): Correct parse of "%%" formatting element. * queue_stats.stp: New tapset. * systemtap.samples/queue_demo.*: New test.
* whitespace tweakfche2006-02-141-29/+2
|
* 2006-02-01 Martin Hunt <hunt@redhat.com>hunt2006-02-011-0/+12
| | | | | | * stapfuncs.5.in: Document is_return(), returnval() and probefunc(). * testsuite/buildok/syscall.stp: Basic syscall test.
* 2006-01-24 Frank Ch. Eigler <fche@elastic.org>fche2006-01-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-03 Frank Ch. Eigler <fche@redhat.com>fche2006-01-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 2005-11-18 Martin Hunt <hunt@redhat.com>hunt2005-11-181-7/+8
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Corrected substr documentation.kevinrs2005-10-121-2/+2
|
* stapfuncs.5.inkevinrs2005-09-291-2/+6
| | | | added documentation for new string function 'isinstr()'
* tapset/mask_string.stp:kevinrs2005-09-281-0/+10
| | | | | | | | | | | | wrote a few aux functions that can be used by tapsets to derive a bitmask symbolic string from a given number tapset/string.stp: strlen: Returns the length of the string argument substr: Returns a substring starting at start/ending at stop stapfuncs.5.in: Added a STRING category with aforementioned functions tapset/system_calls.stp Exported more variable for more system calls
* 2005-09-26 Frank Ch. Eigler <fche@elastic.org>fche2005-09-271-2/+3
| | | | | * stapfuncs.5.in: Extend errno_str verbiage. * tapset/errno.stp: Canonicalize script code slightly.
* CV: ----------------------------------------------------------------------kevinrs2005-09-261-0/+6
|
* 2005-09-06 Frank Ch. Eigler <fche@elastic.org>fche2005-09-071-0/+4
| | | | | | | | * stap.1.in: Clarify absence of short-circuiting in && and ||. * translate.cxx (emit_function): Improve "array locals" message. * tapset/timestamp.stp: Add gettimeofday_us function. Correct arithmetic typing in other functions. * stapfuncs.5.in: Document new function.
* 2005-09-06 Martin Hunt <hunt@redhat.com>hunt2005-09-061-0/+4
| | | | | | | | | | | | * tapset/context.stp: Add function target(). * stapfuncs.5.in (target): Document it. * elaborate.h (struct systemtap_session): Add cmd and target_pid to the struct. * main.cxx (usage): Add secriptions of "-c" and "-x" options. (main): Set s.cmd and s.target_pid. * buildrun.cxx (stringify): Copy this utility func here too. (run_pass): Add new options to set cmd and pid to the stpd command line.