summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Remove caching of emit_address for kernel modules and shared libraries.Mark Wielaard2009-11-171-4/+7
| | | | | | | | | | | | | | | | | | | | Caching of the address is only safe for kernel addresses that can never change. For kernel module or dynamic shared library addresses it isn't safe to cache the address since they can be unloaded, reloaded or mapped differently in separate executables. * dwflpp.cxx (emit_address): Remove static from addr definition for kernel and dynamic modules.
| * Explain "cheat" comment in sym.c (_stp_tf_mmap_cb).Mark Wielaard2009-11-171-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | We are abusing the "first" section address here to indicate where the module (actually first segment) is loaded (which is why we are ignoring the offset). It would be good to redesign the stp_module/stp_section data structures to better align with the actual memory mappings we are interested in (especially the "section" naming is slightly confusing since what we really seem to mean are elf segments (which can contain multiple elf sections). * runtime/sym.c (_stp_tf_mmap_cb): Add cheat comment.
| * PR 5150 partial fixes. Added support for nfs_file_fsync.David Smith2009-11-161-37/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tapset/nfs.stp(nfs.fop.fsync): Added support for nfs_file_fsync. (nfs.fop.fsync.return): Ditto. (nfs.aop.readpages.return): Fixed 'size' bug. (nfs.aop.write_begin): Renamed to make 'nfs.*.*' probes work correctly. (nfs.aop.write_end): Ditto. (__nfs.aop.write_begin): Ditto. (__nfs.aop.write_end): Ditto. (__nfs.aop.prepare_write): Ditto. (__nfs.aop.commit_write): Ditto. (nfs.fop.aio_read.return): Always sets 'units'. (nfs.fop.aio_write.return): Ditto. (nfs.fop.sendfile.return): Ditto.
| * Add testcase for retrieving $global vars from execs and shared libs.Mark Wielaard2009-11-164-0/+204
| | | | | | | | | | | | | | | | | | Explicit testcase for PR10010 and PR10622. * testsuite/systemtap.base/externalvar.c: New file. * testsuite/systemtap.base/externalvar.exp: New file. * testsuite/systemtap.base/externalvar.stp: New file. * testsuite/systemtap.base/externalvar_lib.c: New file.
| * PR10010 Support $globals in shared libraries.Mark Wielaard2009-11-162-8/+10
| | | | | | | | | | | | | | | | * dwflpp.cxx (dwflpp::emit_address): Enable task finder and emit a _stp_module_relocate for the ".dynamic" section when seeing a user-space dso address. * runtime/sym.c (_stp_mod_sec_lookup): Remove .dynamic section addr cheat. (_stp_tf_mmap_cb): Add cheat here.
| * Allow modules to trigger task_finder vma_tracker.Mark Wielaard2009-11-162-0/+11
| | | | | | | | | | | | | | * runtime/sym.h: Define _stp_need_vma_tracker. * translate.cxx (emit_symbol_data_done): Output _stp_need_vma_tracker value. (c_unparser::emit_module_init): If STP_NEED_VMA_TRACKER isn't defined check _stp_need_vma_tracker to call _stp_sym_init().
| * PR 5150 partial fix. Support nfs_write_begin()/nfs_write_end().David Smith2009-11-161-4/+76
| | | | | | | | | | * tapset/nfs.stp: Added support for nfs_write_begin()/nfs_write_end(), which replaced nfs_prepare_write()/nfs_commit_write().
| * Add documentation for ansi.stp tapset.Mark Wielaard2009-11-162-15/+88
| | | | | | | | | | * tapset/ansi.stp: Add documentation for every function. * doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add chapter on ansi.
| * PR10622 Search for extern $variables in symbol table.Mark Wielaard2009-11-163-14/+62
| | | | | | | | | | | | | | | | * dwflpp.h (vardie_from_symtable): New method. * dwflpp.cxx (vardie_from_symtable): New method. (literal_stmt_for_local): Use vardie_from_symtable when no location attribute and DW_AT_external. * testsuite/buildok/xtime.stp: New testcase from PR10622.
| * Define IRQF_ONESHOT for older kernels.Mark Wielaard2009-11-161-0/+3
| | | | | | | | | | | | | | IRQF_ONESHOT was only introduced in 2.6.32. It doesn't hurt defining it if it isn't already there. It will just never show up on older kernels. * tapset/aux_syscalls.stp: Define IRQF_ONESHOT if not already defined.
| * add definition of function irqflags_str()Prerna Saxena2009-11-161-0/+27
| |
| * Regen indexes for interrupts-by-dev exampleJosh Stone2009-11-134-0/+20
| |
| * Delete test commit fileJosh Stone2009-11-131-1/+0
| |
| * Turn ctime.stp documentation into proper Tapset Reference markup.Mark Wielaard2009-11-132-12/+25
| | | | | | | | | | * doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add chapter on ctime.stp. * tapset/ctime.stp: Turn documentation into proper reference markup.
| * Accept relative user module paths for -d.Mark Wielaard2009-11-131-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | When using relative (non-canonical) paths for user modules one would get a confusing WARNING: missing unwind/symbol data for module 'bin/test'. Also unless the path started with '/' the task_finder wouldn't start. By checking that the given file can be made absolute (canonicalized) both issues are resolved and the user module will be correctly identified at both translation and runtime. * main.cxx (main): case 'd' try canonicalize_file_name() the argument first to identify user modules.
| * Adding a new .meta file to run interrupts-by-dev.stp in testPrerna Saxena2009-11-131-0/+14
| |
* | Ensure uprobes/Makefile never returns failure due to setting permissions.Dave Brolley2009-11-2314-4966/+3782
| | | | | | | | | | Ensure uprobes install directory has group 'stap-server'. Rename igid_in to in_group.
* | Rework setting of group and permissions on generated files and directories.Dave Brolley2009-11-231-8/+21
| |
* | Make built files and directories writeable by the stap-server group ↵Dave Brolley2009-11-231-4/+6
| | | | | | | | individually.
* | Only attempt to change the group permissions of built items if we are root.Dave Brolley2009-11-201-3/+6
| |
* | Allow members of the group stap-server to build the uprobes module.Dave Brolley2009-11-204-10/+62
| |
* | Ensure that server status files are written by the initscript, not ↵Dave Brolley2009-11-201-1/+1
| | | | | | | | stap-start-server.
* | Report correct status when a server fails to start.Dave Brolley2009-11-201-3/+5
| |
* | Fix typo on command to create /usr/share/systemtap/runtime/uprobes.Dave Brolley2009-11-201-1/+1
| |
* | PR 10905 - Ensure that /usr/share/systemtap/runtime/uprobes is writeable by theDave Brolley2009-11-201-0/+5
|/ | | | stap-server group.
* 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
| |