summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * chmod +x testsuite/parseko/conditional.stpJosh Stone2010-01-191-0/+0
| |
| * PR11195: Prevent all nested argument substitutionJosh Stone2010-01-193-31/+43
| | | | | | | | | | | | | | | | | | | | | | Our existing protection only made sure that the first token in a substitution wasn't a nested substitution. That's not sufficient when there could be multiple tokens involved. This patch makes sure that no nested tokens are ever allowed to be argument substitutions. This also adds a cursor_suspended_line/column and resets the main cursor_line/column to the beginning of the substitution, so errors will point a little closer to the right place.
| * 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.)
* | PR 11201: From Eugeniy Meshcheryakov (eugen@debian.org):Dave Brolley2010-01-212-3/+2
| | | | | | | | Remove $(pkglibexec_SCRIPTS) from CLEANFILES.
* | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-186-49/+19
|\|
| * 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.
* | Correct client-side quoting issues discovered by fche during the server-side ↵Dave Brolley2010-01-182-46/+70
| | | | | | | | | | | | reimplementation. Also add the test cases to the test suite.
* | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-152-3/+8
|\|
| * PR11105: support default unset --prefixFrank Ch. Eigler2010-01-152-3/+8
| | | | | | | | * configure.ac (STAP_PREFIX): Map NONE -> /usr/local.
* | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2010-01-1513-632/+456
|\| | | | | | | | | | | Conflicts: stap-client
| * 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.
* | Package command line arguments in separate files.Dave Brolley2010-01-151-102/+92
|/
* 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
|