summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* security: list some prudent security practices for stap-serverFrank Ch. Eigler2010-01-191-0/+23
|
* Swap DW_OP_shr and DW_OP_shra.Roland McGrath2010-01-191-2/+2
| | | | * loc2c.c (translate): DW_OP_shr is unsigned, DW_OP_shra is signed.
* Use signed division for DW_OP_div.Roland McGrath2010-01-191-1/+10
| | | | * loc2c.c (translate): Use signed division for DW_OP_div.
* Fix the listing mode of process.library.markJosh Stone2010-01-181-1/+1
| | | | | | | | | Our hack for producing nicer listing modes was to write the mark name in component index 1. That's fine for process.mark, but writes the wrong position for process.library.mark. It now munges the last probe component of any number of indexes. (A better fix is due in PR10831, preserving the derivation chain.)
* PR11173 Markers get a bad address in prelinked libraries.Mark Wielaard2010-01-183-43/+9
| | | | | | | | | | | | | Our literal_addr_to_sym_addr() function was just wrong. To compensate for raw addresses read from elf (either given by the user or through a mark transformation) we need to know what the elf_bias is (as returned by dwfl_module_getelf) before feeding them to any libdwfl functions. * tapsets.cxx (query_module_dwarf): Always add elf_bias to raw function or statement addresses before calling query_addr(). (query_addr): Don't call literal_addr_to_sym_addr(). * dwflpp.h (literal_addr_to_sym_addr): Removed. * dwflpp.cxx (literal_addr_to_sym_addr): Likewise.
* PR11105: forget about packaging stap-server-requestFrank Ch. Eigler2010-01-151-1/+0
|
* Relax sdt address check for attach to running process case.Stan Cox2010-01-152-5/+10
| | | | * uprobes-common.c (stap_uprobe_change_plus): Relax VM_EXEC check.
* PR11105: support default unset --prefixFrank Ch. Eigler2010-01-152-3/+8
| | | | * configure.ac (STAP_PREFIX): Map NONE -> /usr/local.
* PR11105: remove extraneous \n from localized foo.stp script file nameFrank Ch. Eigler2010-01-151-1/+1
|
* testsuite: fix wording of invalid-entry test groupFrank Ch. Eigler2010-01-151-2/+2
|
* PR11105: Remove stap-server-request shell script.Frank Ch. Eigler2010-01-153-514/+2
| | | | * Makefile.am: Don't install it any more.
* PR11105: robustify stap-serverFrank Ch. Eigler2010-01-153-100/+415
| | | | | | | | | | | * main.cxx (main): Always downgrade client-provided -p5 to -p4. * stap-client (unpack_response): Sanitize stdout due to same. * stap-server-connect.c: Eliminate a bunch of globals. (handle_connection): Make things locals instead. Base tmp files on $TMPDIR. (spawn_and_wait): New helper function. (handleRequest): New monster function to inline rest of old stap-server-request.
* server: log controlling pidFrank Ch. Eigler2010-01-151-0/+2
| | | | * stap-serverd (initialization): Log startup pid.
* runtime: better staprun diagnostics for failed signature testsFrank Ch. Eigler2010-01-151-2/+8
| | | | * modverify.c (verify_module): Print some messages for verbose > 1.
* PR11105: stap-client wire protocol changeDave Brolley2010-01-151-114/+99
|
* Improve stack printing formatWenji Huang2010-01-151-1/+2
| | | | * runtime/stack.c (_stp_stack_print_tsk): Use _stp_symbol_print.
* PR11151: Recover stap_uprobes slots on process exitJosh Stone2010-01-143-0/+17
| | | | | | | | | | When a process exits, it won't necessarily bother to munmap all of its shared libraries. This patch makes sure that with uprobes in libraries, we still grab an exit notification and clear everything out. * runtime/uprobes-common.c (stap_uprobe_process_munmap): New. * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Use above callback so that we can recover our resources on process exit.
* Allow / as a random argyment character when fuzzing.Dave Brolley2010-01-141-1/+1
|
* PR10467 cont'd: be tolerant of bad line numbersJosh Stone2010-01-141-5/+2
| | | | | | | | | If a line number is invalid for a source file, that should not be a fatal error, as it may still be valid for some other matching source file. * dwflpp.cxx (dwflpp::iterate_over_srcfile_lines): Don't assert that the line must be found, just break out quietly.
* Fixed rawhide syscall testsuite problem.David Smith2010-01-141-2/+2
| | | | | * testsuite/systemtap.syscall/net1.c (main): The 'bzero()' function has been deprecated on rawhide. Replaced with 'memset()'.
* Use gnu indentation style.Stan Cox2010-01-141-59/+66
|
* Fix rawhide compile problem.David Smith2010-01-141-1/+1
| | | | | * main.cxx (getmemusage): On rawhide systems, 'getpagesize()' has been deprecated. Substitute 'sysconf(_SC_PAGESIZE)'.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapWilliam Cohen2010-01-136-10/+65
|\
| * Use __access_process_vm_noflush for static user semaphore decrement.Stan Cox2010-01-133-5/+57
| | | | | | | | | | | | * access_process_vm (__access_process_vm_noflush): New * tapsets.cxx (uprobe_derived_probe_group::emit_module_exit): Use it. * translate.cxx (translate_pass): Declare it.
| * build fix: rhbz55060: stdlib.h vs sys/wait.h __WAIT_STATUS conflictsFrank Ch. Eigler2010-01-131-2/+2
| |
| * PR 11167 fixed by adding compat_sys_sigaction to the syscall.sigaction32 probe.David Smith2010-01-131-2/+4
| | | | | | | | | | | | * tapset/syscalls2.stp (syscall.sigaction32): Added kernel.function("compat_sys_sigaction"). (syscall.sigaction32.return): Ditto.
| * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-134-35/+114
| |\
| * | Test newline characters as part of fuzzing argument strings.Dave Brolley2010-01-131-1/+2
| | |
* | | Move userspace probing boiler plate code in translator to runtime library.William Cohen2010-01-133-357/+336
| |/ |/|
* | Merge remote branch 'origin/master'Tim Moore2010-01-133-2/+55
|\|
| * Fix PR11160 by handling ppc syscall.sigaction32 correctly.David Smith2010-01-133-2/+55
| | | | | | | | | | | | | | | | | | | | * tapset/aux_syscalls.stp (_struct_old_sigaction32_u): New function. * tapset/syscalls2.stp (syscall.sigaction32): Uses new _struct_old_sigaction32() function to provide a human readable version of the sigaction argument. * testsuite/systemtap.syscall/test.tcl (run_one_test): Use additional C flags when pre-processing test files to better determine which tests are valid on which platforms.
* | map through uretprobe trampoline in an arbitrary taskTim Moore2010-01-134-35/+114
|/ | | | | | | | | * runtime/uprobes2/uprobes.c (uprobe_get_pc_task): new function (lookup_uretprobe): new helper function (uprobe_get_pc): use it * runtime/uprobes2/uprobes.h (uprobe_get_pc_task): declare * runtime/uprobes/uprobes.c : ditto * runtime/uprobes/uprobes.h : ditto
* Removed bogus task_finder error message.David Smith2010-01-131-1/+1
| | | | | * runtime/task_finder.c (__stp_utrace_attach): No longer prints bogus error message when utrace_barrier succeeds.
* Faulty conditionals are parse errors, not semantical errors.Mark Wielaard2010-01-131-0/+0
| | | | | | | | | The test was correct, the given construct should fail. But it fails because it is a parse error, not because it is a semantical error. So move into the right pass1-4 sub-directory. * testsuite/semko/conditional.stp: Moved to... * testsuite/parseko/conditional.stp: ... here.
* PR10493: autoconf for cpu_khzWenji Huang2010-01-132-7/+43
| | | | | | * buildrun.cxx (output_cpu_khz): New function to check cpu_khz. (compile_pass): Invoke function output_cpu_khz. * runtime/time.c : Use STAPCONF_CPU_KHZ.
* Fixed PR 11163 so that syscall.readv/syscall.writev puts fd in argstr for ppc.David Smith2010-01-122-21/+1
| | | | | | | | * tapset/syscalls2.stp (syscall.readv): Removed old ppc hack. (syscall.writev): Ditto. * tapset/nd_syscalls2.stp (nd_syscall.readv): Removed mention of old ppc hack. (nd_syscall.writev): Ditto.
* Add attach to live process tests.Stan Cox2010-01-121-30/+169
| | | | | | | * sdt_misc.exp (sdt_misc.c): New funcs loop_check, int_handler, alrm_handler. (sdt_misc.sdt): Add timer.ms (test attach to a running process): New. (test attach to a running process with .so markers): New.
* Fixed PR 11162 by removing extra 'buf_uaddr' assignment.David Smith2010-01-121-1/+0
| | | | | * tapset/syscalls2.stp (syscall.pwrite32): Remove extra 'buf_uaddr' assignment.
* tweak stap argument checkingFrank Ch. Eigler2010-01-121-38/+22
| | | | * main.cxx (checkOptions): Inline into main(), abeam other option checks.
* new sample script: overcommit failure monitorFrank Ch. Eigler2010-01-126-0/+45
|
* PR10747: check invalid preprocessor constructWenji Huang2010-01-122-2/+23
| | | | | * parse.cxx (scan_pp): Match '%(' and '%?'. * testsuite/semko/conditional.stp: New test.
* Add some additional test cases.Dave Brolley2010-01-111-0/+17
|
* Invalid casess can be tested for 'make check'.Dave Brolley2010-01-111-47/+49
|
* Rework filtering of client options. Add testsuite.Dave Brolley2010-01-114-67/+130
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-111-30/+37
|\
| * 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.
* | Filter options for unprivileged use after --stap-client is seen.Dave Brolley2010-01-112-1/+66
|/
* Add stack walking function for 2.6.33Wenji Huang2010-01-111-0/+14
| | | | | * runtime/stack.c (walk_context_stack): New function. (print_stack_ops): Add function pointer.
* Pull set of semaphore into its own function.Stan Cox2010-01-106-72/+119
| | | | | | | | | | | | | | * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Move sdt_sem_address from standalone to stap_uprobes. Remove sdt_sem_tid. In emitted function stap_uprobe_change_plus distinguish VM_EXEC/VM_WRITE cases, use sdt_sem_address member, move setting of semaphores to new emitted function stap_uprobe_change_semaphore_plus. (stap_uprobe_process_found): Call stap_uprobe_change_semaphore_plus. (stap_uprobe_mmap_found): Likewise. * stap-postgres.stp (postgresrelease): New. Sync to current upstream version. * stap-tcl.sh: Check if wget failed. * stap-tcl.stp: Check for skipped probes. * xulrunner.exp: Check if wget failed.