summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Improved PR 11309 by fixing directory and file permissions.David Smith2010-03-091-2/+3
| | | | | * systemtap.spec: Fixed directory and file permissions on /usr/share/systemtap/runtime/uprobes and /var/log/stap-server.
* PR 11210 Eliminate man page collisionsWilliam Cohen2010-03-091-4/+4
| | | | | | | The various man pages for each systemtap probe and function are prepended with "probe::" and "function::" respectively to avoid collisions with other man3 pages with the same name. For example systemtap's strlen function was colliding with glibc's strlen function.
* Only use volatile for sdt.h arguments when needed.Stan Cox2010-03-091-55/+61
| | | | | sdt.h (VOLATILE_ARG): gcc 4.4.3 support for inline asm argument debug info means volatile is not needed.
* build: re-enable librpm checkingFrank Ch. Eigler2010-03-083-6/+19
| | | | | | * configure.ac: With AC_CHECK_LIB()'s four-parameter variant, the default AC_DEFINE etc. is removed, so restore the key parts by hand.
* typo 7754 -> 775Dave Brolley2010-03-081-1/+1
|
* PRs 11205, 11309: Specfile problems for stap-server:Dave Brolley2010-03-087-30/+33
| | | | | | | | - Use assigned gid/uid of 155/155 for stap-server. - Create stap-server group in main systemtap rpm. - Make uprobes runtime directory read/write/search by members of stap-server group in main systemtap rpm. - Keep stap-server log in %{_localstatedir}/log/stap-server/log
* PR 11338 (partial): Used '@defined()' in tty, scheduler, and vfs tapsets.David Smith2010-03-084-89/+39
| | | | | | | | | | * tapset/tty.stp: Used '@defined()' to remove kernel version checks. * tapset/scheduler.stp: Ditto. * tapset/vfs.stp: Used '@defined()' to remove kernel version checks. Also made several probe points optional instead of using kernel version checks to know when to include them. * testsuite/buildok/vfs_testcase.stp: Removed stap '-u' (unoptimized mode) switch, since '@defined()' doesn't work in unoptimized mode.
* docs: clarify that only -> is used for $var dereferencing, not .Frank Ch. Eigler2010-03-082-4/+22
|
* new sample: varwatchFrank Ch. Eigler2010-03-077-48/+77
|
* Move semko/nineteen.stp to semokJosh Stone2010-03-061-2/+1
| | | | | | | | | The *ko tests are for things that SHOULD fail, but semko/nineteen is a test that should pass but often doesn't (due to inline var trouble). It should be in semok to set the expectation properly. It does pass on F12 now, but if we want to silence the error for older gcc, setup_kfail is the right approach.
* PR11352: Assign tokens to all SDT-synthesized elementsJosh Stone2010-03-062-12/+20
| | | | | | | * tapsets.cxx (sdt_query::convert_probe): Fix a few missing tokens. (sdt_var_expanding_visitor::visit_target_symbol): Ditto. * translate.cxx (c_unparser::record_actions): Add a defensive check, which perhaps someday can be an assertion instead.
* PR11342: Ensure that last_stmt is always setJosh Stone2010-03-051-30/+45
| | | | | | | | | | | * translate.cxx (c_unparser::record_actions): Take a token to fill in last_stmt for MAXACTION errors. (c_unparser::*): Pass a token to record_actions. (c_unparser::visit_try_block): The try/catch blocks are also basic blocks, so they should flush record_actions when done. (c_unparser_assignment::c_assignop): Set last_stmt for /= and %=. (c_unparser::visit_foreach_loop): Set last_stmt for agg. overflow. (c_unparser::visit_print_format): Set last_stmt for %m errors.
* Make sure synthesized var display is tokenfulJosh Stone2010-03-051-11/+14
| | | | * elaborate.cxx (add_global_var_display): Assign a few token*s.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDavid Smith2010-03-054-0/+24
|\
| * Update example indices.William Cohen2010-03-054-0/+24
| |
* | Improved 'mm_struct' casting for RHEL5.David Smith2010-03-052-11/+11
|/ | | | | | | | * tapset/context.stp: Improved casting to 'mm_struct' on RHEL5 by changing the header file referenced from '<linux/mm_types.h>' to '<linux/sched.h>' (since mm_types.h doesn't exist on RHEL5). On newer kernels, sched.h includes mm_types.h. * tapset/proc_mem.stp: Ditto.
* PR 11338 (partial): Used '@defined()' in syscall tapsets.David Smith2010-03-056-225/+100
| | | | | | | | | | * tapset/syscalls.stp: Used '@defined()' to remove kernel version checks. * tapset/syscalls2.stp: Ditto. * tapset/x86_64/syscalls.stp: Ditto. * tapset/nd_syscalls.stp: Updated to match tapset/syscalls.stp. * tapset/nd_syscalls2.stp: Updated to match tapset/syscalls2.stp. * tapset/x86_64/nd_syscalls.stp: Updated to match tapset/x86_64/syscalls.stp.
* Remove unneeded embedded-c include block from tapset/udp.stp.Mark Wielaard2010-03-051-6/+0
|
* PR11346: Make @defined() independent of --skip-badvarsJosh Stone2010-03-041-3/+3
| | | | | * tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol): Don't squash target_symbol errors in the operand of @defined().
* Add cmdline argument fetching for current process to context.stp tapset.Mark Wielaard2010-03-042-0/+78
| | | | | * tapset/context.stp: Add cmdline_str, cmdline_arg and cmdline_args. * testsuite/buildok/context_test.stp: Add tests for new functions.
* Filter the path of stap as called by the client and server.Dave Brolley2010-03-041-8/+13
|
* Comment on the use of PR_ErrorToString vs static table.Dave Brolley2010-03-041-1/+3
|
* Canonicalize another email->nameJosh Stone2010-03-041-0/+1
|
* Set a timeout when prompting for consent to trust a server as a SSL peer.Dave Brolley2010-03-031-2/+2
|
* Can't call SEC_PrintCertificateAndTrust.Dave Brolley2010-03-031-6/+1
|
* PR 10331: Improved certificate management -- client side.Dave Brolley2010-03-032-144/+256
| | | | | | | | stap-client-connect.c: use SSL_BadCertHoook to provide an opportunity for the user to trust and/or import the server's certificate. stap-client: Reorganized so that newly trusted certificates can be used. Also does the actual prompting.
* Improved NSPR error handling. Use PR_ErrorToString.Dave Brolley2010-03-031-14/+4
|
* Language Refrence manual clean up.William Cohen2010-03-031-36/+22
| | | | | | -Remove unneeded pagebreak() -Remove duplicate system() command description -Clean up the function prototypes
* Describe function args and clean up titles for proc_mem.stp and task_time.stpWilliam Cohen2010-03-032-25/+47
|
* HACKING: emphasize embedded-c testingFrank Ch. Eigler2010-03-032-6/+10
|
* Add task_stime_tid(), task_utime_tid() and task_time_string_tid() support.Mark Wielaard2010-03-032-1/+54
| | | | | | * tapset/task_time.stp: New functions task_stime_tid(), task_utime_tid() and task_time_string_tid(). * testsuite/buildok/task_test.stp: Add tests.
* Add documentation and tests for proc_mem_*_pid functions.Mark Wielaard2010-03-032-0/+51
|
* Add proc_mem_*_pid tapset function variants.Mark Wielaard2010-03-031-1/+106
| | | | | | * tapset/proc_mem.stp: Add proc_mem_size_pid, proc_mem_rss_pid, proc_mem_shr_pid, proc_mem_txt_pid, proc_mem_data_pid and proc_mem_string_pid functions to tapset.
* git_version.sh: Don't unnecessarily write to builddir during make install.Mark Wielaard2010-03-031-6/+9
| | | | | | | | | | Ideally make install wouldn't touch the src or build dirs. When the build dir is mounted so root cannot write to it a make install would fail because git_version.sh tried to create a temporary file. Fix by creating temporary git_version.h.new file in temp dir. * git_version.sh: Create temp dir and git_version.h.new outside src and build dir. Change all occurances of $outfile.new to $outfilenew.
* PR11004: try / catch error-handling script syntaxFrank Ch. Eigler2010-03-0313-13/+351
| | | | | | | | | | | | | | | * 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.
* PR11246 cont'd: Add options for cache controlJosh Stone2010-03-025-11/+49
| | | | | | | | | | | | | | | | --disable-cache : turn off all caching --clean-cache : clean up stale entries and then quit --poison-cache : force regeneration of items that would have hit the cache These are undocumented for now, until we decide whether they are generally useful. * main.cxx (main): Parse the new options. * session.h (systemtap_session): Add poison_cache; document the others. * clean.cxx (clean_cache): No longer static. (get_stapconf_from_cache, get_script_from_cache): Respect poison. * tapsets.cxx (tracepoint_builder::get_tracequery_module): Ditto. (dwarf_cast_expanding_visitor::filter_special_modules): Ditto.
* PR11246 cont'd: Separate script/stapconf cachingJosh Stone2010-03-027-42/+69
| | | | | | | | | | | I'm separating the caching and creation logic for stapconf, so it can be conditionalized on s.use_cache instead of s.use_script_cache. * session.h (systemtap_session): Store base_hash for better reuse. * hash.cxx (get_base_hash): Get the base from the session, or build it. (find_hash): Split into separate script/stapconf versions. * cache.cxx (add_to_cache, get_from_cache): Ditto. * main.cxx (main): Adapt caller, and delay stapconf until pass-4.
* Move pass-3/4 cache checks after the reported pass-2 endJosh Stone2010-03-021-8/+9
| | | | * main.cxx (main): Reorganize the end of pass-2 a bit.
* PR11246: Add more granular cache controlJosh Stone2010-03-024-12/+17
| | | | | | | | | | | | | | There are some module options that require us to disable caching for the script, but before now this had a global effect. There are some cache objects, like tracepoint and @cast query modules, which we would like to cache even when the script itself needs to be uncached. * session.h (systemtap_session): New use_script_cache flag. * main.cxx (main): -m & -k can just disable the script cache. Failure to create the cache directories still disables all caching. * hash.cxx (create_hashdir): Failure disables all caching. * cache.cxx (add_to_cache): Failure only toggles the script caching. If the stapconf fails though, we don't need to block the .ko reuse.
* Revise the embedded-C.stp example to something more portable.William Cohen2010-03-022-36/+28
|
* Minor clean-up in tutorial.William Cohen2010-03-021-4/+5
|
* Make the inode-watch.stp example work on newer kernels.William Cohen2010-03-022-10/+22
|
* Fixed PR 11336 by using a wait queue to wait on procfs file availability.David Smith2010-03-012-73/+56
| | | | | | | | | | | * runtime/procfs-probes.c: Removed old kernel 2.6.16 code. Simplified _spp_lock macros. (_stp_proc_open_file): If file is busy, use a wait queue to wait on it being available. (_stp_proc_release_file): Decrease open count. * tapset-procfs.cxx (emit_module_init): Updated procfs probe initialization/shutdown routine names. (emit_module_exit): Ditto.
* PR11229: Make parse_kernel_config return int and suggest that the user check ↵Charley Wang2010-03-011-2/+17
| | | | their installation of kernel devel
* Squash elision warnings on synthetic functionsJosh Stone2010-02-267-2/+18
| | | | | | | | | | | | | | * staptree.h (functiondecl): Add a synthetic flag. * elaborate.cxx (semantic_pass_opt1): Don't warn about synthetic funcs. * tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol): Mark the new function as synthetic. (dwarf_cast_expanding_visitor::visit_cast_op): Ditto. (tracepoint_var_expanding_visitor::visit_target_symbol_arg): Ditto. * tapset-perfmon.cxx (perfmon_var_expanding_visitor::visit_target_symbol): Ditto. * tapset-procfs.cxx (procfs_var_expanding_visitor::visit_target_symbol): Ditto. * testsuite/semok/thirtyeight.stp: New check with -W and @defined.
* Add package check for librpmStan Cox2010-02-262-86/+6
| | | | | * configure (have_librpm): Move to AC_CHECK_LIB * configure.ac: Regenerate.
* Add package check for librpmStan Cox2010-02-262-1/+77
| | | | | * configure (have_librpm): Define. * configure.ac: Regenerate.
* PR11075: -W option to turn warnings into errorsFrank Ch. Eigler2010-02-255-2/+25
| | | | | | | | * session.h * NEWS: Discuss it. * main.cxx: Parse it. * session.h (num_errors): Provide it. * semok/fortyeight.stp, semok/thirtyseven.stp: Test it.
* Expand the comment around @defined pass-throughJosh Stone2010-02-251-4/+6
|
* Ensure that @defined()==1 goes the right wayJosh Stone2010-02-251-10/+10
| | | | | | | We need to poison the false case of valid "@defined(x)?x:y", so we know that the @defined is correctly leading to the true case only. * testsuite/semok/thirtysix.stp: poison false in valid cases.