]> sourceware.org Git - systemtap.git/log
systemtap.git
13 years agoImprove sdt asm test coverage.
Stan Cox [Fri, 21 Jan 2011 03:10:36 +0000 (22:10 -0500)]
Improve sdt asm test coverage.

* sdt_asm.S:  Improve coverage of tested registers and values.
* sdt_asm.stp: Likewise.

13 years agoPR12413, Provide TID information in kprocess.create and kprocess.release
Jan Kratochvil [Thu, 20 Jan 2011 21:40:26 +0000 (16:40 -0500)]
PR12413, Provide TID information in kprocess.create and kprocess.release

13 years agoPR12412: Make the text agree with the example (should be reads)
William Cohen [Thu, 20 Jan 2011 20:47:11 +0000 (15:47 -0500)]
PR12412: Make the text agree with the example (should be reads)

13 years agoAllow sdt to avoid application defined min/max macros.
Stan Cox [Wed, 19 Jan 2011 20:52:14 +0000 (15:52 -0500)]
Allow sdt to avoid application defined min/max macros.

* sdt.h:  Surround limits inclusion with push_macro and pop_macro.

13 years agoPR12419: fix x86 uprobes decoding of "repnz ret"
Roland McGrath [Wed, 19 Jan 2011 19:23:43 +0000 (11:23 -0800)]
PR12419: fix x86 uprobes decoding of "repnz ret"

13 years agoBZ669082: support powerpc prior to 2.6.15, resolving conflict with PR4186
Frank Ch. Eigler [Wed, 19 Jan 2011 18:53:50 +0000 (13:53 -0500)]
BZ669082: support powerpc prior to 2.6.15, resolving conflict with PR4186

* buildrun.cxx (compile_pass): Omit passing of ARCH=foo for
  ancient powerpc.  This enables native ARCH=ppc64 builds,
  but sacrifices ppc-target cross-architecture cross-compilation.
  (make_tracequery_kmod, make_typequery_kmod): Ditto.

13 years agoPR12411 cont'd: use enum type decl
Frank Ch. Eigler [Wed, 19 Jan 2011 13:20:22 +0000 (08:20 -0500)]
PR12411 cont'd: use enum type decl

* tapsets.cxx (sdt_uprobe_var_expanding_visitor): Make regwidths
  an enum type decl, not an anonymous-enum-typed variable.  Move
  DRI macro #define/#undef just around its use.

13 years agoRHBZ669751: old ia64 kernels lack task_pt_regs()
Frank Ch. Eigler [Tue, 18 Jan 2011 20:54:51 +0000 (15:54 -0500)]
RHBZ669751: old ia64 kernels lack task_pt_regs()

... so define it in terms of ia64_task_regs()

13 years agoSwitch to using a register width table instead of heuristic code.
Stan Cox [Wed, 19 Jan 2011 12:09:01 +0000 (07:09 -0500)]
Switch to using a register width table instead of heuristic code.

       * tapsets.cxx (sdt_uprobe_var_expanding_visitor): Add DRI and regwidths.
       Change dwarf_regs to be a regname/regwidth pair.  Change initializer.
       * (sdt_uprobe_var_expanding_visitor::visit_target_symbol):  Use it.

13 years agoFixed BZ669740 by making target_set.stp use syscall probes in kernels < 2.6.18.
David Smith [Tue, 18 Jan 2011 20:14:13 +0000 (14:14 -0600)]
Fixed BZ669740 by making target_set.stp use syscall probes in kernels < 2.6.18.

* tapset/target_set.stp: Dwarfless probes don't work in kernels < 2.6.18.
  So, fall back to 'syscall' probes for those kernels (instead of
  'nd_syscall' probes.

13 years agoPR 11445: Check that assert_is_my_proc check is within all uprobes/utrace callback...
Dave Brolley [Tue, 18 Jan 2011 19:39:08 +0000 (14:39 -0500)]
PR 11445: Check that assert_is_my_proc check is within all uprobes/utrace callback entry points

Add comment explaining why a check for is_myproc() is not generated as a
safety net for process.end probes and their variants.

13 years agosystemtap.apps infrastructure fixes.
Stan Cox [Mon, 17 Jan 2011 22:47:43 +0000 (17:47 -0500)]
systemtap.apps infrastructure fixes.

mysql.exp (stap-mysql.sh): Use push/pop_macro to avoid mysql max/min macros.
xulrunner.exp (stap-xul.sh): Make JAVA_HOME platform independent.

13 years agoCleanup warnings caused by CFLAGS correction.
Dave Brolley [Mon, 17 Jan 2011 18:53:56 +0000 (13:53 -0500)]
Cleanup warnings caused by CFLAGS correction.

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Mon, 17 Jan 2011 18:44:34 +0000 (13:44 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

Conflicts:
configure
testsuite/configure

13 years agoConfiguration problems.
Dave Brolley [Mon, 17 Jan 2011 18:29:50 +0000 (13:29 -0500)]
Configuration problems.

- CFLAGS was being cleared in configure.ac (oldCFLAGS typo)
- CXXFLAGS was not always being set (CXFXLAGS typo)
- pick up $(AM_CFLAGS) and @PIECFLAGS@ in all C compilations in Makefile.am

13 years agobump version numbers to 1.5, for future release cycle
Frank Ch. Eigler [Mon, 17 Jan 2011 17:45:10 +0000 (12:45 -0500)]
bump version numbers to 1.5, for future release cycle

13 years agodatestamp release release-1.4
Frank Ch. Eigler [Mon, 17 Jan 2011 11:31:41 +0000 (06:31 -0500)]
datestamp release

13 years agoREADME: build instructions suggest elfutils version 0.151
Frank Ch. Eigler [Sat, 15 Jan 2011 00:48:16 +0000 (19:48 -0500)]
README: build instructions suggest elfutils version 0.151

13 years agoPR12399: make sdt.h semaphores visibility("hidden")
Frank Ch. Eigler [Fri, 14 Jan 2011 22:39:21 +0000 (17:39 -0500)]
PR12399: make sdt.h semaphores visibility("hidden")

13 years agoNEWS: sdt.h v3
Frank Ch. Eigler [Fri, 14 Jan 2011 17:38:24 +0000 (12:38 -0500)]
NEWS: sdt.h v3

13 years agoPR 10657: Document changes in NEWS and in stap.1.
Dave Brolley [Fri, 14 Jan 2011 21:00:25 +0000 (16:00 -0500)]
PR 10657: Document changes in NEWS and in stap.1.

13 years agoFix myproc-unprivileged in embedded_expr
Josh Stone [Fri, 14 Jan 2011 19:13:30 +0000 (11:13 -0800)]
Fix myproc-unprivileged in embedded_expr

The macro assert_is_myproc() forms a statement, so we need to wrap it
in ({}) to use it in an expression list.

* translate.cxx (c_unparser::visit_embedded_expr): Wrap stmt as expr.

13 years agoPR 10657 - semi-unprivileged tapset embedded-C functions.
Dave Brolley [Fri, 14 Jan 2011 18:19:21 +0000 (13:19 -0500)]
PR 10657 - semi-unprivileged tapset embedded-C functions.

Including the comment /* myproc-unprivileged */ within an embedded C
tapset function or embedded C expression makes it available for use
by unprivileged users and also automatically adds a call to
assert_is_myproc() within the function or expression (i.e. it is
equivalent to including the comment /* unprivileged */ and
manually adding the the call to assert_is_myproc).

All instances within the tapset source tree have been updated.

13 years agoPR11756 - adding warnings for deprecated declarations
Lukas Berk [Fri, 14 Jan 2011 15:32:47 +0000 (10:32 -0500)]
PR11756 - adding warnings for deprecated declarations
Added the --version-check  flag, this will check if systemtap
constructors being used are version dependent. If so, a warning
detailing what syntax element is displayed.

13 years agoPR12115: defeat uninitialized-variable warnings
Frank Ch. Eigler [Fri, 14 Jan 2011 00:21:19 +0000 (19:21 -0500)]
PR12115: defeat uninitialized-variable warnings

13 years agoPR12115: defeat uninitialized-variable warning
Frank Ch. Eigler [Fri, 14 Jan 2011 00:21:19 +0000 (19:21 -0500)]
PR12115: defeat uninitialized-variable warning

13 years agoNEWS: tweak --remote blurb wording
Frank Ch. Eigler [Thu, 13 Jan 2011 20:57:47 +0000 (15:57 -0500)]
NEWS: tweak --remote blurb wording

13 years agoAUTHORS bump
Josh Stone [Thu, 13 Jan 2011 03:51:40 +0000 (19:51 -0800)]
AUTHORS bump

13 years agoFix for undefined STAPCONF_PERF_STRUCTPID
Josh Stone [Thu, 13 Jan 2011 02:09:09 +0000 (18:09 -0800)]
Fix for undefined STAPCONF_PERF_STRUCTPID

13 years agoFix paragraph indentation of ssl options
Josh Stone [Thu, 13 Jan 2011 01:20:20 +0000 (17:20 -0800)]
Fix paragraph indentation of ssl options

13 years agoDisable auto-unpriv when --remote is used
Josh Stone [Thu, 13 Jan 2011 01:19:09 +0000 (17:19 -0800)]
Disable auto-unpriv when --remote is used

13 years agoPR12115: Document --remote in NEWS, stap.1, and --help
Josh Stone [Thu, 13 Jan 2011 01:18:17 +0000 (17:18 -0800)]
PR12115: Document --remote in NEWS, stap.1, and --help

13 years agoMerge branch 'master' into remote
Josh Stone [Wed, 12 Jan 2011 20:13:06 +0000 (12:13 -0800)]
Merge branch 'master' into remote

13 years agoIntegrate sdt-compat.h into testsuite sdt.h
Stan Cox [Wed, 12 Jan 2011 03:17:22 +0000 (22:17 -0500)]
Integrate sdt-compat.h into testsuite sdt.h

Makefile.am: Use sdt_types.h instead of sdt-compat.h
Makefile.in: Likewise.
tapsets.cxx: Likewise.
testsuite/sys/sdt.h: Integrate sdt-compat.h.
sdt-compat.h: Remove.
sdt_types.h: New.

13 years agoPR11203: Provide default init functions for initscript/systemtap.
Dave Brolley [Tue, 11 Jan 2011 16:08:08 +0000 (11:08 -0500)]
PR11203: Provide default init functions for initscript/systemtap.

Used on plattforms where /etc/rc.d/init.d/functions is not available.

13 years agoPR11203: Provide default init functions for stap-server.
Dave Brolley [Mon, 10 Jan 2011 19:42:46 +0000 (14:42 -0500)]
PR11203: Provide default init functions for stap-server.

Used on plattforms where /etc/rc.d/init.d/functions is not available.

13 years agotapset compat: irq tracepoints to use @cast() for $action
Frank Ch. Eigler [Mon, 10 Jan 2011 18:41:26 +0000 (13:41 -0500)]
tapset compat: irq tracepoints to use @cast() for $action

13 years agoyear bump
Frank Ch. Eigler [Mon, 10 Jan 2011 17:01:35 +0000 (12:01 -0500)]
year bump

13 years agoPR12168: fix testcase to unsuppress warnings
Frank Ch. Eigler [Mon, 10 Jan 2011 16:53:37 +0000 (11:53 -0500)]
PR12168: fix testcase to unsuppress warnings

13 years agocompatibility: perf_event.h updates for kernel 2.6.37
Frank Ch. Eigler [Fri, 7 Jan 2011 21:22:49 +0000 (16:22 -0500)]
compatibility: perf_event.h updates for kernel 2.6.37

* runtime/autoconf-perf-structpid.c: New file.
* buildrun.cxx: Use it to define STAPCONF_PERF_STRUCTPID.
* runtime/perf.c: Respect it for perf_event_create_kernel_counter param 3.

13 years agopfiles test: adapt to upstream kernel commit 53c3fa206
Frank Ch. Eigler [Fri, 7 Jan 2011 19:04:54 +0000 (14:04 -0500)]
pfiles test: adapt to upstream kernel commit 53c3fa206

sk_peercred->pid -> sk_peer_pid->....

13 years agotestsuite: accept post-PR11736 hit-count message
Frank Ch. Eigler [Fri, 7 Jan 2011 19:03:38 +0000 (14:03 -0500)]
testsuite: accept post-PR11736 hit-count message

13 years agoInelegant workaround for systemtap.apps mysql.exp's use of min/max
Stan Cox [Fri, 7 Jan 2011 21:14:52 +0000 (16:14 -0500)]
Inelegant workaround for systemtap.apps mysql.exp's use of min/max

* mysql.exp (do_abi_check): skip it.
(probes_mysql.h): #undef min/max prior to sdt.h inclusion, then re-#define

13 years agoParenthesize probe arguments properly.
Stan Cox [Tue, 4 Jan 2011 22:13:37 +0000 (17:13 -0500)]
Parenthesize probe arguments properly.

* sdt-compat.h (STAP_CAST): Parenthesize.
(STAP_PROBE{1,10}): Parenthisize kprobe arguments too.

* sdt_misc.c (buz): Test probing a boolean expression.

* sdt_misc.exp (sup_flags): Compile tests with -Wall -Werror

* sdt_misc.stp (test_probe_1): New.

* sdt_misc_.d (test_probe_1): New.

* sdt_types.c (arr_struct, primary_colors_var): Only declare if needed.

13 years agoPR12172: make implied --unprivileged --use-server emit messages only if verbose
Frank Ch. Eigler [Thu, 23 Dec 2010 16:30:04 +0000 (11:30 -0500)]
PR12172: make implied --unprivileged --use-server emit messages only if verbose

13 years agoConditionalize sdt tests resulting in templates with anonymous types.
Stan Cox [Wed, 22 Dec 2010 18:44:47 +0000 (13:44 -0500)]
Conditionalize sdt tests resulting in templates with anonymous types.

* sdt_types.c (arr_struct, primary_colors, incomplete_struct_type):
Make conditional.

* sdt_types.stp: Likewise.

13 years agoPR12172: make unprivileged mode default under certain conditions.
Dave Brolley [Wed, 22 Dec 2010 16:16:27 +0000 (11:16 -0500)]
PR12172: make unprivileged mode default under certain conditions.

--unprivileged --use-server is now the default for invocations requiring
phase 5 for members of the group stapusr who are not also members of
the group stapdev.

13 years agoFixed PR12338 by updating softirq.entry/softirq.exit probes for 2.6.37+.
David Smith [Tue, 21 Dec 2010 21:53:33 +0000 (15:53 -0600)]
Fixed PR12338 by updating softirq.entry/softirq.exit probes for 2.6.37+.

* tapset/irq.stp: Added 'vec_nr' variable to softirq.entry/softirq.exit
  probes.  Used @defined() to make sure old variables are present.
* testsuite/buildok/irq-detailed.stp: Updated softirq.entry/softirq.exit
  test.

13 years agoEditing the Beginner's guide section on target variables.
William Cohen [Tue, 21 Dec 2010 19:08:36 +0000 (14:08 -0500)]
Editing the Beginner's guide section on target variables.

13 years agoMake syscall.nfsservctl* tests optional for kernel 2.6.35.9-64.fc14.x86_64.
David Smith [Tue, 21 Dec 2010 16:33:15 +0000 (10:33 -0600)]
Make syscall.nfsservctl* tests optional for kernel 2.6.35.9-64.fc14.x86_64.

* testsuite/buildok/syscalls2-detailed.stp: Make syscall.nfsservctl and
  syscall.nfsservctl.return tests optional.

13 years agotweak wording/suppressibility of .function/.statement warning
Frank Ch. Eigler [Tue, 21 Dec 2010 02:57:54 +0000 (21:57 -0500)]
tweak wording/suppressibility of .function/.statement warning

13 years agoAdd warning for supposedly line-oriented .function() probes.
Przemyslaw Pawelczyk [Tue, 21 Dec 2010 00:55:07 +0000 (01:55 +0100)]
Add warning for supposedly line-oriented .function() probes.

13 years ago2010-12-20 David Smith <dsmith@redhat.com>
David Smith [Mon, 20 Dec 2010 22:47:19 +0000 (16:47 -0600)]
2010-12-20  David Smith  <dsmith@redhat.com>

Fix PR11388 by handling nd_syscall.mmap changes for 2.6.33+ kernels.

* tapset/nd_syscalls.stp: Use arch-generic sys_mmap_pgoff() for
  nd_syscall.mmap2 if kernel version is 2.6.33 or higher.
* tapset/i386/nd_syscalls.stp: Only use arch-specific nd_syscall.mmap*
  probes if kernel version is less than 2.6.33.
* tapset/ia64/nd_syscalls.stp: Ditto.
* tapset/s390/nd_syscalls.stp: Ditto.
* tapset/powerpc/nd_syscalls.stp: Ditto.  Also add missing
  nd_syscall.sigaltstack probe.
* tapset/x86_64/nd_syscalls.stp: Ditto.  Also move sys_mmap_pgoff() probe
  to nd_syscall.mmap2 alias (instead of nd_syscall.mmap alias).
* testsuite/buildok/nd_syscalls-detailed.stp: Add generic nd_syscall.mmap2
  test if kernel version is 2.6.33 or higher.
* testsuite/buildok/nd_syscalls-arch-detailed.stp: New test.
* testsuite/lib/stap_buildok.exp: Add new nd_syscalls-arch-detailed.stp
  test to known ia64 failures.

13 years agoAdd information about pretty printing the the SystemTap Beginners guide.
William Cohen [Mon, 20 Dec 2010 21:41:38 +0000 (16:41 -0500)]
Add information about pretty printing the the SystemTap Beginners guide.

13 years agohandle #!/usr/bin/env
rho@redhat.com [Mon, 20 Dec 2010 15:32:42 +0000 (10:32 -0500)]
handle #!/usr/bin/env

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
William Cohen [Mon, 20 Dec 2010 15:17:05 +0000 (10:17 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

13 years agotweak stapprobes blurb for .function -vs- .statement probes
Frank Ch. Eigler [Mon, 20 Dec 2010 15:15:57 +0000 (10:15 -0500)]
tweak stapprobes blurb for .function -vs- .statement probes

13 years agoRemove abusive use of monospace in langref.pdf
William Cohen [Mon, 20 Dec 2010 15:13:18 +0000 (10:13 -0500)]
Remove abusive use of monospace in langref.pdf

Expansion of Adrien Kunysz's patch in PR 12335. Use the \textt rather
than \tt to get the proper use of monospace fonts.

13 years agoClear semaphore when stap_uprobe slot is released.
Stan Cox [Sat, 18 Dec 2010 03:55:33 +0000 (22:55 -0500)]
Clear semaphore when stap_uprobe slot is released.

uprobes-common.c (stap_uprobe_change_{plus,minus}): Clear semaphore.

13 years agoPR 11922: Disable checking of DNS names on compile-server certificates.
Dave Brolley [Fri, 17 Dec 2010 18:58:29 +0000 (13:58 -0500)]
PR 11922: Disable checking of DNS names on compile-server certificates.

The client now issues a warning and accepts the certificate.

13 years agoFix PR11388 by handling syscall.mmap changes for 2.6.33+ kernels.
David Smith [Thu, 16 Dec 2010 20:55:25 +0000 (14:55 -0600)]
Fix PR11388 by handling syscall.mmap changes for 2.6.33+ kernels.

* tapset/syscalls.stp: Use arch-generic sys_mmap_pgoff() for syscall.mmap2
  if kernel version is 2.6.33 or higher.
* tapset/i386/syscalls.stp: Only use arch-specific syscall.mmap* probes if
  kernel version is less than 2.6.33.
* tapset/ia64/syscalls.stp: Ditto.
* tapset/powerpc/syscalls.stp: Ditto.
* tapset/s390/syscalls.stp: Ditto.
* tapset/x86_64/syscalls.stp: Ditto.  Also move sys_mmap_pgoff() probe to
  syscall.mmap2 alias (instead of syscall.mmap alias).
* testsuite/buildok/syscalls-detailed.stp: Add generic syscall.mmap2 test
  if kernel version is 2.6.33 or higher.
* testsuite/buildok/syscalls-arch-detailed.stp: Only test arch-specific
  syscall.mmap* probes if kernel version is less than 2.6.33.

13 years agoFix s390 stack size problem.
David Smith [Thu, 16 Dec 2010 20:48:09 +0000 (14:48 -0600)]
Fix s390 stack size problem.

* tapset/s390/nd_syscalls.stp (get_32mmap_args): Lower size of temporary
  variable to avoid stack size error.

13 years agoFix RHEL4 compile problem in runtime/staprun/staprun.c.
David Smith [Thu, 16 Dec 2010 20:37:57 +0000 (14:37 -0600)]
Fix RHEL4 compile problem in runtime/staprun/staprun.c.

* runtime/staprun/staprun.c (remove_module): Only call prctl() if
  PR_SET_NAME is defined.

13 years agoFixed PR12330 by changing tapset/tty.stp to avoid ppc64 compile problem.
David Smith [Thu, 16 Dec 2010 20:01:31 +0000 (14:01 -0600)]
Fixed PR12330 by changing tapset/tty.stp to avoid ppc64 compile problem.

* tapset/tty.stp (_struct_winsize_u): Removed embedded-C function.
  (tty.resize): Removed calls to _struct_winsize_u() and just uses
  user_ushort() to get values in user memory.
* tapset/uconversions.stp (user_ushort): New function.
  (user_ushort_warn): Ditto.
* testsuite/buildok/conversions-embedded.stp: Added user_ushort() and
  user_ushort_warn() tests.
* testsuite/buildok/tty-embedded.stp: Removed (since all embedded-C
  functions have been removed from tty.stp).

13 years agoA discussion about @defined to SystemTap Beginners Guide.
William Cohen [Wed, 15 Dec 2010 23:00:04 +0000 (18:00 -0500)]
A discussion about @defined to SystemTap Beginners Guide.

13 years agoMove casting example in Beginners guide to extra/cast_example.stp
William Cohen [Wed, 15 Dec 2010 22:30:13 +0000 (17:30 -0500)]
Move casting example in Beginners guide to extra/cast_example.stp

13 years agoPR12309 part 2: ditch delayed_work for timers
Frank Ch. Eigler [Wed, 15 Dec 2010 20:13:46 +0000 (15:13 -0500)]
PR12309 part 2: ditch delayed_work for timers

* runtime/transport/transport.c: Remove all references to workqueues,
  delayed_work*; replace with same sort of timer use in relay_v2.c.

13 years agoPR12309 part 1, use atomic_t for delayed_work state signaling
Frank Ch. Eigler [Mon, 13 Dec 2010 18:50:02 +0000 (13:50 -0500)]
PR12309 part 1, use atomic_t for delayed_work state signaling

There was a possible race condition between multiple processes opening
the transport .ctl file concurrently.

* runtime/transport/transport.h (_stp_ctl_attached): Become atomic_t.
* runtime/transport/transport.c (_stp_attach, _stp_detach):
  Stop messing with it.
* runtime/transport/control.c (_stp_ctl_open|close_cmd): Use atomic_t
  and reorder logic to defeat race condition.

13 years agoruntime: let staprun -d identify itself differently in task->comm
Frank Ch. Eigler [Mon, 13 Dec 2010 18:39:06 +0000 (13:39 -0500)]
runtime: let staprun -d identify itself differently in task->comm

staprun.c (remove_module): Use prctl() to set task name to "staprun-d".

13 years agoState which version systemtap @cast available in.
William Cohen [Wed, 15 Dec 2010 19:22:38 +0000 (14:22 -0500)]
State which version systemtap @cast available in.

13 years agoFree the URL of the ssl socket when finished with it.
Dave Brolley [Wed, 15 Dec 2010 17:24:05 +0000 (12:24 -0500)]
Free the URL of the ssl socket when finished with it.

13 years agoPR 11922: Allow ip address as host name to match ip address in server certificate.
Dave Brolley [Wed, 15 Dec 2010 17:04:57 +0000 (12:04 -0500)]
PR 11922: Allow ip address as host name to match ip address in server certificate.

The default certificate function (SSL_AuthCertificate) fails to match DNS names
which resemble ip addresses. It then calls our badCertHandler callback. There
we get the chance to manually match the ip address.

13 years agoAdd description of @cast operator to beginners guide.
William Cohen [Wed, 15 Dec 2010 16:55:43 +0000 (11:55 -0500)]
Add description of @cast operator to beginners guide.

13 years agoPR12115: New support for multiple remote targets
Josh Stone [Wed, 15 Dec 2010 00:15:45 +0000 (16:15 -0800)]
PR12115: New support for multiple remote targets

* session.cxx (systemtap_session::clone): Returns a systemtap_session
  for a requested arch/release.  If one such was already created, go
  ahead and use it.
* remote.h (run -> start, finish): Separate the launch from the wait.
* remote.cxx (direct, ssh_remote): Implement separated start and finish.
  (ssh_remote::ssh_remote): Use systemtap_session::clone to get a
  session matching the remote target.
* main.cxx (pass_5): Take a vector of targets to run in parallel.
  (cleanup): Perform cleanup for subsessions too.
  (main): Loop over all specified remote_uris.

13 years agoPR12115: Prepare utils for multiple inferiors
Josh Stone [Tue, 14 Dec 2010 00:46:34 +0000 (16:46 -0800)]
PR12115: Prepare utils for multiple inferiors

We'll need to juggle multiple child process if we are to run multiple
remote targets in parallel.

* util.cxx (spawned_pid -> spawned_pids): No longer an only child,
  hopefully it won't act so spoiled anymore.
  (wait_for_spawn -> stap_waitpid): Now wait for a specific pid. Clear
  it from the set when dead (but not forgotten).
  (stap_spawn): Like stap_system, but return the pid and don't wait up.
  (stap_system): Call stap_spawn, then wait for it.
  (kill_stap_spawn): Must be fair, kill them all.

13 years agoPR12115: Give remote-ssh a tty, and quiet status messages
Josh Stone [Tue, 14 Dec 2010 00:45:52 +0000 (16:45 -0800)]
PR12115: Give remote-ssh a tty, and quiet status messages

Having a tty lets ssh pass signals through to the remote process.

* remote.cxx (ssh_remote): Use -t with ssh commands, and -q with ssh and
  scp commands.

13 years agoPR12115: Early support for remote execution
Josh Stone [Wed, 1 Dec 2010 02:37:15 +0000 (18:37 -0800)]
PR12115: Early support for remote execution

This corresponds to the second draft posted on bugzilla.

* Makefile.am: Add remote.cxx to the build.
* Makefile.in: Regenerate.
* buildrun.cxx (run_pass -> make_run_command): Rename, and don't
  actually run the thing yet, so we can control *where* we run it.
* main.cxx (pass_5): Take a target where we want to run.
  (main): Check if we have a remote uri, and go with it.
* remote.cxx: New, define classes for local and ssh execution.
* remote.h: New, define the generic remote class.
* session.cxx (systemtap_session::systemtap_session): Move the logic to
  normalize machine architecture names to util.cxx.
  (systemtap_session::parse_cmdline): Add --remote.
* session.h (systemtap_session::remote_uris): New.
* util.cxx (normalize_machine): Moved from session.cxx.
  (wait_for_spawn): Refactor common code.
  (stap_system): Use wait_for_spawn.
  (stap_system_read): New, reads stdout from subprocess.
  Like popen, but with c++ streams and a signal-managed pid.

13 years agoSplit user_int64 in two on i386
Josh Stone [Tue, 14 Dec 2010 22:47:56 +0000 (14:47 -0800)]
Split user_int64 in two on i386

* tapset/uconversions.stp (user_int64): Since __stp_get_user can't do
  64-bit reads on i386, we must read the value in two parts.
  (user_uint64): Make this just a wrapper for user_int64.

13 years agoFix user memory access on s390x.
David Smith [Tue, 14 Dec 2010 21:50:15 +0000 (15:50 -0600)]
Fix user memory access on s390x.

* tapset/uconversions.stp (__STP_GET_USER): Switch back to using
  __stp_get_user() instead of kread() to read user memory.

13 years agoImprove 386 precision op handling.
Stan Cox [Tue, 14 Dec 2010 19:57:07 +0000 (14:57 -0500)]
Improve 386 precision op handling.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor): Add probe_type.
(visit_target_symbol): Make default precision signed, unless asm probe.

* sdt_misc.exp (sdt_types):  Allow v1/v2 i386 unsigned test xfail

* sdt_types.c (unsigned_short_int_var, unsigned_int_var): Simplify

* sdt_types.stp: Likewise.

13 years agoAdd information about user-space stack backtrace to Beginners Guide.
William Cohen [Mon, 13 Dec 2010 22:14:55 +0000 (17:14 -0500)]
Add information about user-space stack backtrace to Beginners Guide.

13 years agoFix RHEL5 (older gcc) compile problem.
David Smith [Mon, 13 Dec 2010 19:56:04 +0000 (13:56 -0600)]
Fix RHEL5 (older gcc) compile problem.

* tapsets.cxx (visit_target_symbol): Fix RHEL5 (older gcc) compile
  problem by changing '__SIZEOF_LONG__' to 'sizeof(long)'.

13 years agoFixed PR 12314 by correctly including linux/inotify.h.
David Smith [Mon, 13 Dec 2010 19:41:07 +0000 (13:41 -0600)]
Fixed PR 12314 by correctly including linux/inotify.h.

* tapset/aux_syscalls.stp: Look for CONFIG_INOTIFY_USER (along with
  CONFIG_INOTIFY) when including linux/inotify.h.

13 years agoDon't use /tmp as an arbitrary argument for -I or -R when testing.
Dave Brolley [Mon, 13 Dec 2010 19:23:36 +0000 (14:23 -0500)]
Don't use /tmp as an arbitrary argument for -I or -R when testing.

It could contain .stp files which affect the test outcome.

13 years agoCompare sdt probe args as is.
Stan Cox [Fri, 10 Dec 2010 22:55:49 +0000 (17:55 -0500)]
Compare sdt probe args as is.

sdt_types.stp:  Don't mask negative probe args

13 years agoFix sdt probe arg qi/si fetching on 386
Stan Cox [Fri, 10 Dec 2010 15:48:20 +0000 (10:48 -0500)]
Fix sdt probe arg qi/si fetching on 386

* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol):
Use long for default precision if "N@" is missing.

* sdt_misc.exp (pbtype_flags):  Don't use -g for STAP_SDT_V{2,3}
(V3 asm test): Fix arch detection

* sdt_types.stp: Mask negative arg values.

13 years agoUpdate copyright information in Tapset Reference Manual.
William Cohen [Thu, 9 Dec 2010 15:28:17 +0000 (10:28 -0500)]
Update copyright information in Tapset Reference Manual.

13 years agoEdit tapset documentation comments
William Cohen [Thu, 9 Dec 2010 01:40:24 +0000 (20:40 -0500)]
Edit tapset documentation comments

Made the following changes to the documentation comments:
   - Remove the "General Syntax:" lines.
   - Remove trailing '.' for the summaries.
   - Make parameter information phrases rather than sentences

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
William Cohen [Thu, 9 Dec 2010 01:39:48 +0000 (20:39 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
rho@redhat.com [Wed, 8 Dec 2010 23:24:47 +0000 (18:24 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

13 years agoBug 12099 - resolve script interpreters
rho@redhat.com [Wed, 8 Dec 2010 23:22:35 +0000 (18:22 -0500)]
Bug 12099 - resolve script interpreters

13 years agotestcase for 12099 - test script interpreter resolution
rho@redhat.com [Wed, 8 Dec 2010 23:18:56 +0000 (18:18 -0500)]
testcase for 12099 - test script interpreter resolution

13 years agoEdit the tapset documentation for conversions.stp
William Cohen [Wed, 8 Dec 2010 22:23:08 +0000 (17:23 -0500)]
Edit the tapset documentation for conversions.stp

Made the following changes to the documentation comments:
  - Remove the "General Syntax:" lines.
  - Remove trailing '.' for the summaries.

13 years agoEdit the tapset documentation for conversions-guru.stp
William Cohen [Wed, 8 Dec 2010 22:19:56 +0000 (17:19 -0500)]
Edit the tapset documentation for conversions-guru.stp

Made the following changes to the documentation comments:
  - Remove the "General Syntax:" lines.
  - Remove trailing '.' for the summaries.

13 years agoEdit the tapset documentation for context-unwind.stp
William Cohen [Wed, 8 Dec 2010 22:16:12 +0000 (17:16 -0500)]
Edit the tapset documentation for context-unwind.stp

Made the following changes to the documentation comments:
  - Remove the "General Syntax:" lines.
  - Remove trailing '.' for the summaries.

13 years agoEdit the tapset documentation for context-symbols.stp
William Cohen [Wed, 8 Dec 2010 22:12:14 +0000 (17:12 -0500)]
Edit the tapset documentation for context-symbols.stp

Made the following changes to the documentation comments:
  - Remove the "General Syntax:" lines.
  - Remove trailing '.' for the summaries and argumentation information.
  - Fix a few typos.

13 years agoEdit the tapset documentation for context.stp
William Cohen [Wed, 8 Dec 2010 22:06:21 +0000 (17:06 -0500)]
Edit the tapset documentation for context.stp

Made the following changes to the documentation comments:
  - Remove the "General Syntax:" lines.
  - Remove trailing '.' for the summaries.
  - Add title and description for cpuid function

13 years agoRemove the "General Syntax:" lines from ansi.stp
William Cohen [Wed, 8 Dec 2010 21:51:43 +0000 (16:51 -0500)]
Remove the "General Syntax:" lines from ansi.stp

13 years agoAdd the queue_stat.stp tapset to the Tapset reference manual.
William Cohen [Wed, 8 Dec 2010 21:42:15 +0000 (16:42 -0500)]
Add the queue_stat.stp tapset to the Tapset reference manual.

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
rho@redhat.com [Wed, 8 Dec 2010 19:31:41 +0000 (14:31 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

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