]> sourceware.org Git - systemtap.git/log
systemtap.git
12 years agoPR11441 stop testing deprecated kernel.function(number).inline
Frank Ch. Eigler [Wed, 21 Mar 2012 00:49:42 +0000 (20:49 -0400)]
PR11441 stop testing deprecated kernel.function(number).inline

commit 440d9b00db23a1cb4b1 removed the code from the translator;
let's remove their tests from the testsuite.

12 years agotestsuite: disable rlimits test for !installtest_p
Frank Ch. Eigler [Tue, 20 Mar 2012 20:52:25 +0000 (16:52 -0400)]
testsuite: disable rlimits test for !installtest_p

12 years agoPR13878: Mention the module in @cast "not found" message
Josh Stone [Tue, 20 Mar 2012 20:04:18 +0000 (13:04 -0700)]
PR13878: Mention the module in @cast "not found" message

To help understand when @cast fails to find a type, mention the module
that was searched.  This may already hinted by the e->tok source
location, but stating the module explicitly is a useful hint if the user
left the module field to be implicitly filled in.

12 years agoMake uprobes_p() testsuite function find new inode-uprobes.
David Smith [Fri, 16 Mar 2012 19:11:04 +0000 (14:11 -0500)]
Make uprobes_p() testsuite function find new inode-uprobes.

* testsuite/lib/systemtap.exp (uprobes_p): Handle change in inode-uprobes
  registration function name.

12 years agostap.1: Document - (read from stdin) and -e SCRIPT.
Mark Wielaard [Fri, 16 Mar 2012 14:43:14 +0000 (15:43 +0100)]
stap.1: Document - (read from stdin) and -e SCRIPT.

12 years agoMove PERF probe family description before EXAMPLES section.
Mark Wielaard [Fri, 16 Mar 2012 14:41:28 +0000 (15:41 +0100)]
Move PERF probe family description before EXAMPLES section.

12 years agoFix PR13815 by fixing task_dentry_path() tapset function for RHEL5.
David Smith [Thu, 15 Mar 2012 18:04:35 +0000 (13:04 -0500)]
Fix PR13815 by fixing task_dentry_path() tapset function for RHEL5.

* tapset/dentry.stp (task_dentry_path): Fix for later RHEL5 kernels by
  handling 'struct path' renamed to 'struct vfs_path' (problem first
  noticed in kernel 2.6.18-308.el5).

12 years agoPR13847: simplify compiled-printf functions
Frank Ch. Eigler [Wed, 14 Mar 2012 19:16:37 +0000 (15:16 -0400)]
PR13847: simplify compiled-printf functions

* translate.cxx (emit_compiled_printfs): Emit flatter code, with
  fewer { variables; } that a bad compiler can translate to a large
  call frame.  This appears to allow normal (non-noinline) functions.

12 years agoPR13847: document CONFIG_DEBUG_INFO= default
Frank Ch. Eigler [Wed, 14 Mar 2012 17:16:46 +0000 (13:16 -0400)]
PR13847: document CONFIG_DEBUG_INFO= default

12 years agoPR13847: don't build debuginfo for stap modules
Frank Ch. Eigler [Wed, 14 Mar 2012 17:10:38 +0000 (13:10 -0400)]
PR13847: don't build debuginfo for stap modules

Suppressing the -g (by default) for stap_*.ko reduces compile time
and greatly reduces resulting .ko file size.  Since stap modules
are not usually probed themselves, this is a good default.

* buildrun.cxx (make_any_make_cmd): Prefix kbuildflags with CONFIG_DEBUG_INFO=.

12 years agoPR13661 - Added test cases
Chris Meek [Wed, 14 Mar 2012 15:59:15 +0000 (11:59 -0400)]
PR13661 - Added test cases

Also added a proc in testsuite/lib/systemtap.exp
to run as_non_root.

12 years agoAllow sysroot_sysenv.exp to run correct on machines without uprobes
William Cohen [Wed, 14 Mar 2012 15:43:50 +0000 (11:43 -0400)]
Allow sysroot_sysenv.exp to run correct on machines without uprobes

If the kernel does not have uprobes support, the sysroot_sysenv test
is untested. The catch and wait statements are only needed for the
case where the test is actually run. Having the catch statment run
when the test does not run causes an error.

12 years agoTest the .library modifier for RPATH awareness
Stan Cox [Wed, 14 Mar 2012 15:30:17 +0000 (11:30 -0400)]
Test the .library modifier for RPATH awareness

* library.exp (globbing_test):  Created from main for rpath testing.

12 years agoMake the .library modifier aware of RPATH
Stan Cox [Wed, 14 Mar 2012 01:54:15 +0000 (21:54 -0400)]
Make the .library modifier aware of RPATH

* tapsets.cxx (base_query): Treat .library("lib") as a wildcard if it
  isn't found in LD_LIBRARY_PATH
  (query_modue): Likewise.
  (query_one_library): Likewise.
  dwarf_builder::build): Likewise.

12 years agolangref.tex: Document foreach (value = key in array) variant.
Mark Wielaard [Tue, 13 Mar 2012 14:36:15 +0000 (15:36 +0100)]
langref.tex: Document foreach (value = key in array) variant.

12 years agolangref.tex: ref statement foreach subsection from arrays iteration section.
Mark Wielaard [Tue, 13 Mar 2012 14:05:54 +0000 (15:05 +0100)]
langref.tex: ref statement foreach subsection from arrays iteration section.

12 years agoAdapt to the inode-uprobes name change in tip
Josh Stone [Mon, 12 Mar 2012 21:42:28 +0000 (14:42 -0700)]
Adapt to the inode-uprobes name change in tip

We now have the functions register_uprobe -> uprobe_register and
unregister_uprobe -> uprobe_unregister.  The client API has otherwise
not changed.

I've made our code reflect the new names as much as possible, treating
the old names as the exceptional case, in case we ever want to remove
that compatibility.  For now, it should work in all cases, although I
don't have a full complement of old/new & exported/!exported kernels to
test with.

12 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Mark Wielaard [Mon, 12 Mar 2012 12:02:03 +0000 (13:02 +0100)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

12 years agoDocument new @var construct in NEWS, langref, beginners and stapprobes.
Mark Wielaard [Mon, 12 Mar 2012 12:00:40 +0000 (13:00 +0100)]
Document new @var construct in NEWS, langref, beginners and stapprobes.

12 years agoQuietly wget upstream sources.
Stan Cox [Mon, 12 Mar 2012 01:55:46 +0000 (21:55 -0400)]
Quietly wget upstream sources.

mysql.exp (wget): Add -q
postgres.exp (wget): Likewise
stap-tcl.sh (wget): Likewise
xulrunner.exp (wget): Likewise

12 years agotapset/guru-delay.stp (mdelay): Fix @us argument documentation typo.
Mark Wielaard [Sun, 11 Mar 2012 13:08:15 +0000 (14:08 +0100)]
tapset/guru-delay.stp (mdelay): Fix @us argument documentation typo.

12 years agotapset/dentry.stp (real_mount): Fix typo in @vfsmnt argument documentation.
Mark Wielaard [Sun, 11 Mar 2012 13:06:25 +0000 (14:06 +0100)]
tapset/dentry.stp (real_mount): Fix typo in @vfsmnt argument documentation.

12 years agoglobal_var_kernel.exp: tz_minuteswest can be negative.
Mark Wielaard [Sat, 10 Mar 2012 18:15:35 +0000 (19:15 +0100)]
global_var_kernel.exp: tz_minuteswest can be negative.

12 years agoPreliminary SDT semaphores with inode-uprobes
Josh Stone [Fri, 9 Dec 2011 17:24:31 +0000 (09:24 -0800)]
Preliminary SDT semaphores with inode-uprobes

This adds mmap tracking to our inode-uprobes client, so we may
manipulate SDT semaphores as modules come and go.  It seems to work ok,
though remaining sleepiness issues may need to be worked out in
task_finder2.

12 years agoGlobal vars don't need (cannot use) frame base in location descriptor.
Mark Wielaard [Fri, 9 Mar 2012 14:57:31 +0000 (15:57 +0100)]
Global vars don't need (cannot use) frame base in location descriptor.

And so they also don't need cfa_ops (CFI) to calculate the frame base.

12 years agoUpdate verbose log and semantic exception messages for local vs global vars.
Mark Wielaard [Fri, 9 Mar 2012 14:19:12 +0000 (15:19 +0100)]
Update verbose log and semantic exception messages for local vs global vars.

Global @vars (with @cu/src_name.c) have a fixed scope/CU and don't depend
on location/PC. Make that clean in verbose log and semantic error messages.

12 years agoMerge branch 'sysroot'
Josh Stone [Fri, 9 Mar 2012 00:53:38 +0000 (16:53 -0800)]
Merge branch 'sysroot'

Conflicts:
cmdline.cxx
cmdline.h
session.cxx
(Reconciled with commit 372c6458, "Long options rework.")

12 years agoPR12331: Add testcase for --sysroot and --sysenv
Wade Farnsworth [Thu, 8 Mar 2012 14:51:00 +0000 (07:51 -0700)]
PR12331: Add testcase for --sysroot and --sysenv

Signed-off-by: Wade Farnsworth <wade_farnsworth@mentor.com>
12 years agoPR12331: Document --sysroot and --sysenv
Wade Farnsworth [Thu, 8 Mar 2012 14:49:58 +0000 (07:49 -0700)]
PR12331: Document --sysroot and --sysenv

Update stap.1 and NEWS to document the new options.

12 years agoPR12331: Introduce stap options --sysroot and --sysenv
Wade Farnsworth [Thu, 8 Mar 2012 14:49:04 +0000 (07:49 -0700)]
PR12331: Introduce stap options --sysroot and --sysenv

This adds new command-line options to facilitate different file locations at
compile-time versus run-time when generating stap kernel modules for a remote
system:

1. --sysroot=DIR
   Specifies a separate filesystem for the remote system on the local
   system.  The following stap functionalities will make use of this:

   a. When compiling process and library probes with a remote filesystem path
      (e.g. process("/bin/foo") with --sysroot=/bar/baz).  In this case symbols
      will be taken from the local filesystem (/bar/baz/bin/foo), but the
      resulting .ko will still contain paths on the remote filesystem
      (/bin/foo).

   b. When passing a kernel release with -r (not a full path), the kernel
      build directory will be expected in the sysroot.

   c. When DWARF debug info is contained in a separate file from the
      executable, the sysroot is used to find the debug info files.

   d. All calls to find_executable() search the path passed in the
      argument env_path relative to the sysroot.  For example if
      PATH=/bin/foo, and --sysroot=/bar/baz is provided, then
      find_executable() called with env_path == "PATH" will search
      /bar/baz/bin/foo.

   e. stap attempts to detect if a path in a probe would be outside of the
      sysroot and errors appropriately.  This situation may occur, for
      example, if the path contains several ".." directories.

2. --sysenv=VAR=VALUE
   Specifies a different environment variable for the remote system as opposed
   to the local one, and that the value on the remote system should be used.
   Currently only valid env_path arguments to find_executable() are handled
   (i.e. PATH, LD_LIBRARY_PATH).  If --sysroot is provided and --sysenv
   is omitted, then the local environment relative to the sysroot will
   be used.

These options are disabled for systemtap clients.

Signed-off-by: Wade Farnsworth <wade_farnsworth@mentor.com>
12 years agoPR13819: avoid warning on CONFIG_DEBUG_PER_CPU_MAPS=y
Frank Ch. Eigler [Thu, 8 Mar 2012 23:20:42 +0000 (18:20 -0500)]
PR13819: avoid warning on CONFIG_DEBUG_PER_CPU_MAPS=y

* translate.cxx (c_unparser::emit_module_exit): Use
  for_each_possible_cpu instead of NR_CPU iteration, even
  though that should not matter.

12 years agoCannot use @var DWARF variables in tracepoints, warn, but don't crash.
Mark Wielaard [Thu, 8 Mar 2012 23:10:52 +0000 (00:10 +0100)]
Cannot use @var DWARF variables in tracepoints, warn, but don't crash.

12 years agoMake sure @var works for process.mark probes.
Mark Wielaard [Thu, 8 Mar 2012 22:32:49 +0000 (23:32 +0100)]
Make sure @var works for process.mark probes.

12 years agoguru-delay: add tapset documentation
Frank Ch. Eigler [Thu, 8 Mar 2012 21:12:37 +0000 (16:12 -0500)]
guru-delay: add tapset documentation

12 years agonew tapset: guru delays
Bryn M. Reeves [Thu, 8 Mar 2012 20:38:40 +0000 (15:38 -0500)]
new tapset: guru delays

12 years agoSelect most specific CU srcfile that matches @var("var@src") specification.
Mark Wielaard [Thu, 8 Mar 2012 14:20:08 +0000 (15:20 +0100)]
Select most specific CU srcfile that matches @var("var@src") specification.

dwarf_var_expanding_visitor::getcuscope: If there is a perfect match
select that CU, otherwise, select the CU srcfile that is most specific
(matching path/src file lenght is shortest).

12 years agoMerge branch 'at_var'
Mark Wielaard [Wed, 7 Mar 2012 19:11:46 +0000 (20:11 +0100)]
Merge branch 'at_var'

12 years agoPR13784 Allow defining a diffent CU source in @var.
Mark Wielaard [Wed, 7 Mar 2012 18:58:12 +0000 (19:58 +0100)]
PR13784 Allow defining a diffent CU source in @var.

Add cu_name to struct target_symbol. Set it in parse_target_symbol
to the string after @ in @var("somevar@some/src/file.c"). Make
target_symbol::sym_name() aware of @cu_name postfix (don't return it).
Add dwarf_var_expanding_visitor::getcuscope() which figures out the
CU DIE to use as scope if target_symbol has cu_name part. Extend
global_var.exp test to show new capability.

12 years agoRemove CONFIG_UTRACE use in testsuite and just depend on utrace_p/uprobes_p.
David Smith [Wed, 7 Mar 2012 18:05:39 +0000 (12:05 -0600)]
Remove CONFIG_UTRACE use in testsuite and just depend on utrace_p/uprobes_p.

* testsuite/buildok/pretty.stp: Moved uprobes tests to pretty-uprobes.stp.
* testsuite/buildok/pretty-uprobes.stp: New test.
* testsuite/buildok/ucontext-symbols-embedded.stp: Remove CONFIG_UTRACE
  check and let buildok.exp kfail the test if no uprobes.
* testsuite/buildok/ucontext-unwind-embedded.stp: Ditto.
* testsuite/buildok/utrace.stp: Ditto.
* testsuite/semko/utrace.stp: Remove CONFIG_UTRACE check and let semko.exp
  handle it.
* testsuite/semok/pretty.stp: Move uprobes tests to pretty-uprobes.stp.
* testsuite/semok/pretty-uprobes.stp: New test.
* testsuite/semok/thirtysix.stp: Move utrace tests to thirtysix-utrace.stp.
* testsuite/semok/thirtysix-utrace.stp: New test.
* testsuite/semok/utrace01.stp: Remove CONFIG_UTRACE check and let
  semok.exp handle it.
* testsuite/systemtap.base/bz10294.stp: Remove CONFIG_UTRACE check and let
  statement.exp handle it.
* testsuite/systemtap.base/bz6905.stp: Ditto.
* testsuite/systemtap.base/statement.exp: Handle no utrace by marking
  tests as untested.
* testsuite/systemtap.base/func_alias.exp: If no utrace, mark test as
  untested.
* testsuite/systemtap.pass1-4/buildok.exp: Kfail more utrace/uprobes tests.
* testsuite/systemtap.pass1-4/semko.exp: Ditto.
* testsuite/systemtap.pass1-4/semok.exp: Ditto.

12 years agoPR13661: Rewrote test cases to be more stable
Chris Meek [Wed, 7 Mar 2012 17:22:43 +0000 (12:22 -0500)]
PR13661: Rewrote test cases to be more stable

12 years agoIntroduce @var("varname") as alternative syntax for $varname.
Mark Wielaard [Tue, 6 Mar 2012 16:34:36 +0000 (17:34 +0100)]
Introduce @var("varname") as alternative syntax for $varname.

Adds a field target_name and a method sym_name() to struct target_symbol
to be used by the parser and tapsets translator so $name and @var("name")
can be used interchanably. Adds a testcase at_var.exp to test this for
various combinations of uprobes, kprobes, parameters, variables, arrays,
fields access, pretty printing and taking addresses.

12 years agoFix kallsyms_expand_symbol.exp regression after commit 4d51e8.
Mark Wielaard [Wed, 7 Mar 2012 14:22:57 +0000 (15:22 +0100)]
Fix kallsyms_expand_symbol.exp regression after commit 4d51e8.

In dwflpp::find_variable_and_frame_base() when we do a search for a search
for an alternative vardie we need to saved the actual vardie content in
case we fail, no just copy the pointer to the vardie data...

12 years agoPR10622. Better workaround for GCC PR51410. Find external var DIE location.
Mark Wielaard [Wed, 7 Mar 2012 12:35:56 +0000 (13:35 +0100)]
PR10622. Better workaround for GCC PR51410. Find external var DIE location.

Some GCC versions would output duplicate external variables, one
without a location attribute. If so, try to find the other if it
exists in the same scope. This is a better solution than the previous
fallback solution of just trying to get the address in the symbol table.
That could result in picking the wrong external variable with the same
name (but from a different CU). Add test case to show this works better.

12 years agoCorrect uninitialized-var compiler warnings in uprobes.c
ch huang [Wed, 7 Mar 2012 12:16:05 +0000 (07:16 -0500)]
Correct uninitialized-var compiler warnings in uprobes.c

12 years agoPR13661: Suppress core dumps for RLIMIT_AS and RLIMIT_STACK
Frank Ch. Eigler [Tue, 6 Mar 2012 20:24:25 +0000 (15:24 -0500)]
PR13661: Suppress core dumps for RLIMIT_AS and RLIMIT_STACK

Do this since we don't want core dumps accumulating on a server.

12 years agoPR13661: Set both max and current rlimits
Chris Meek [Tue, 6 Mar 2012 20:04:06 +0000 (15:04 -0500)]
PR13661: Set both max and current rlimits

Now the --rlimit-* options can only be used to lower the rlimits
when not run as root.

12 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 6 Mar 2012 19:51:54 +0000 (14:51 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

12 years agoMore updates to client_args.exp test suite.
Dave Brolley [Tue, 6 Mar 2012 19:51:32 +0000 (14:51 -0500)]
More updates to client_args.exp test suite.

12 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 6 Mar 2012 19:31:16 +0000 (14:31 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

Conflicts:
cmdline.cxx
cmdline.h
session.cxx

12 years agoPR13661: Added test cases
Chris Meek [Tue, 6 Mar 2012 19:20:10 +0000 (14:20 -0500)]
PR13661: Added test cases

12 years agoLong options rework.
Dave Brolley [Tue, 6 Mar 2012 17:48:32 +0000 (12:48 -0500)]
Long options rework.

- Don't rely on the order of stap_long_options for indexing
  - getopt_long now returns all option ids
- Same for options processing in stap-serverd
- Update client_args test suite

12 years agoPR13609: Kill sub-processes with SIGTERM, regardless of last incoming signal.
Frank Ch. Eigler [Tue, 6 Mar 2012 16:05:16 +0000 (11:05 -0500)]
PR13609: Kill sub-processes with SIGTERM, regardless of last incoming signal.

12 years agoPR13661: Added NEWS and man page entries
Chris Meek [Mon, 5 Mar 2012 22:36:34 +0000 (17:36 -0500)]
PR13661: Added NEWS and man page entries

12 years agoPR13661: Relax Server Rlimits (move to stap)
Chris Meek [Mon, 5 Mar 2012 21:16:31 +0000 (16:16 -0500)]
PR13661: Relax Server Rlimits (move to stap)

  Added rlimit options to stap:
    --rlimit-as=NUM
    --rlimit-cpu=NUM
    --rlimit-nproc=NUM
    --rlimit-stack=NUM
    --rlimit-fsize=NUM
  These options will set the appropriate rlimits to whatever is
  provided.
  Removed all rlimit handling from stap-serverd.cxx. These values
  can be specified in ~stap-server/.systemtap/rc.
  Default values are added to ~stap-server/.systemtap/rc on install.

12 years agoMark inline embedded-C expressions returning AF_INET/AF_INET6 as unprivileged.
David Smith [Mon, 5 Mar 2012 20:49:14 +0000 (14:49 -0600)]
Mark inline embedded-C expressions returning AF_INET/AF_INET6 as unprivileged.

* tapset/inet_sock.stp: Marked inline embedded-C expressions returning
  AF_INET/AF_INET6 in functions as unprivileged.
* tapset/ip.stp: Ditto.
* tapset/nfs_proc.stp: Ditto.
* tapset/rpc.stp: Ditto.

12 years agoInitial changes for supporting IPv6 in the compile server and client.
Dave Brolley [Fri, 2 Mar 2012 19:36:45 +0000 (14:36 -0500)]
Initial changes for supporting IPv6 in the compile server and client.

12 years agotestsuite.apps: similar changes for other TESTAPPS=<onetest> case
Frank Ch. Eigler [Mon, 5 Mar 2012 15:43:26 +0000 (10:43 -0500)]
testsuite.apps: similar changes for other TESTAPPS=<onetest> case

12 years agotestsuite python: be sensitive to TESTAPPS=python rather than TESTAPPS=tcl
Frank Ch. Eigler [Mon, 5 Mar 2012 15:40:55 +0000 (10:40 -0500)]
testsuite python: be sensitive to TESTAPPS=python rather than TESTAPPS=tcl

* testsuite/systemtap.apps/python.exp: Fix typo in applicability test.

12 years agoRevert "work in progress" that zapped AUTHORS
Frank Ch. Eigler [Sat, 3 Mar 2012 17:38:21 +0000 (12:38 -0500)]
Revert "work in progress" that zapped AUTHORS

This reverts commit d112b4e178fe21a82f55390305e99dc491922cb8.

12 years agoAdd new systemtap.apps for python
Stan Cox [Sat, 3 Mar 2012 15:09:34 +0000 (10:09 -0500)]
Add new systemtap.apps for python

* python.exp: New.  Test python sdt markers.
* python2.stp python3.stp:  New.  Backtracing and variable display tapset.

12 years agowork in progress
Stan Cox [Tue, 17 Jan 2012 16:57:36 +0000 (11:57 -0500)]
work in progress

12 years agoClean out tracking for blocks that are merged into other blocks
William Cohen [Fri, 2 Mar 2012 17:13:53 +0000 (12:13 -0500)]
Clean out tracking for blocks that are merged into other blocks

The IO system in linux often merges blocks together to reduce the number of
IO operations sent to IO devices. If nothing is done the tracking for
merged IO operations can fill up the associative arrays, causing the script
to fail.  This problem was reported in rhbz743591. This commit resolves
this problem.

12 years agoRevert "Clean out tracking for blocks that are merged into other blocks"
William Cohen [Fri, 2 Mar 2012 17:13:13 +0000 (12:13 -0500)]
Revert "Clean out tracking for blocks that are merged into other blocks"

This reverts commit 0102305e3573868b852faf5183451676beaedbe6.

12 years agoClean out tracking for blocks that are merged into other blocks
William Cohen [Fri, 2 Mar 2012 17:07:21 +0000 (12:07 -0500)]
Clean out tracking for blocks that are merged into other blocks

The IO system in linux often merges blocks together to reduce the number of
IO operations sent to IO devices. If nothing is done the tracking for
merged IO operations can fill up the associative arrays, causing the script
to fail.  This problem was reported in rhbz743591. This commit resolves
this problem.

12 years agoMatch Requires to existing package layout.
Stan Cox [Thu, 1 Mar 2012 04:11:32 +0000 (23:11 -0500)]
Match Requires to existing package layout.

* systemtap.spec (main): Only BuildRequires gcc-c++
(devel): Requires gcc make
(testsuite): Requires gcc gcc-c++ make glibc-devel and possibly glibc-devel.i386

12 years agoRegenerate systemtap.examples indexes.
Mark Wielaard [Wed, 29 Feb 2012 22:49:00 +0000 (23:49 +0100)]
Regenerate systemtap.examples indexes.

12 years agoBZ613992: new enospc.stp sample script
Lukas Czerner [Wed, 29 Feb 2012 17:38:21 +0000 (12:38 -0500)]
BZ613992: new enospc.stp sample script

12 years agoPR13721 (partial): Move cross-file WARNING before setting arity
Josh Stone [Wed, 29 Feb 2012 02:48:04 +0000 (18:48 -0800)]
PR13721 (partial): Move cross-file WARNING before setting arity

For PR10799, there is a WARNING check for when globals are used across
different files.  However, set_arity was done first, so any exception
there would bypass the check.

* elaborate.cxx (symresolution_info::find_var): Warn before set_arity.

12 years agodwflpp::iterate_over_libraries arm uses /lib/ld-linux.so.3 as interpreter.
Mark Wielaard [Mon, 27 Feb 2012 21:29:13 +0000 (22:29 +0100)]
dwflpp::iterate_over_libraries arm uses /lib/ld-linux.so.3 as interpreter.

12 years agoFix PR13646 (partial) by adding IPv6 support to tcp.sendmsg/tcp.disconnect.
David Smith [Mon, 27 Feb 2012 18:56:29 +0000 (12:56 -0600)]
Fix PR13646 (partial) by adding IPv6 support to tcp.sendmsg/tcp.disconnect.

* tapset/tcp.stp (tcp.sendmsg): Added 'family' member.
  (tcp.disconnect): Ditto.
* testsuite/buildok/tcp-detailed.stp: Added tests for new 'family'
  members.

12 years agoFix PR13646 (partial) by adding IPv6 support to tcp.setsockopt.
David Smith [Mon, 27 Feb 2012 18:37:28 +0000 (12:37 -0600)]
Fix PR13646 (partial) by adding IPv6 support to tcp.setsockopt.

* tapset/tcp.stp (tcp_sockopt_str): Updated with more IPV4 socket
  options.  Uses #defines instead of magic constants.
  (tcp_ipv6_sockopt_str): New function.
  (tcp.setsockopt): Added 'family' member.  Added IPv6 support.
* testsuite/buildok/tcp-all-probes.stp: Updated.
* testsuite/buildok/tcp-detailed.stp: Added support for
  tcp.ipv[46].setsockopt and tcp.ipv[46].setsockopt.return.
* testsuite/buildok/tcp-embedded.stp: Added tcp_ipv6_sockopt_str() compile
  test.

12 years agoFixed buildok.exp by moving comments out of switch statement.
David Smith [Mon, 27 Feb 2012 17:46:46 +0000 (11:46 -0600)]
Fixed buildok.exp by moving comments out of switch statement.

* testsuite/systemtap.pass1-4/buildok.exp: Fixed testcase by moving
  comments out of switch statement (which tcl doesn't like).

12 years agoAdd BuildRequires for gcc and gcc-c++
Stan Cox [Mon, 27 Feb 2012 17:11:23 +0000 (12:11 -0500)]
Add BuildRequires for gcc and gcc-c++

* systemtap.spec (BuildRequires): Add gcc and gcc-c++
(Requires):  Remove gcc and gcc-c++

12 years agoNormalize my name in .mailmap.
Mark Wielaard [Sun, 26 Feb 2012 17:17:40 +0000 (18:17 +0100)]
Normalize my name in .mailmap.

12 years agokernel/sched.c is no more, use kernel/time.c in examples and tests.
Mark J. Wielaard [Sat, 25 Feb 2012 16:05:48 +0000 (17:05 +0100)]
kernel/sched.c is no more, use kernel/time.c in examples and tests.

kernel commit v3.2-rc1-319-g391e43d
"sched: Move all scheduler bits into kernel/sched/"
removed kernel/sched.c. Use kernel/time.c in langref.tex and
stapprobes.3stap examples and systemtap.stress/current.stp test instead.

12 years agoPR13609: Added a concurrency test case
Chris Meek [Fri, 24 Feb 2012 19:19:01 +0000 (14:19 -0500)]
PR13609: Added a concurrency test case

12 years agoPR13609: Fixed interrupts and race conditions
Chris Meek [Fri, 24 Feb 2012 19:17:29 +0000 (14:17 -0500)]
PR13609: Fixed interrupts and race conditions

 - Interrupts are now handled properly. They
   wait for any outstanding threads to finish
   before exiting (unless a timeout occurs or
   another interrupt happens)
 - client_version is now local
 - spawned_pids[] is now protected

12 years agoUpdate uprobes_p() to fail if we're on ia64.
David Smith [Fri, 24 Feb 2012 18:29:13 +0000 (12:29 -0600)]
Update uprobes_p() to fail if we're on ia64.

* testsuite/lib/systemtap.exp (uprobes_p): Fail if we're using classical
  utrace and we're on an ia64 system.

12 years agoDon't do exelib prelink tests if the system doesn't have prelink.
David Smith [Fri, 24 Feb 2012 15:46:09 +0000 (09:46 -0600)]
Don't do exelib prelink tests if the system doesn't have prelink.

* testsuite/systemtap.exelib/exelib.exp: On platforms with no prelink
  executable, don't try the prelink tests.

12 years agoSupport fallback kernel dump_stack() with or without bp argument. cont.
Mark J. Wielaard [Fri, 24 Feb 2012 13:37:48 +0000 (14:37 +0100)]
Support fallback kernel dump_stack() with or without bp argument. cont.

Original patch forgot to add the new autoconf file...

12 years agoDo not probe ARM assembly language __switch_to function in current.stp test
William Cohen [Fri, 24 Feb 2012 13:32:37 +0000 (08:32 -0500)]
Do not probe ARM assembly language __switch_to function in current.stp test

The systemtap.stress/current.stp test did not work on ARM because the
test was trying to probe a function that is an assembly language function
on ARM. This patch avoids probing assembly language function.

12 years agoMarked twentyeightprime.stp as KFAIL if no uprobes in buildok.exp.
David Smith [Thu, 23 Feb 2012 22:08:51 +0000 (16:08 -0600)]
Marked twentyeightprime.stp as KFAIL if no uprobes in buildok.exp.

* testsuite/systemtap.pass1-4/buildok.exp: Marked twentyeightprime.stp as
  KFAIL if no uprobes.  Grouped the different types of kfails together.

12 years agoIncrease systemtap.base/warnings.exp timeout for slow processors
William Cohen [Thu, 23 Feb 2012 18:19:33 +0000 (13:19 -0500)]
Increase systemtap.base/warnings.exp timeout for slow processors

On arm machines this test takes much longer than 30 seconds to get started.
Increased the timeout to allow for slow machines.

12 years agosyscalltimes sample: tolerate partially specified filters without type problems
Felix Lin [Thu, 23 Feb 2012 16:36:51 +0000 (11:36 -0500)]
syscalltimes sample: tolerate partially specified filters without type problems

12 years agoFix PR13646 (partial) by updating ipaddr testcase.
David Smith [Wed, 22 Feb 2012 19:56:31 +0000 (13:56 -0600)]
Fix PR13646 (partial) by updating ipaddr testcase.

* testsuite/systemtap.base/ipaddr.exp: Change start_server() and
  stop_server() procedure names to avoid clashing with procedures in
  testsuite/lib/systemtap.exp.

12 years agoUpdate stappaths paths to reflect reality a bit better
Timo Juhani Lindfors [Tue, 7 Feb 2012 10:38:39 +0000 (12:38 +0200)]
Update stappaths paths to reflect reality a bit better

12 years agomention CVE in NEWS
Frank Ch. Eigler [Wed, 22 Feb 2012 18:11:35 +0000 (13:11 -0500)]
mention CVE in NEWS

12 years agoFix PR13646 (partial) by adding IPv6 support to _struct_sockaddr_u().
David Smith [Tue, 21 Feb 2012 20:38:55 +0000 (14:38 -0600)]
Fix PR13646 (partial) by adding IPv6 support to _struct_sockaddr_u().

* tapset/aux_syscalls.stp (_struct_sockaddr_u): Fixed IPv6 support and
  updated IPv4 support.

12 years agoFix PR13646 (partial) by adding IPv6 support to 'tcp.receive'.
David Smith [Tue, 21 Feb 2012 19:22:45 +0000 (13:22 -0600)]
Fix PR13646 (partial) by adding IPv6 support to 'tcp.receive'.

* tapset/tcp.stp: Added IPv6 support to tcp.receive by splitting it into
  tcp.ipv4.receive and tcp.ipv6.receive (and making tcp.receive link to
  both).  Added a 'family' variable.
* testsuite/buildok/tcp-detailed.stp: Added compile testcase for
  tcp.ipv4.receive and tcp.ipv6.receive.
* testsuite/systemtap.base/ipaddr.exp: Improved script output regexp.
* testsuite/systemtap.base/ipaddr2.stp: Works for IPv4 and IPv6.

12 years agoFix PR13646 (partial) by improving inline embedded-C expressions using AF_INET.
David Smith [Tue, 21 Feb 2012 17:29:29 +0000 (11:29 -0600)]
Fix PR13646 (partial) by improving inline embedded-C expressions using AF_INET.

* tapset/inet_sock.stp: Add '/* pure */' to all inline embedded-C
  expressions returning AF_INET/AF_INET6 so they can be optimized away.
* tapset/ip.stp: Ditto.
* tapset/nfs_proc.stp: Ditto.
* tapset/rpc.stp: Ditto.
* tapset/tcp.stp: Ditto.

12 years agoPR13714 - Make sure REG_STATE.cfa_is_expr is always set correctly.
Mark Wielaard [Tue, 21 Feb 2012 14:08:58 +0000 (15:08 +0100)]
PR13714 - Make sure REG_STATE.cfa_is_expr is always set correctly.

runtime/unwind.c (processCFI): Always set REG_STATE.cfa_is_expr and
add new sanity checks to make sure the cfa definition rules are sane.

Since the cfa expr pointer and cfa register/offset rule shared a union
not setting REG_STATE.cfa_is_expr could result in compute_expr ()
wrongly being called and using the register/offset as expr pointer.

12 years agoFix PR13646 (partial) by updating spec file to require 'nc' for testsuite.
David Smith [Mon, 20 Feb 2012 22:51:33 +0000 (16:51 -0600)]
Fix PR13646 (partial) by updating spec file to require 'nc' for testsuite.

* systemtap.spec: Add 'nc' as a requirement for the 'systemtap-testsuite'
  rpm (since the new 'ipaddr' testcase uses it).

12 years agoFix PR13646 (partial) by adding a testcase and some fixes.
David Smith [Mon, 20 Feb 2012 22:48:38 +0000 (16:48 -0600)]
Fix PR13646 (partial) by adding a testcase and some fixes.

* tapset/ip.stp (format_ipaddr): Marked as 'pure' so that it can be
  optimized away.  Fixed handling of IPv6 addresses.
  (__ip_sock_saddr): Added support for IPv6 sockets.
  (__ip_sock_daddr): Ditto.
* tapset/tcp.stp: Added 'family' variable to tcp.recvmsg and
  tcp.recvmsg.return probes.
* tapset/nfs_proc.stp (AF_INET): Marked as 'pure' so that it can be
  optimized away.
  (AF_INET6): New function.
* testsuite/buildok/nfs_proc-embedded.stp: Added AF_INET6() compile test.
* testsuite/buildok/tcp-detailed.stp: Prints 'family' variable in
  tcp.recvmsg and tcp.recvmsg.return probes.
* testsuite/systemtap.base/ipaddr.exp: New testcase.
* testsuite/systemtap.base/ipaddr.txt: Ditto.
* testsuite/systemtap.base/ipaddr1.stp: Ditto.
* testsuite/systemtap.base/ipaddr2.stp: Ditto.

12 years agoFix PR13646 (partial) by handling IPv6 support in a module (for RHEL[56]).
David Smith [Thu, 16 Feb 2012 16:19:00 +0000 (10:19 -0600)]
Fix PR13646 (partial) by handling IPv6 support in a module (for RHEL[56]).

* tapset/ip.stp: Handle the case where IPv6 support is in a module (as
  it is on RHEL5 and RHEL6).

12 years agoFix PR13646 (partial) by properly converting IPv6 addresses to strings.
David Smith [Wed, 15 Feb 2012 22:04:47 +0000 (16:04 -0600)]
Fix PR13646 (partial) by properly converting IPv6 addresses to strings.

* tapset/ip.stp: Added the format_ipaddr() function to handle converting
  an IP address to a string.  The ip_ntop() function now just calls
  format_ipaddr().  Added the __ip_sock_family() function to return the IP
  address family for a 'struct inet_sock'.
* tapset/inet_sock.stp: The inet_get_ip_source() function uses
  format_ipaddr() to format an IP address as a string.  The
  daddr_to_string() function has been deprecated.
* tapset/rpc.stp: Make addr_from_rqst_str() handle IPv6 addresses.
* tapset/tcp.stp: Use format_ipaddr() instead of ip_ntop() to convert IP
  adresses to strings.
* runtime/loc2c-runtime.h (kderef_buffer): New function.
* testsuite/buildok/inet_sock-embedded.stp: Deprecated daddr_to_string()
  function test.
* testsuite/buildok/ip-embedded.stp: Added format_ipaddr() and
  __ip_sock_family() tests.
* NEWS: Mention daddr_to_string() deprecation.
* stap.1: Ditto.

12 years agoFixed PR13694 by returning proper value for tcp.sendmsg 'sock' variable.
David Smith [Wed, 15 Feb 2012 17:02:06 +0000 (11:02 -0600)]
Fixed PR13694 by returning proper value for tcp.sendmsg 'sock' variable.

* tapset/tcp.stp (tcp.sendmsg): Returns proper value for 'sock' local
  variable.

12 years agoUpdate 3 semok tests for RHEL4.
David Smith [Wed, 15 Feb 2012 15:20:57 +0000 (09:20 -0600)]
Update 3 semok tests for RHEL4.

* testsuite/semok/entry01.stp: Added 'kernel.function("filp_open")' probe
  point for RHEL4 (which doesn't have 'kernel.function("do_filp_open")'.
* testsuite/semok/entry03.stp: Ditto.
* testsuite/semok/kretprobe-data.stp: Added
  'kernel.function("path_lookup")' probe point for RHEL4 (which doesn't
  have 'kernel.function("do_path_lookup")'.

12 years agoMark semok uprobes tests as untested on platforms with no uprobes.
David Smith [Wed, 15 Feb 2012 15:19:14 +0000 (09:19 -0600)]
Mark semok uprobes tests as untested on platforms with no uprobes.

* testsuite/systemtap.pass1-4/semok.exp: Mark several tests as 'untested'
  on platforms that don't have uprobes.

12 years agoMake sure that procfs.c runtime code include <linux/mount.h>
William Cohen [Tue, 14 Feb 2012 16:02:51 +0000 (11:02 -0500)]
Make sure that procfs.c runtime code include <linux/mount.h>

On the arm architecture the <linux/mount.h> isn't pulled in by other
code.  This one line change makes sure that the include file gets
pulled in.  This allows the test using the procfs to build on arm.

12 years ago(Fixed PR13681) Bulk mode scripts no longer leave the module behind on rhel4.
David Smith [Fri, 10 Feb 2012 21:45:20 +0000 (15:45 -0600)]
(Fixed PR13681) Bulk mode scripts no longer leave the module behind on rhel4.

* runtime/staprun/relay_old.c (close_relayfs_files): 0 can be a valid
  relay_fd[cpu] value.
  (open_relayfs_files): On error, initialize relay_fd[cpu] to -1, not 0.
  (init_oldrelayfs): Initialize relay_fd[cpu] to -1, not 0.

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