]> sourceware.org Git - systemtap.git/log
systemtap.git
14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Fri, 27 Nov 2009 19:15:58 +0000 (14:15 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoPR 10984 Additional Work. TOCTOU race checking access permissions before canonicalizi...
Dave Brolley [Fri, 27 Nov 2009 19:13:15 +0000 (14:13 -0500)]
PR 10984 Additional Work. TOCTOU race checking access permissions before canonicalizing /lib/modules/KVER/systemtap.

14 years agoFix compilation warning of passing NULL to int parameter
Wenji Huang [Thu, 26 Nov 2009 02:03:58 +0000 (10:03 +0800)]
Fix compilation warning of passing NULL to int parameter

* util.cxx (in_group_id): Replace NULL with 0.

14 years agoFix compilation error, use getgroups without fixed limits.
Roland McGrath [Wed, 25 Nov 2009 22:42:10 +0000 (14:42 -0800)]
Fix compilation error, use getgroups without fixed limits.

* util.cxx (in_group_id): Don't use NGROUPS_MAX.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Wed, 25 Nov 2009 19:58:50 +0000 (14:58 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoImprove error messages related to module signing.
Dave Brolley [Wed, 25 Nov 2009 19:58:25 +0000 (14:58 -0500)]
Improve error messages related to module signing.

14 years ago- Allow root, the owner of the uprobes build directory and the members of the
Dave Brolley [Wed, 25 Nov 2009 19:14:03 +0000 (14:14 -0500)]
- Allow root, the owner of the uprobes build directory and the members of the
group owner of the uprobes buld directory to build uprobes.ko.

- When building uprobes.ko, make all generated files writable by the group
owner of the uprobes build directory.

- Don't change the group owner of the uprobes build directory during
'make install'

14 years agoinclude modverify.h unconditionally.
Dave Brolley [Tue, 24 Nov 2009 21:30:23 +0000 (16:30 -0500)]
include modverify.h unconditionally.

14 years agoFix uninitialized fields in loc2c.
Roland McGrath [Tue, 24 Nov 2009 21:22:27 +0000 (13:22 -0800)]
Fix uninitialized fields in loc2c.

* loc2c.c (alloc_location, location_from_address, c_translate_constant):
Initialize ops and nops fields.

14 years agoAdd assert for detecting shared library reloading, PR11015.
Mark Wielaard [Tue, 24 Nov 2009 20:29:57 +0000 (21:29 +0100)]
Add assert for detecting shared library reloading, PR11015.

* runtime/sym.c (_stp_tf_mmap_cb): Only look for first load of whole module
  that is executable. Add check for detecting reloading of module.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 24 Nov 2009 20:04:01 +0000 (15:04 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 24 Nov 2009 19:51:46 +0000 (14:51 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoPR 10976, 10984. Loading of signed modules (script module and uprobes) limited to...
Dave Brolley [Tue, 24 Nov 2009 19:50:28 +0000 (14:50 -0500)]
PR 10976, 10984. Loading of signed modules (script module and uprobes) limited to members of stapusr.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 24 Nov 2009 00:08:51 +0000 (19:08 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

Conflicts:

configure

14 years agoEnsure uprobes/Makefile never returns failure due to setting permissions.
Dave Brolley [Mon, 23 Nov 2009 22:39:16 +0000 (17:39 -0500)]
Ensure uprobes/Makefile never returns failure due to setting permissions.
Ensure uprobes install directory has group 'stap-server'.
Rename igid_in to in_group.

14 years agoUpdated.
David Smith [Mon, 23 Nov 2009 20:15:20 +0000 (14:15 -0600)]
Updated.

14 years agoFixed tapset reference manual generation.
David Smith [Mon, 23 Nov 2009 20:13:38 +0000 (14:13 -0600)]
Fixed tapset reference manual generation.
* doc/SystemTap_Tapset_Reference/Makefile.am: Check for file existence
  before doing compare.
* doc/SystemTap_Tapset_Reference/Makefile.in: Regenerated.
* tapset/ioblock.stp: Fixed comment so that docs can be built.

14 years agoRework setting of group and permissions on generated files and directories.
Dave Brolley [Mon, 23 Nov 2009 19:39:11 +0000 (14:39 -0500)]
Rework setting of group and permissions on generated files and directories.

14 years agoCorrect tapset/ioscheduler.stp so documentation builds.
William Cohen [Mon, 23 Nov 2009 18:30:46 +0000 (13:30 -0500)]
Correct tapset/ioscheduler.stp so documentation builds.

14 years agoMake built files and directories writeable by the stap-server group individually.
Dave Brolley [Mon, 23 Nov 2009 16:28:32 +0000 (11:28 -0500)]
Make built files and directories writeable by the stap-server group individually.

14 years agoTweak cu-decl test
Wenji Huang [Mon, 23 Nov 2009 08:38:04 +0000 (16:38 +0800)]
Tweak cu-decl test

* testsuite/systemtap.base/cu-decl.exp: Check utrace.
* testsuite/lib/stap_compile.exp: Make catch after wait.

14 years agoCorrect block IO and IO scheduler tapset and test case
Wenji Huang [Mon, 23 Nov 2009 06:03:33 +0000 (14:03 +0800)]
Correct block IO and IO scheduler tapset and test case

* tapset/ioblock.stp: Update comment and variables.
* testsuite/buildok/ioblock_test.stp: Add parameters.
* testsuite/buildok/ioscheduler.stp: Remove redundant parameters.

14 years agoAdded tracepoint-based probes to block IO and IO scheduler tapsets.
Prerna Saxena [Sun, 22 Nov 2009 18:10:39 +0000 (23:40 +0530)]
Added tracepoint-based probes to block IO and IO scheduler tapsets.
Added testcases for these probes.
Also, modified comments in ioblock.stp so that tapset docmentation can be automatically generated for this tapset.

14 years agoOnly attempt to change the group permissions of built items if we are root.
Dave Brolley [Fri, 20 Nov 2009 22:23:29 +0000 (17:23 -0500)]
Only attempt to change the group permissions of built items if we are root.

14 years agoAllow members of the group stap-server to build the uprobes module.
Dave Brolley [Fri, 20 Nov 2009 22:10:06 +0000 (17:10 -0500)]
Allow members of the group stap-server to build the uprobes module.

14 years agoEnsure that server status files are written by the initscript, not stap-start-server.
Dave Brolley [Fri, 20 Nov 2009 20:10:51 +0000 (15:10 -0500)]
Ensure that server status files are written by the initscript, not stap-start-server.

14 years agoReport correct status when a server fails to start.
Dave Brolley [Fri, 20 Nov 2009 19:53:56 +0000 (14:53 -0500)]
Report correct status when a server fails to start.

14 years agoFix typo on command to create /usr/share/systemtap/runtime/uprobes.
Dave Brolley [Fri, 20 Nov 2009 19:38:18 +0000 (14:38 -0500)]
Fix typo on command to create /usr/share/systemtap/runtime/uprobes.

14 years agoPR 10905 - Ensure that /usr/share/systemtap/runtime/uprobes is writeable by the
Dave Brolley [Fri, 20 Nov 2009 19:19:30 +0000 (14:19 -0500)]
PR 10905 - Ensure that /usr/share/systemtap/runtime/uprobes is writeable by the
stap-server group.

14 years agocleanup: explain -5 magic value used in map-sorting code
Frank Ch. Eigler [Fri, 20 Nov 2009 18:02:38 +0000 (13:02 -0500)]
cleanup: explain -5 magic value used in map-sorting code

14 years agobuild: disable make-silent mode in rpm builds
Frank Ch. Eigler [Fri, 20 Nov 2009 16:55:28 +0000 (11:55 -0500)]
build: disable make-silent mode in rpm builds

14 years agoPR10983: Give preference to tracepoints in trace/events/
Josh Stone [Wed, 18 Nov 2009 21:32:22 +0000 (13:32 -0800)]
PR10983: Give preference to tracepoints in trace/events/

In 2.6.32-rc7, there are two power.h tracepoints headers, and only the
one in trace/events/ is valid.  In general, we can expect that
trace/events/ has newer headers, so we should search those first.

* tapsets.cxx (tracepoint_builder::init_dw): Search /events/ first.

14 years agoPR 10981. Fixed buildok/netdev.stp for RHEL5.
David Smith [Wed, 18 Nov 2009 18:53:50 +0000 (12:53 -0600)]
PR 10981.  Fixed buildok/netdev.stp for RHEL5.
* 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.

14 years agoDon't kfail buildok/sched_test.stp and buildok/process_test.stp.
David Smith [Wed, 18 Nov 2009 17:16:15 +0000 (11:16 -0600)]
Don't kfail buildok/sched_test.stp and buildok/process_test.stp.
* 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.

14 years agoPR 5150. Fixed nfs tapset by making probes optional.
David Smith [Wed, 18 Nov 2009 16:59:37 +0000 (10:59 -0600)]
PR 5150.  Fixed nfs tapset by making probes optional.
* 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.

14 years agoCheck in regenerated systemtap example indexes.
Mark Wielaard [Wed, 18 Nov 2009 13:28:25 +0000 (14:28 +0100)]
Check in regenerated systemtap example indexes.

14 years agoClean up examples
Wenji Huang [Wed, 18 Nov 2009 09:59:24 +0000 (17:59 +0800)]
Clean up examples

14 years agoTest cross-CU type discovery
Josh Stone [Wed, 18 Nov 2009 02:59:47 +0000 (18:59 -0800)]
Test cross-CU type discovery

Check that we can dereference a type declaration that is
defined in a separate CU from the function.

14 years agoMake interrupts-by-dev.stp executable
Wenji Huang [Wed, 18 Nov 2009 02:47:33 +0000 (10:47 +0800)]
Make interrupts-by-dev.stp executable

14 years agoPR4037: 32-bit staprun vs. 64-bit kernels just works (tm)
Frank Ch. Eigler [Wed, 18 Nov 2009 01:11:12 +0000 (20:11 -0500)]
PR4037: 32-bit staprun vs. 64-bit kernels just works (tm)

* configure.ac (PROCFLAGS): Don't define it.
* Makefile.am: Don't use it.

14 years agoDocument is_return(), module_name() and stp_pid() context tapset functions.
Mark Wielaard [Tue, 17 Nov 2009 22:41:31 +0000 (23:41 +0100)]
Document is_return(), module_name() and stp_pid() context tapset functions.

14 years agoWith tapset/aux_syscalls.stp fixes, test twentyseven.stp is not kfail.
David Smith [Tue, 17 Nov 2009 21:40:59 +0000 (15:40 -0600)]
With tapset/aux_syscalls.stp fixes, test twentyseven.stp is not kfail.
* testsuite/systemtap.pass1-4/buildok.exp: Test twentyseven.stp should
  pass now.

14 years agoSearch other CUs of the module when resolving declarations.
Mark Wielaard [Tue, 17 Nov 2009 21:20:32 +0000 (22:20 +0100)]
Search other CUs of the module when resolving declarations.

* 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.

14 years agoFixed aux_syscalls.stp for RHEL4.
David Smith [Tue, 17 Nov 2009 19:50:03 +0000 (13:50 -0600)]
Fixed aux_syscalls.stp for RHEL4.
* tapset/aux_syscalls.stp: Only define entries for IRQF_* flags if they
  exist.

14 years agoPR 10974 fix. Fixed aux_syscalls.stp for RHEL5.
David Smith [Tue, 17 Nov 2009 18:52:35 +0000 (12:52 -0600)]
PR 10974 fix.  Fixed aux_syscalls.stp for RHEL5.
* tapset/aux_syscalls.stp: Only define entries for
  IRQF_NOBALANCING/IRQF_IRQPOLL if they exist.

14 years agoUse DW_AT_MIPS_linkage_name when available in vardie_from_symtable.
Mark Wielaard [Tue, 17 Nov 2009 15:11:28 +0000 (16:11 +0100)]
Use DW_AT_MIPS_linkage_name when available in vardie_from_symtable.

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.

14 years agoRemove caching of emit_address for kernel modules and shared libraries.
Mark Wielaard [Tue, 17 Nov 2009 09:10:31 +0000 (10:10 +0100)]
Remove caching of emit_address for kernel modules and shared libraries.

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.

14 years agoExplain "cheat" comment in sym.c (_stp_tf_mmap_cb).
Mark Wielaard [Tue, 17 Nov 2009 08:24:41 +0000 (09:24 +0100)]
Explain "cheat" comment in sym.c (_stp_tf_mmap_cb).

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.

14 years agoPR 5150 partial fixes. Added support for nfs_file_fsync.
David Smith [Mon, 16 Nov 2009 21:53:33 +0000 (15:53 -0600)]
PR 5150 partial fixes.  Added support for nfs_file_fsync.
* 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.

14 years agoAdd testcase for retrieving $global vars from execs and shared libs.
Mark Wielaard [Mon, 16 Nov 2009 20:41:13 +0000 (21:41 +0100)]
Add testcase for retrieving $global vars from execs and shared libs.

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.

14 years agoPR10010 Support $globals in shared libraries.
Mark Wielaard [Mon, 16 Nov 2009 20:34:00 +0000 (21:34 +0100)]
PR10010 Support $globals in shared libraries.

* 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.

14 years agoAllow modules to trigger task_finder vma_tracker.
Mark Wielaard [Mon, 16 Nov 2009 19:59:16 +0000 (20:59 +0100)]
Allow modules to trigger task_finder vma_tracker.

* 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().

14 years agoPR 5150 partial fix. Support nfs_write_begin()/nfs_write_end().
David Smith [Mon, 16 Nov 2009 18:58:46 +0000 (12:58 -0600)]
PR 5150 partial fix.  Support nfs_write_begin()/nfs_write_end().
* tapset/nfs.stp: Added support for nfs_write_begin()/nfs_write_end(),
  which replaced nfs_prepare_write()/nfs_commit_write().

14 years agoAdd documentation for ansi.stp tapset.
Mark Wielaard [Mon, 16 Nov 2009 10:56:38 +0000 (11:56 +0100)]
Add documentation for ansi.stp tapset.

* tapset/ansi.stp: Add documentation for every function.
* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add chapter on ansi.

14 years agoPR10622 Search for extern $variables in symbol table.
Mark Wielaard [Mon, 16 Nov 2009 09:02:50 +0000 (10:02 +0100)]
PR10622 Search for extern $variables in symbol table.

* 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.

14 years agoDefine IRQF_ONESHOT for older kernels.
Mark Wielaard [Mon, 16 Nov 2009 09:33:20 +0000 (10:33 +0100)]
Define IRQF_ONESHOT for older kernels.

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.

14 years ago add definition of function irqflags_str()
Prerna Saxena [Mon, 16 Nov 2009 05:55:46 +0000 (11:25 +0530)]
 add definition of function irqflags_str()

14 years agoRegen indexes for interrupts-by-dev example
Josh Stone [Fri, 13 Nov 2009 23:21:06 +0000 (15:21 -0800)]
Regen indexes for interrupts-by-dev example

14 years agoDelete test commit file
Josh Stone [Fri, 13 Nov 2009 23:20:16 +0000 (15:20 -0800)]
Delete test commit file

14 years agoTurn ctime.stp documentation into proper Tapset Reference markup.
Mark Wielaard [Fri, 13 Nov 2009 13:42:17 +0000 (14:42 +0100)]
Turn ctime.stp documentation into proper Tapset Reference markup.

* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add chapter on ctime.stp.
* tapset/ctime.stp: Turn documentation into proper reference markup.

14 years agoAccept relative user module paths for -d.
Mark Wielaard [Fri, 13 Nov 2009 12:39:24 +0000 (13:39 +0100)]
Accept relative user module paths for -d.

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.

14 years agoAdding a new .meta file to run interrupts-by-dev.stp in test
Prerna Saxena [Fri, 13 Nov 2009 10:25:26 +0000 (15:55 +0530)]
Adding a new .meta file to run interrupts-by-dev.stp in test

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Thu, 12 Nov 2009 19:29:09 +0000 (14:29 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoSign uprobes.ko with the builder's certificate.
Dave Brolley [Thu, 12 Nov 2009 18:50:09 +0000 (13:50 -0500)]
Sign uprobes.ko with the builder's certificate.
Delete ownership & permissions tests from modsign.cxx and stap-serverd.

14 years agoAdd documentation for conversions.stp tapset functions.
Mark Wielaard [Thu, 12 Nov 2009 16:25:26 +0000 (17:25 +0100)]
Add documentation for conversions.stp tapset functions.

* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add conversions.stp chapter.
* tapset/conversions.stp: Add documentation for all functions.

14 years agoMark usymname as unprivileged.
Mark Wielaard [Thu, 12 Nov 2009 14:26:57 +0000 (15:26 +0100)]
Mark usymname as unprivileged.

* tapset/ucontext-symbols.stp (usymname): Add assert_is_myproc() and mark
  as unprivileged, just like usymdata().

14 years agoRelax restrictions on ownership and access permissions of signer's cert database.
Dave Brolley [Thu, 12 Nov 2009 15:23:59 +0000 (10:23 -0500)]
Relax restrictions on ownership and access permissions of signer's cert database.

14 years agoPR6979: fix loc2c handling of second and later pieces
Roland McGrath [Wed, 11 Nov 2009 20:14:30 +0000 (12:14 -0800)]
PR6979: fix loc2c handling of second and later pieces

* loc2c.c (translate): Reset stack state tracking after finishing each piece.

14 years agobuild: quiet down xmlto tests and runs
Frank Ch. Eigler [Wed, 11 Nov 2009 14:40:32 +0000 (09:40 -0500)]
build: quiet down xmlto tests and runs

* configure.ac (xmlto --stringparam check): Add >&/dev/null.
* doc/*/Makefile.am (xmlto runs): Ditto.

14 years agoA very simple patch that fix the networking tapset documentation.
Breno Leitao [Wed, 11 Nov 2009 13:24:41 +0000 (11:24 -0200)]
A very simple patch that fix the networking tapset documentation.

It references the file include/linux/if_ether.h as the one that contains
the protocol numbers and types.

14 years agoPR5916: Exploit kretprobe data storage area
Josh Stone [Wed, 11 Nov 2009 02:37:02 +0000 (18:37 -0800)]
PR5916: Exploit kretprobe data storage area

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.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 10 Nov 2009 19:26:34 +0000 (14:26 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoUse 'module_realpath' instead of overwriting 'path' in insert_module.
Dave Brolley [Tue, 10 Nov 2009 19:25:03 +0000 (14:25 -0500)]
Use 'module_realpath' instead of overwriting 'path' in insert_module.
Update comments to clearly explain the security issues involved.

14 years agoPR10877: Fix coveragedb.cxx to account for new components/token structure
Charley Wang [Tue, 10 Nov 2009 19:04:57 +0000 (14:04 -0500)]
PR10877: Fix coveragedb.cxx to account for new components/token structure

14 years agoPR10927: undocument nonexistent do/while construct
Frank Ch. Eigler [Tue, 10 Nov 2009 18:11:10 +0000 (13:11 -0500)]
PR10927: undocument nonexistent do/while construct

14 years agoPR10877: Give token* to each component instead of each probe_point
Charley Wang [Tue, 10 Nov 2009 17:22:18 +0000 (12:22 -0500)]
PR10877: Give token* to each component instead of each probe_point

14 years agoReplace the use of the global variable 'modpath' in diagnostic
Dave Brolley [Tue, 10 Nov 2009 17:12:54 +0000 (12:12 -0500)]
Replace the use of the global variable 'modpath' in diagnostic
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.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 10 Nov 2009 15:45:29 +0000 (10:45 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoAdd blank lines for formatting stapprobes.irq
Josh Stone [Tue, 10 Nov 2009 10:36:56 +0000 (02:36 -0800)]
Add blank lines for formatting stapprobes.irq

The line spacing is significant to the way the output is rendered.

14 years agoFix stapprobes.irq title and add to install list
Josh Stone [Tue, 10 Nov 2009 10:29:22 +0000 (02:29 -0800)]
Fix stapprobes.irq title and add to install list

(And incidentally re-enable quiet builds at the same time...)

14 years agoOnly .3stap.in files should be committed
Josh Stone [Tue, 10 Nov 2009 10:05:22 +0000 (02:05 -0800)]
Only .3stap.in files should be committed

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Mon, 9 Nov 2009 19:59:45 +0000 (14:59 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoDon't reference global variable modpath in insert_module and its helpers.
Dave Brolley [Mon, 9 Nov 2009 19:50:52 +0000 (14:50 -0500)]
Don't reference global variable modpath in insert_module and its helpers.
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.

14 years agoNormalized whitespace and comments.
David Smith [Mon, 9 Nov 2009 16:29:10 +0000 (10:29 -0600)]
Normalized whitespace and comments.

14 years agoIRQ tapset, sample script, testsuite, man page updates, etc
Prerna Saxena [Mon, 9 Nov 2009 06:06:11 +0000 (11:36 +0530)]
IRQ tapset, sample script, testsuite, man page updates, etc

14 years agoPR10923 Handle AT_frame_base given by DW_OP_call_frame_cfa in .debug_frame.
Mark Wielaard [Sun, 8 Nov 2009 21:03:31 +0000 (22:03 +0100)]
PR10923 Handle AT_frame_base given by DW_OP_call_frame_cfa in .debug_frame.

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.

14 years agoFix a comment typo
Josh Stone [Sat, 7 Nov 2009 02:17:19 +0000 (18:17 -0800)]
Fix a comment typo

14 years agoexpand comment on has_return=0 treatment of -L foo.return probes
Frank Ch. Eigler [Sat, 7 Nov 2009 01:57:55 +0000 (20:57 -0500)]
expand comment on has_return=0 treatment of -L foo.return probes

14 years agoConstrain $var-checking for -L of .return probes
Josh Stone [Sat, 7 Nov 2009 00:01:10 +0000 (16:01 -0800)]
Constrain $var-checking for -L of .return probes

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.

14 years agoPR10849: Support MAXSKIPPED handling on RHEL4 through implementation of atomic_cmpxchg
Roland Grunberg [Fri, 6 Nov 2009 19:09:06 +0000 (14:09 -0500)]
PR10849: Support MAXSKIPPED handling on RHEL4 through implementation of atomic_cmpxchg

14 years agoPR10820-cont': initialize the fields of empty token
Wenji Huang [Fri, 6 Nov 2009 02:03:32 +0000 (10:03 +0800)]
PR10820-cont': initialize the fields of empty token

* tapsets.cxx (dwarf_derived_probe::saveargs): fill fields.

14 years agoRevert change which loads uprobes.ko using insert_module.
Dave Brolley [Thu, 5 Nov 2009 23:17:50 +0000 (18:17 -0500)]
Revert change which loads uprobes.ko using insert_module.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Thu, 5 Nov 2009 20:23:35 +0000 (15:23 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoRevert previous change re: home directory og stap-server. Ensure it has 755 privileges.
Dave Brolley [Thu, 5 Nov 2009 20:07:37 +0000 (15:07 -0500)]
Revert previous change re: home directory og stap-server. Ensure it has 755 privileges.

14 years agoPR 9973: Sign uprobes.ko when it is created and load it using insert_module.
Dave Brolley [Thu, 5 Nov 2009 19:52:56 +0000 (14:52 -0500)]
PR 9973: Sign uprobes.ko when it is created and load it using insert_module.
Create home directory manually for stap-server.

14 years agoPR10466: print the set-intersection of variables retrieved from each branch
Wenji Huang [Wed, 4 Nov 2009 02:58:58 +0000 (10:58 +0800)]
PR10466: print the set-intersection of variables retrieved from each branch

* 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.

14 years agoAdd NEWS entry for stap-server initscript.
Dave Brolley [Tue, 3 Nov 2009 21:29:06 +0000 (16:29 -0500)]
Add NEWS entry for stap-server initscript.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 3 Nov 2009 21:22:36 +0000 (16:22 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

Conflicts:

Makefile.in
configure
doc/Makefile.in
doc/SystemTap_Tapset_Reference/Makefile.in
grapher/Makefile.in
testsuite/configure

14 years agoRedirect stap-serverd output to /dev/null.
Dave Brolley [Tue, 3 Nov 2009 19:27:12 +0000 (14:27 -0500)]
Redirect stap-serverd output to /dev/null.

14 years agoPR 10706 fixed by switching to unbuffered output.
David Smith [Tue, 3 Nov 2009 17:04:35 +0000 (11:04 -0600)]
PR 10706 fixed by switching to unbuffered output.
* runtime/staprun/mainloop.c (stp_main_loop): Switched to unbuffered
  output (instead of line buffered output).

This page took 0.058923 seconds and 5 git commands to generate.