summaryrefslogtreecommitdiffstats
path: root/stap.1.in
Commit message (Collapse)AuthorAgeFilesLines
* PR11343: backward compatibility option/conditionalFrank Ch. Eigler2010-04-081-0/+6
| | | | | | | | * main.cxx: Add "--compatible=VERSION" option. * session.h (compatible): Store it. * parse.cxx (eval_pp_conditional): Look at it as %( systemtap_v CMP VALUE ... %) * stap.1.in: Document it. * testsuite/parseko/preprocess17.stp, parseok/twenty.stp: Test it.
* PR11370: Add multi-header @castsJosh Stone2010-03-101-0/+3
| | | | | | | | | | Sometimes you need multiple headers to fully describe a type, so we now permit them to be listed together, e.g. "kernel<foo.h><bar.h>". * buildrun.cxx (make_typequery): Split the input string into a vector. (make_typequery_kmod, make_typequery_umod): Use the vector of headers. * testsuite/semok/cast.stp: Add a multi-header case. * stap.1.in, NEWS: Document it.
* docs: clarify that only -> is used for $var dereferencing, not .Frank Ch. Eigler2010-03-081-1/+13
|
* PR11004: try / catch error-handling script syntaxFrank Ch. Eigler2010-03-031-1/+10
| | | | | | | | | | | | | | | * parse.h (try_block): New class. Update basic visitors. * staptree.cxx: Implement basic visitors. * parse.cxx (expect_kw): Fix to actually look for keywords. (parse_try_block): New function. (lexer ctor): Designate 'try' and 'catch' as keywords. * elaborate.cxx (dead_assignment_remover, dead_statmtexpr_remover): Optimize. (other visitors): Implement. * translate.cxx (c_unparser): Implement via super-handy __local__ labels. (emit_probe, emit_function): Make outer out: label also __local__. * testsuite/buildok/fortyone.stp, semko/fortynine.stp, systemtap.base/trycatch.exp: Test it. * NEWS, doc/langref.txt, stap.1.in: Document it.
* Fixed pr 10690 by adding '.maxsize(NNN)' procfs read probe parameter.David Smith2010-02-251-1/+8
| | | | | | | | | | | | | | | | | | | | | | * tapset-procfs.cxx (procfs_derived_probe::procfs_derived_probe): Added 'maxsize_val' initialization. (procfs_derived_probe::join_group): Updated '_stp_procfs_data' definition and added STP_PROCFS_BUFSIZE. (procfs_derived_probe_group::emit_module_decls): Emits structure to contain procfs file buffers. Initializes '.bufsize' structure member. (procfs_var_expanding_visitor::visit_target_symbol): Uses 'bufsize' for maximum buffer size instead of using MAXSTRINGLEN. (procfs_builder::build): Looks for '.maxsize(NNN)' parameter. (register_tapset_procfs): Added '.maxsize(NNN)' parameter binding. * runtime/procfs-probes.c (stap_procfs_probe): Converted 'buffer' to a pointer and added 'bufsize' member. * testsuite/semko/procfs13.stp: New testcase. * testsuite/semko/procfs14.stp: Ditto. * testsuite/semko/procfs15.stp: Ditto. * testsuite/systemtap.base/procfs_maxsize.exp: Ditto. * testsuite/systemtap.base/procfs.exp: Minor fix. * stapprobes.3stap.in: Added '.maxsize(NNN)' documentation. * stap.1.in: Added STP_PROCFS_BUFSIZE documentation.
* PR11224: Documentation for module argumentsCharley Wang2010-02-251-3/+12
|
* Added STP_MAXMEMORY documentation.David Smith2010-01-111-0/+7
| | | | * stap.1.in: Added STP_MAXMEMORY documentation.
* Fix extra blank lines in man page output.David Smith2010-01-111-30/+30
| | | | * stap.1.in: Correct comment syntax to avoid outputting blank lines.
* Manual cleanupWenji Huang2010-01-061-80/+76
| | | | Fix typos and comment unused text.
* PR 10889: Reorganize client/server man pages. Document --unprivileged.Dave Brolley2009-12-171-2/+14
|
* PR10702: preprocessor conditional for kernel CONFIG_fooFrank Ch. Eigler2009-10-081-1/+10
| | | | | | | | * session.h (kernel_config[]): New session field. * main.cxx (parse_kernel_config): Populate it. * parse.cxx (eval_comparison): Use it. * testsuite/buildok/utrace.stp, testsuite/parseok/kconfig.stp: New tests. * NEWS, stap.1.in, doc/langref.tex: Mention it.
* docs: add abnormal termination section to PROCESSINGFrank Ch. Eigler2009-09-151-2/+11
|
* Support || and && in preprocessor's conditions.Przemyslaw Pawelczyk2009-08-281-1/+4
| | | | | | | | | | * parse.cxx (parser::scan_pp): Add || and &&. * stap.1.in: Document || and && in PREPROCESSING. * testsuite/parseok/twenty.stp: Test case. * testsuite/parseko/preprocess14.stp: Ditto. * testsuite/parseko/preprocess15.stp: Ditto. Signed-off-by: Josh Stone <jistone@redhat.com>
* PR4186 cont'd: option #2: standardize on kernel ARCH/SUBARCH throughoutFrank Ch. Eigler2009-08-251-2/+3
| | | | | | | | * main.cxx (main): Perform equivalent sed by hand on uname()->machine. * stap.1.in: Clarify -a ARCH slightly. * tapsets.cxx (validate_module_elf): Accept "arm*"for EM_ARM. * tapset/**, testsuite/**: Removed/collapsed "i386"/"i686" branches, renamed "ppc64"->"powerpc" and "s390x"->"s390".
* PR4186: cross-architecture probe buildingFrank Ch. Eigler2009-08-241-0/+4
| | | | | | | | | | | * main.cxx (main): Add 'a:' and 'B:' options. * session.h (kbuildflags): New place to store -B args. * testsuite/systemtap.base/cmd_parse.exp: Test them lightly. * buildrun.cxx (run_make_cmd): Use "--no-print-directory" rather than ">/dev/null" in kbuild invocations. Pass '-a' and '-B' flags along. * hash.cxx (find_script_hash): Add them. * NEWS, stap.1.in: Mention this.
* PR10518: context shrinkage with function recursion analysis feeding MAXNESTINGFrank Ch. Eigler2009-08-181-1/+3
| | | | | | | | * translate.cxx (emit_common_header, translate_pass): Use new recursion_info visitor to calculate appropriate MAXNESTING value for scripts with or without recursion. * tapsets.cxx (common_probe_entryfn_prologue): Initialize c->nesting = -1. * stap.1.in: Clarify MAXNESTING value.
* PR10507: tweak heuristics for stap_uprobes[] allocationFrank Ch. Eigler2009-08-121-3/+3
| | | | | | * tapsets.cxx (uprobes::emit_module_decls): Compute MAXUPROBES with x-treme kl3v3rn3ss. * stap.1.in: Clarify MAXUPROBES.
* PR10459. Disable all warning messages on -w.Mark Wielaard2009-07-301-1/+1
| | | | | | | | | | | | | * stap.1.in: Document that -w disables all warning messages. * dwflpp.cxx (get_module_dwarf): Only output warning when session suppress_warnings is not set. * translate.cxx (dump_unwindsyms): Likewise. (emit_symbol_data_done): Likewise. * tapsets.cxx (query_module_symtab): Likewise. (read_from_elf_file): Take systemtap_session, check suppress_warnings before emitting warning. (read_from_text_file): Likewise. (get_symtab): Call read_from_elf_file and read_from_text_file with session.
* Remove -O[0123s] gcc optimization flags for gcc pass 4 speedups again.Mark Wielaard2009-07-141-8/+0
| | | | | | | | | | | | | We cannot guarantee that (un)optimized code compiles and/or generates fully functional code, so don't tempt the user to try it out. * session.h (struct systemtap_session): Remove gcc_flags string field. * hash.cxx (find_script_hash): Don't add gcc_flags. * main.cxx (usage): Remove -O[0123s] documentation. (main): Don't use gcc_flags. * buildrun.cxx (compile_pass): Don't add gcc_flags to EXTRA_CFLAGS. * stap1.in: Remove -O[0123s] documentation. * testsuite/systemtap.base/cache.exp: Remove tests for -O[0123s].
* Make kernel opt-level the default again.Mark Wielaard2009-07-141-1/+2
| | | | | | | * main.cxx (main): Default gcc_flags to kernel opt-level (empty). * buildrun.cxx (compile_pass): Add -freorder-blocks back, document choices. * stap.1.in: Document new default opt-level. * testsuite/systemtap.base/cache.exp: Adjust for new caching results.
* Add -O[0123s] gcc optimization flags for gcc pass 4 speedup.Mark Wielaard2009-07-111-0/+7
| | | | | | | | | | * session.h (struct systemtap_session): Add gcc_flags string field. * main.cxx (usage): Document -O[0123s]. (main): Default gcc_flags to -O0. Add O:: to getopt_long. Handle case 'O' to set gcc_flags. * buildrun.cxx (compile_pass): Add gcc_flags to EXTRA_CFLAGS. * stap1.in: Add -O[0123s] documentation. * testsuite/systemtap.base/cache.exp: Add tests for -O[0123s].
* Fixed few typos in various man pages found by a spellchecker.Petr Muller2009-05-151-1/+1
|
* PR10099: Extend %M directive to support hexdumping large buffersWenji Huang2009-04-261-1/+1
| | | | | | | | | | This patch will make %M directive dump the variable width buffer in hex format instead of returning uint64_t number as before. * runtime/vsprintf.c: Modify %M directive. * stap.1.in: Update description. * testsuite/systemtap.printf/memory1.stp: Add test case.
* PR 9821: Use genuine strftime in staprun/stapioMasami Hiramatsu2009-04-221-2/+1
| | | | | | | | | | * Makefile.am: Add -fno-builtin-strftime to stapio_CFLAGS. * Makefile.in: Ditto. * runtime/staprun/common.c (stap_strfloctime): Use strftime(3). (parse_args): Remove strftime format limitation message. * main.cxx (usage): Ditto. * stap.1.in: Ditto. * staprun.8.in: Ditto.
* Document @cast-with-headersJosh Stone2009-04-211-0/+9
|
* PR10082: add environment variable to pass -r RELEASE/PATH optionKent Sebastian2009-04-171-2/+7
|
* Typo and whitespace.Roland McGrath2009-03-241-33/+33
|
* Move man pages from man5 to man3 (3stap).Will Cohen2009-03-241-7/+7
|
* Document @cast module search pathsJosh Stone2009-03-201-4/+6
|
* PR9967: don't count -DINTERRUPTIBLE=1 reentrancy against MAXSKIPPEDFrank Ch. Eigler2009-03-201-1/+2
| | | | | | | * tapsets.cxx (common_probe_entryfn_prologue): Become conditional on !INTERRUPTIBLE. * translate.cxx (emit_module_exit): Still print skipped_count_reentrant with -t, even if skipped_count was zero.
* PR9821: staprun supports subset of strftime.Masami Hiramatsu2009-03-201-0/+2
| | | | | Add strftime subset format support for output file name to systemtap. This format will be evaluated when opening a new output file.
* PR6930: stap: supports on-file flight recorder optionsMasami Hiramatsu2009-03-201-3/+13
| | | | | | | Add on-file flight recorder options (the combination of -F and -o, and -S option) to stap command, and change manpages and NEWS. - Both of -F and -o is specified, stap passes -D option to staprun. - stap just passes -S option to staprun.
* PR 7071: Optional $context variables fixRajan Arora2009-03-111-0/+3
| | | | | | | | | | | | | | | | * tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol): Substitute erroneous target symbol with literal 0 if session level flag, skip_badvars is set. * session.h (struct systemtap_session): New flag: skip_badvars. * main.cxx: Command line argument --skip-badvars added. * stap.1.in: Entry for new option --skip-badvars. * NEWS: Added blurb for new option now available. * testsuite/semok/badvar.stp: Test case to check added functionality.
* Let -DINTERRUPTIBLE=0 mask interrupts in probesJosh Stone2009-03-091-0/+11
| | | | | | | | | | | | | | | Some time ago we loosened up the code for all probe types to allow interrupts during the handler. However, when probing something like kernel.trace("*"), you get a mix of probes in and out of the interrupt path, and it becomes much more common to have probes skipped due to interrupt reentrancy. The common_probe_entryfn_prologue and common_probe_entryfn_epilogue functions had an interruptible flag, but this was no longer used anywhere. I removed this flag, but then reused the logic to check an INTERRUPTIBLE macro instead. Now users can use -DINTERRUPTIBLE=0 to prevent interrupt reentrancy in their script, at the cost of a bit more overhead to toggle the interrupt mask.
* Fix a few typos in stap(1)Josh Stone2009-03-091-6/+7
|
* Add NEWS and manpage info about @cast()Josh Stone2009-02-181-0/+42
|
* Added %M info to stap.1.inElliott Baron2009-01-091-1/+4
|
* Spelling tweak in the manpageJosh Stone2009-01-071-1/+1
|
* clarify that "stap -L" lists script-level locals onlyFrank Ch. Eigler2008-12-111-1/+1
|
* fix documentation of default SYSTEMTAP_DEBUGINFO_PATHFrank Ch. Eigler2008-12-051-1/+1
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapFrank Ch. Eigler2008-12-051-7/+2
|\ | | | | | | | | * 'master' of ssh://sources.redhat.com/git/systemtap: PR7051: Remove broken printf %n directive support
| * PR7051: Remove broken printf %n directive supportroot2008-12-051-7/+2
| |
* | turn on elfutils-level debuginfo<->stripped-binary checksum matchingFrank Ch. Eigler2008-12-051-1/+1
|/ | | | | | This is necessary to detect mismatching debuginfo for user-space programs without build-id. We don't have run-time version assertions for user-space binaries.
* mergedFrank Ch. Eigler2008-12-031-1/+1
|\ | | | | | | | | | | * 'master' of ssh://sources.redhat.com/git/systemtap: PR7053: Add checking empty aggregate and default print where @count==0. Add man page entry for stap -B
| * Add man page entry for stap -BRajan Arora2008-12-021-0/+6
| |
* | PR5892: rename new -B /PATH to -r /PATH; merge functionalityFrank Ch. Eigler2008-12-031-1/+5
|/
* Accidentally removed some additons from another commit.Kent Sebastian2008-11-241-2/+9
|
* Added a little printf documentation.Kent Sebastian2008-11-241-25/+58
|
* uprobes: fix & document use of MAXUPROBESFrank Ch. Eigler2008-11-221-1/+9
|
* PR6925: --vp (per-pass verbosity) optionFrank Ch. Eigler2008-11-181-12/+15
|