summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-11-123-8/+190
|\
| * Add documentation for conversions.stp tapset functions.Mark Wielaard2009-11-122-7/+188
| | | | | | | | | | * doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add conversions.stp chapter. * tapset/conversions.stp: Add documentation for all functions.
| * Mark usymname as unprivileged.Mark Wielaard2009-11-121-1/+2
| | | | | | | | | | * tapset/ucontext-symbols.stp (usymname): Add assert_is_myproc() and mark as unprivileged, just like usymdata().
* | Sign uprobes.ko with the builder's certificate.Dave Brolley2009-11-123-452/+27
|/ | | | Delete ownership & permissions tests from modsign.cxx and stap-serverd.
* Relax restrictions on ownership and access permissions of signer's cert ↵Dave Brolley2009-11-122-0/+8
| | | | database.
* PR6979: fix loc2c handling of second and later piecesRoland McGrath2009-11-111-29/+39
| | | | * loc2c.c (translate): Reset stack state tracking after finishing each piece.
* build: quiet down xmlto tests and runsFrank Ch. Eigler2009-11-114-8/+8
| | | | | * configure.ac (xmlto --stringparam check): Add >&/dev/null. * doc/*/Makefile.am (xmlto runs): Ditto.
* A very simple patch that fix the networking tapset documentation.Breno Leitao2009-11-111-1/+1
| | | | | It references the file include/linux/if_ether.h as the one that contains the protocol numbers and types.
* PR5916: Exploit kretprobe data storage areaJosh Stone2009-11-105-27/+291
| | | | | | | | | | | | | | | | | | | | Since 2.6.25, kretprobes can carry a data packet to be filled in an entry_handler. This patch lets us store our implicitly-saved $target variables in .return probes in that data area. * tapset/kretprobe.stp: New get/set functions for kretprobe data. * translate.cxx (c_unparser::emit_common_header): Add context->pi_longs. * tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol_saved_return): Switch between the old and new methods of saving $vars in .return probes. (dwarf_var_expanding_visitor::gen_mapped_saved_return): The old way. (dwarf_var_expanding_visitor::gen_kretprobe_saved_return): The new way. (dwarf_derived_probe::join_group): Don't register paired entry-handlers. (dwarf_derived_probe::dwarf_derived_probe): Remember saved-var details. (dwarf_derived_probe_group::emit_module_decls): Output saved-var details. Also split the kretprobe handler whether we're on entry or return. (dwarf_derived_probe_group::emit_module_init): Prepare the entry handler. * testsuite/systemtap.base/kretprobe-vars.stp: Test implicit $var saving.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-11-109-40/+29
|\
| * PR10877: Fix coveragedb.cxx to account for new components/token structureCharley Wang2009-11-101-4/+4
| |
| * PR10927: undocument nonexistent do/while constructFrank Ch. Eigler2009-11-101-10/+0
| |
| * PR10877: Give token* to each component instead of each probe_pointCharley Wang2009-11-107-26/+25
| |
* | Use 'module_realpath' instead of overwriting 'path' in insert_module.Dave Brolley2009-11-101-18/+14
|/ | | | Update comments to clearly explain the security issues involved.
* Replace the use of the global variable 'modpath' in diagnosticDave Brolley2009-11-103-10/+14
| | | | | | | | messages within verify_it with the use of a 'module_name' parameter passed in. Add a comment in insert_module explaining why it's ok to overwrite the 'path' parameter with the canonicalized path.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-11-1012-3920/+5014
|\
| * Add blank lines for formatting stapprobes.irqJosh Stone2009-11-101-0/+46
| | | | | | | | The line spacing is significant to the way the output is rendered.
| * Fix stapprobes.irq title and add to install listJosh Stone2009-11-1011-3765/+4968
| | | | | | | | (And incidentally re-enable quiet builds at the same time...)
| * Only .3stap.in files should be committedJosh Stone2009-11-101-155/+0
| |
* | Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-11-099-152/+702
|\|
| * Normalized whitespace and comments.David Smith2009-11-091-146/+153
| |
| * IRQ tapset, sample script, testsuite, man page updates, etcPrerna Saxena2009-11-095-0/+520
| |
| * PR10923 Handle AT_frame_base given by DW_OP_call_frame_cfa in .debug_frame.Mark Wielaard2009-11-081-2/+2
| | | | | | | | | | | | | | | | dwarf_cfi_addrframe should not be called with pc adjusted to the bias of the dwfl_module_dwarf_cfi or dwfl_module_eh_cfi. This just happened to work in the .eh_frame case because bias was always zero. * dwflpp.cxx (get_cfa_ops): Don't adjust pc for bias.
| * Fix a comment typoJosh Stone2009-11-061-1/+1
| |
| * expand comment on has_return=0 treatment of -L foo.return probesFrank Ch. Eigler2009-11-061-3/+7
| |
| * Constrain $var-checking for -L of .return probesJosh Stone2009-11-061-10/+10
| | | | | | | | | | | | | | | | | | Normally, using a $var in a return probe create a matching entry probe to save the value. We don't want all this machinery though when we're just checking the accessibility of a $var for -L mode. * tapsets.cxx (dwarf_derived_probe::saveargs): Save/restore has_return while the $var accesses are attempted.
| * PR10849: Support MAXSKIPPED handling on RHEL4 through implementation of ↵Roland Grunberg2009-11-062-2/+13
| | | | | | | | atomic_cmpxchg
| * PR10820-cont': initialize the fields of empty tokenWenji Huang2009-11-061-0/+8
| | | | | | | | * tapsets.cxx (dwarf_derived_probe::saveargs): fill fields.
* | Don't reference global variable modpath in insert_module and its helpers.Dave Brolley2009-11-095-36/+118
|/ | | | | | | | | | | This allows insert_module to to be used for loading the signed uprobes.ko module. Allow the use of $$parms and $$return in uprobes based probes for unprivileged users. Re-add management of module signatures in the cache. Don't know why it was removed.
* Revert change which loads uprobes.ko using insert_module.Dave Brolley2009-11-051-3/+5
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-11-054-29/+51
|\
| * PR10466: print the set-intersection of variables retrieved from each branchWenji Huang2009-11-044-29/+51
| | | | | | | | | | | | | | * elaborate.h: Remove printargs and add getargs. * tapset-mark.cxx (mark_derived_probe): Ditto. * tapsets.cxx (dwarf_derived_probe,tracepoint_derived_probe): Ditto. * main.cxx (printscript): Make intersection before printing.
* | Revert previous change re: home directory og stap-server. Ensure it has 755 ↵Dave Brolley2009-11-051-2/+1
| | | | | | | | privileges.
* | PR 9973: Sign uprobes.ko when it is created and load it using insert_module.Dave Brolley2009-11-056-80/+99
|/ | | | Create home directory manually for stap-server.
* Add NEWS entry for stap-server initscript.Dave Brolley2009-11-031-0/+5
|
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDave Brolley2009-11-0371-469/+1501
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile.in configure doc/Makefile.in doc/SystemTap_Tapset_Reference/Makefile.in grapher/Makefile.in testsuite/configure
| * PR 10706 fixed by switching to unbuffered output.David Smith2009-11-031-1/+1
| | | | | | | | | | * runtime/staprun/mainloop.c (stp_main_loop): Switched to unbuffered output (instead of line buffered output).
| * I forgot to change the NEWS file when commitingBreno Leitao2009-11-031-0/+3
| | | | | | | | | | 249534c041971db5e9f89cb11b6d38d311e91f57, and this commit just adds a line in the NEWS file explaining the commmit above
| * Fix for bug 10866 (exit with rc != 0 on script ERRORs).Breno Leitao2009-11-032-11/+15
| | | | | | | | | | | | This patch just make the RC=1 when any output line starts with ERROR:. Also some minors error that was returning 0 instead of 1 were fixed.
| * PR 6691 fixed by adding support for sys_accept4.David Smith2009-11-023-16/+88
| | | | | | | | | | | | | | | | | | | | * tapset/aux_syscalls.stp(_sock_type_str): Rewrote in embedded-C and added socket flags support. (_sock_flags_str): New function. * tapset/syscalls.stp: syscall.accept prefers to use sys_accept4 when it exists. Added support for sys_accept4's 'flag' parameter. * testsuite/systemtap.syscall/net1.c (main): Updated regular expression to handle the new 'flags' argument.
| * PR10849: make MAXSKIPPED overflow trigger an error messageCharley Wang2009-11-021-4/+4
| |
| * reorganize app tests; rewrite tcl as sample of improvementsFrank Ch. Eigler2009-10-3113-170/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/configure.ac (--enable-testapps): New option. * testsuite/Makefile.am (TESTAPPS): Pass to dejagnu. * testsuite/systemtap.base/{xulrunner,tcl,mysql,postgres}: Moved under new systemtap.apps/ subdirectory. * testsuite/systemtap.apps/stap-tcl.sh: New file to build tcl. * testsuite/systemtap.apps/stap-tcl.stp: New file to test tcl. * testsuite/systemtap.apps/tcl.exp: New simplified test driver. * dtrace.in: Disable STAP_HAS_SEMAPHORES as they don't work on shlibs yet. * includes/sys/sdt.h (STAP_SEMAPHORE): Include __builtin_expect for unlikely.
| * regen sample indexes with plimit.stpFrank Ch. Eigler2009-10-304-0/+20
| |
| * plimit: Add plimit.stp sample scriptEugene Teo2009-10-302-0/+85
| |
| * Use /dev/urandom (non-blocking) instead of /dev/random.Dave Brolley2009-10-301-1/+1
| |
| * Never ask the user for a password in stap-gen-cert. Read from /dev/random asDave Brolley2009-10-301-25/+1
| | | | | | | | a last resort. Cert db passwords will be going away soon(tm).
| * context.exp test improvements.David Smith2009-10-304-4/+6
| | | | | | | | | | | | | | | | * testsuite/systemtap.context/args.tcl: Increased timeout. If tests do timeout, fail (instead of silently failing). * testsuite/systemtap.context/num_args.tcl: Ditto. * testsuite/systemtap.context/backtrace.tcl: Increase timeout. * testsuite/systemtap.context/pid.tcl: Ditto.
| * PR10839: compute default KRETACTIVE from num_possible_cpus() instead of NR_CPUSFrank Ch. Eigler2009-10-301-2/+2
| | | | | | | | * tapsets.cxx (dwarf_ and kprobe_derived_probe_group): Redefine KRETACTIVE.
| * Fix syscall testsuite bugs.David Smith2009-10-299-17/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testsuite/systemtap.syscall/test.tcl: Substitute '[[[[' and ']]]]' for '(' and ')'. This allows us to get unquoted parens. * testsuite/systemtap.syscall/test-debug.tcl: Matches substitute logic of test.tcl. * testsuite/systemtap.syscall/README: Document '[[[[' and ']]]]'. * testsuite/systemtap.syscall/chmod.c: Handle optional O_LARGEFILE flag in open calls. * testsuite/systemtap.syscall/dir.c: Ditto. * testsuite/systemtap.syscall/mmap.c: Ditto. * testsuite/systemtap.syscall/openclose.c: Ditto. * testsuite/systemtap.syscall/readwrite.c: Ditto. * testsuite/systemtap.syscall/stat.c: Ditto.
| * Removed extra declarations.David Smith2009-10-291-3/+0
| | | | | | | | | | * runtime/transport/transport.h: Removed extra declarations of _stp_transport_init() and _stp_transport_close().