summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | PR 10981. Fixed buildok/netdev.stp for RHEL5.David Smith2009-11-182-4/+4
| | | | | | | | | | | | | | | | | | | | | * tapset/networking.stp: Made 'netdev.change_rx_flag' and 'netdev.get_stats' optional, since those functions don't exist on RHEL5. * testsuite/buildok/netdev.stp: Ditto.
| * | Don't kfail buildok/sched_test.stp and buildok/process_test.stp.David Smith2009-11-181-2/+0
| | | | | | | | | | | | | | | | | | * testsuite/systemtap.pass1-4/buildok.exp: On rhel5 and rawhide, the buildok/sched_test.stp and buildok/process_test.stp tests pass sucessfully, so there is no reason to kfail them.
| * | PR 5150. Fixed nfs tapset by making probes optional.David Smith2009-11-182-23/+30
| |/ | | | | | | | | | | | | * tapset/nfs_proc.stp: Made 'nfs.proc.read', 'nfs.proc.write', and 'nfs.proc.commit' optional for newer kernels without those functions. * testsuite/systemtap.pass1-4/buildok.exp: Expect nfs-all-probes.stp to pass.
| * Check in regenerated systemtap example indexes.Mark Wielaard2009-11-184-121/+126
| |
| * Clean up examplesWenji Huang2009-11-1824-41/+29
| |
| * Test cross-CU type discoveryJosh Stone2009-11-173-0/+50
| | | | | | | | | | Check that we can dereference a type declaration that is defined in a separate CU from the function.
| * Make interrupts-by-dev.stp executableWenji Huang2009-11-181-0/+0
| |
| * PR4037: 32-bit staprun vs. 64-bit kernels just works (tm)Frank Ch. Eigler2009-11-177-41/+15
| | | | | | | | | | * configure.ac (PROCFLAGS): Don't define it. * Makefile.am: Don't use it.
| * Document is_return(), module_name() and stp_pid() context tapset functions.Mark Wielaard2009-11-171-15/+18
| |
| * With tapset/aux_syscalls.stp fixes, test twentyseven.stp is not kfail.David Smith2009-11-171-1/+0
| | | | | | | | | | * testsuite/systemtap.pass1-4/buildok.exp: Test twentyseven.stp should pass now.
| * Search other CUs of the module when resolving declarations.Mark Wielaard2009-11-172-12/+43
| | | | | | | | | | | | | | | | | | | | | | * dwflpp.h (declaration_resolve_other_cus): New method. (iterate_over_globals): Mark as static and takes a CU to iterate over. (global_alias_caching_callback_cus): New method. * dwflpp.cxx (global_alias_caching_callback_cus): New method. (declaration_resolve_other_cus): New method. (declaration_resolve): Call iterate_over_globals() with current cu. Call declaration_resolve_other_cus() when name not found. (iterate_over_globals): Takes cu_die to iterate over as argument.
| * Fixed aux_syscalls.stp for RHEL4.David Smith2009-11-171-0/+12
| | | | | | | | | | * tapset/aux_syscalls.stp: Only define entries for IRQF_* flags if they exist.
| * PR 10974 fix. Fixed aux_syscalls.stp for RHEL5.David Smith2009-11-171-0/+4
| | | | | | | | | | * tapset/aux_syscalls.stp: Only define entries for IRQF_NOBALANCING/IRQF_IRQPOLL if they exist.
| * Use DW_AT_MIPS_linkage_name when available in vardie_from_symtable.Mark Wielaard2009-11-171-1/+8
| | | | | | | | | | | | | | | | If there is a DW_AT_MIPS_linkage_name it encodes the actual name of the variable as used in the symbol table. * dwflpp.cpp (vardie_from_symtable): Check whether there is a DW_AT_MIPS_linkage_name attribute and use its value if so.
| * 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
| |