]> sourceware.org Git - systemtap.git/log
systemtap.git
13 years agoAdd the rhelchannels.sh
William Cohen [Thu, 17 Mar 2011 14:20:58 +0000 (10:20 -0400)]
Add the rhelchannels.sh

13 years agoPR3823: Re-add po/POTFILES.in
Lukas Berk [Wed, 16 Mar 2011 12:14:03 +0000 (08:14 -0400)]
PR3823: Re-add po/POTFILES.in

13 years agoPR3823: Added gettext functionality to runtime
Lukas Berk [Wed, 16 Mar 2011 02:01:53 +0000 (22:01 -0400)]
PR3823: Added gettext functionality to runtime
also added a few missed strings, regenerated the po/* files

13 years agoForce 64-bit compiles when needed.
David Smith [Tue, 15 Mar 2011 18:53:14 +0000 (13:53 -0500)]
Force 64-bit compiles when needed.

* testsuite/systemtap.base/rep_ret.exp: Make sure we force 64-bit
  compiles.
* testsuite/systemtap.base/vta-test.exp: Ditto.  Also reindent main loop.

13 years agoUpdated __ip_sock_daddr() for 2.6.38 kernels.
David Smith [Mon, 14 Mar 2011 21:01:46 +0000 (16:01 -0500)]
Updated __ip_sock_daddr() for 2.6.38 kernels.

* tapset/ip.stp (__ip_sock_daddr): Updated for 2.6.38.

13 years agofix comment typo re. %I[] gcc asm-operand syntax for powerpc
Frank Ch. Eigler [Mon, 14 Mar 2011 19:15:58 +0000 (15:15 -0400)]
fix comment typo re. %I[] gcc asm-operand syntax for powerpc

13 years agoPR3823: mention top-level update-po make target
Frank Ch. Eigler [Mon, 14 Mar 2011 02:52:33 +0000 (22:52 -0400)]
PR3823: mention top-level update-po make target

13 years agoPR3823: Added a po/README file for I18N
Lukas Berk [Mon, 14 Mar 2011 01:50:59 +0000 (21:50 -0400)]
PR3823: Added a po/README file for I18N

13 years agoMake user module build id check set_fs aware
Stan Cox [Sat, 12 Mar 2011 04:57:28 +0000 (23:57 -0500)]
Make user module build id check set_fs aware

* sym.c (_stpbuild_id_check): Properly bracket get_user via set_fs.

13 years agoPR3823: Updating po/* files with regenerated strings
Lukas Berk [Fri, 11 Mar 2011 20:56:13 +0000 (15:56 -0500)]
PR3823: Updating po/* files with regenerated strings

13 years agoPR3823: Added Gettext functionality to elaborate.cxx
Lukas Berk [Fri, 11 Mar 2011 20:51:57 +0000 (15:51 -0500)]
PR3823: Added Gettext functionality to elaborate.cxx

tested on 32 and 64 bit architecture

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Dave Brolley [Fri, 11 Mar 2011 19:42:11 +0000 (14:42 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

13 years agoRun cert management commands silently.
Dave Brolley [Fri, 11 Mar 2011 19:41:43 +0000 (14:41 -0500)]
Run cert management commands silently.

13 years agoAdd test case for glibc setjmp/longjmp sdt probes.
Roland McGrath [Fri, 11 Mar 2011 17:47:27 +0000 (09:47 -0800)]
Add test case for glibc setjmp/longjmp sdt probes.

* testsuite/systemtap.base/setjmp.c: New file.
* testsuite/systemtap.base/setjmp.exp: New file.
* testsuite/systemtap.base/setjmp.stp: New file.

13 years agoBuild -u and uprobes_path in a single argument
Josh Stone [Fri, 11 Mar 2011 02:45:35 +0000 (18:45 -0800)]
Build -u and uprobes_path in a single argument

Optional arguments in getopt have to be part of the same word, so this
lets staprun read the uprobes_path correctly.  This was a regression
from the change to vectorized commands.

* buildrun.cxx (make_run_command): Append uprobes_path to -u.

13 years agoFixed several problems with usymbols.exp (BZ639344).
David Smith [Thu, 10 Mar 2011 19:29:18 +0000 (13:29 -0600)]
Fixed several problems with usymbols.exp (BZ639344).

* testsuite/systemtap.context/usymbols.exp: Fixed several problems.
  (1) For ppc64/s390x, the test script wouldn't compile since syscall
  wrappers turned the probe arguments into 'long int's.  This problem was
  fixed by using @cast(). (BZ639344)
  (2) On some platforms, such as f12 ppc64, gcc defaults to outputting
  32-bit executables, even though the system has a 64-bit kernel.  Now the
  testcase always forces 64-bit compile when needed (to ensure we're
  testing what we think we're testing).
  (3) If the full path to the test executable gets too long, systemtap
  will truncate the start of the path in the script output.  This caused
  the test to fail.  Now we check for a path ending in the correct
  filename.
  (4) On a system with 64-bit and 32-bit support, if the 64-bit test
  failed, the 32-bit test wasn't executed.  Now both tests are always
  executed.
  (5) For readability's sake, the main loop was reindented properly.

13 years agoTest harness improvements.
Dave Brolley [Wed, 9 Mar 2011 17:29:22 +0000 (12:29 -0500)]
Test harness improvements.

13 years agoPR 12540 (rework) - Could not obtain information on password file" build error
Dave Brolley [Tue, 8 Mar 2011 21:10:30 +0000 (16:10 -0500)]
PR 12540 (rework) - Could not obtain information on password file" build error

We should only attempt to sign the uprobes.ko module if we are root or
stap-server.

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Dave Brolley [Tue, 8 Mar 2011 16:42:50 +0000 (11:42 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

Conflicts:
runtime/staprun/configure

13 years agoPR 12543 - PKGLIBEXECDIR undefined, causing uprobes.ko build to fail
Dave Brolley [Tue, 8 Mar 2011 16:38:55 +0000 (11:38 -0500)]
PR 12543 - PKGLIBEXECDIR undefined, causing uprobes.ko build to fail

Always substitute the correct path for PKGLIBEXECDIR in client/server cert
management scripts when installing; not just when --enable-server is
configured.

13 years agoPR 12540 - Could not obtain information on password file
Dave Brolley [Tue, 8 Mar 2011 16:36:56 +0000 (11:36 -0500)]
PR 12540 - Could not obtain information on password file

While building uprobes.ko. Ensure that the required tools and resources
are in place before attempting to digitaly sign the uprobes.ko module.

13 years agotweak stap -v memory-usage message
Frank Ch. Eigler [Mon, 7 Mar 2011 23:53:30 +0000 (18:53 -0500)]
tweak stap -v memory-usage message

* util.cxx (getmemusage): Output as single _F() instead of several separate chunks
* regenerate po/*.

13 years agoconvert po/fr.po from iso-8859-1 to utf-8
Frank Ch. Eigler [Mon, 7 Mar 2011 19:01:03 +0000 (14:01 -0500)]
convert po/fr.po from iso-8859-1 to utf-8

13 years agoadd po/fr.po to transifex database
Frank Ch. Eigler [Mon, 7 Mar 2011 18:28:09 +0000 (13:28 -0500)]
add po/fr.po to transifex database

13 years ago(powerpc) Fixed PR12341 by using kernel code instead of custom code.
David Smith [Mon, 7 Mar 2011 18:36:11 +0000 (12:36 -0600)]
(powerpc) Fixed PR12341 by using kernel code instead of custom code.

* runtime/loc2c-runtime.h: For powerpc, use the kernel's own macros in
  deref/store_deref instead of using custom assembly code.

13 years agoPR3823: initial french translation
Adrien Kunysz [Mon, 7 Mar 2011 18:25:55 +0000 (13:25 -0500)]
PR3823: initial french translation

13 years agoAlways generate domain.h for the logger PMDA.
David Smith [Mon, 7 Mar 2011 16:49:08 +0000 (10:49 -0600)]
Always generate domain.h for the logger PMDA.

* pcp/src/pmdas/logger/GNUmakefile.in: Generates domain.h even if a
  'stdpmid' file was found.

13 years agoDecode wait4.return wait status.
Jan Kratochvil [Mon, 7 Mar 2011 15:18:13 +0000 (16:18 +0100)]
Decode wait4.return wait status.
http://sourceware.org/bugzilla/show_bug.cgi?id=12471

* tapset/aux_syscalls.stp (WIFEXITED, WEXITSTATUS, WIFSIGNALED)
(WCOREDUMP, WTERMSIG, WIFSTOPPED, WSTOPSIG, WIFCONTINUED)
(_ptrace_event_name, _wait_status_str): New functions.
* tapset/nd_syscalls2.stp (nd_syscall.wait4): New variables
status_uaddr and status_str, call _wait_status_str.
* tapset/syscalls2.stp (syscall.wait4.return): New variable
status_str, call _wait_status_str.
* testsuite/buildok/nd_syscalls2-detailed.stp
(nd_syscall.wait4.return): Print also status_str.
* testsuite/buildok/syscalls2-detailed.stp (syscall.wait4.return):
Likewise.

13 years agoPR3823: A few string corrections, regenerated po files
Lukas Berk [Fri, 4 Mar 2011 15:01:57 +0000 (10:01 -0500)]
PR3823: A few string corrections, regenerated po files

13 years agoSync staprun up to version 1.5 with everything else
Josh Stone [Fri, 4 Mar 2011 02:25:43 +0000 (18:25 -0800)]
Sync staprun up to version 1.5 with everything else

13 years agotransifex: register po/pl.po stub translation
Frank Ch. Eigler [Thu, 3 Mar 2011 19:46:41 +0000 (14:46 -0500)]
transifex: register po/pl.po stub translation

13 years agoadd transifex-client config file for i18n
Frank Ch. Eigler [Thu, 3 Mar 2011 19:39:03 +0000 (14:39 -0500)]
add transifex-client config file for i18n

13 years agoFix _wait4_opt_str output.
Jan Kratochvil [Thu, 3 Mar 2011 18:38:21 +0000 (19:38 +0100)]
Fix _wait4_opt_str output.
http://sourceware.org/bugzilla/show_bug.cgi?id=12470

* tapset/aux_syscalls.stp (_internal_wait_opt_str): New.
(_wait4_opt_str, _waitid_opt_str): Call it.
* tapset/nd_syscalls2.stp (nd_syscall.wait4) <options>
(nd_syscall.waitpid) <options, options_str>: Cut it to 32-bit.
* tapset/syscalls2.stp: Likewise.

13 years agoSimplified logger PMDA by no longer needing custom main loop.
David Smith [Thu, 3 Mar 2011 16:50:09 +0000 (10:50 -0600)]
Simplified logger PMDA by no longer needing custom main loop.

* pcp/src/pmdas/logger/logger.h: Removed unused file.
* pcp/src/pmdas/logger/loggerMain.c: Ditto.
* pcp/src/pmdas/logger/GNUmakefile.in: Removed logger.h and loggerMain.c
  references.
* pcp/src/pmdas/logger/event.c (event_init): Opens logfile.
* pcp/src/pmdas/logger/event.h: Updated event_init() prototype.
* pcp/src/pmdas/logger/logger.c (logger_init): Calls event_init().
  (main): Calls pmdaMain() instead of old custom loggerMain().

13 years agoFixing long long int into to long int
Lukas Berk [Thu, 3 Mar 2011 15:23:11 +0000 (10:23 -0500)]
Fixing long long int into to long int
now builds on 32 bit machines again

13 years agoPR3823: Changes resulting from translator review
Lukas Berk [Wed, 2 Mar 2011 21:16:43 +0000 (16:16 -0500)]
PR3823: Changes resulting from translator review

Thanks to Adrien Kunysz for pointing out these possible improvements.

13 years agoLogger PMDA can now handle multiple clients.
David Smith [Wed, 2 Mar 2011 18:12:13 +0000 (12:12 -0600)]
Logger PMDA can now handle multiple clients.

* pcp/src/pmdas/logger/event.c (ctx_start_callback): New function.
  (ctx_end_callback): Ditto.
  (event_init): Register callbacks.
  (event_fetch): Call event_create to get new data.
* pcp/src/pmdas/logger/event.h: Removed event_create() prototype.
* pcp/src/pmdas/logger/logger.c (logger_end_contextCallBack): No longer
  call event_cleanup(), which is now called in ctx_end_callback().
* pcp/src/pmdas/logger/logger.h: Added get_monitor_fd() prototype.
* pcp/src/pmdas/logger/loggerMain.c (get_monitor_fd): New function.
  (loggerMain): Open the logfile with O_NONBLOCK.  Let event_fetch() call
  event_create().
* pcp/src/pmdas/logger/percontext.h: Update comment.

13 years agoPR3823: Added gettext functionality to translate.cxx
Lukas Berk [Mon, 28 Feb 2011 19:21:32 +0000 (14:21 -0500)]
PR3823: Added gettext functionality to translate.cxx
various spelling corrections
updated related po/* files

13 years agodocumentation: classify kernel.data probe point family w.r.t. dwarf debuginfo needs
Frank Ch. Eigler [Mon, 28 Feb 2011 16:09:48 +0000 (11:09 -0500)]
documentation: classify kernel.data probe point family w.r.t. dwarf debuginfo needs

13 years agoPR3823: Added Gettext functionality to dwflpp.cxx
Lukas Berk [Fri, 25 Feb 2011 19:29:06 +0000 (14:29 -0500)]
PR3823: Added Gettext functionality to dwflpp.cxx
also regenerated po files, tested on both 32 & 64 bit

13 years agoHandle the case better when there isn't any data to read.
David Smith [Fri, 25 Feb 2011 17:30:59 +0000 (11:30 -0600)]
Handle the case better when there isn't any data to read.

* pcp/src/pmdas/logger/event.c (event_fetch): When there isn't any logfile
  data to fetch, return NULL instead of an empty event record.
* pcp/src/pmdas/logger/logger.c (logger_fetchCallBack): If event_fetch()
  returned NULL, return PMDA_FETCH_NOVALUES.

13 years agoFirst PMDA version that can correctly output event records.
David Smith [Fri, 25 Feb 2011 16:20:53 +0000 (10:20 -0600)]
First PMDA version that can correctly output event records.

* pcp/src/pmdas/logger/GNUmakefile.in: Updated dependency list.
* pcp/src/pmdas/logger/event.c (event_create): Handles EOF.
  (event_cleanup): New function.
* pcp/src/pmdas/logger/event.h: Added event_cleanup() declaration.
* pcp/src/pmdas/logger/help: Updated.
* pcp/src/pmdas/logger/logger.c (logger_end_contextCallBack): Calls
  event_cleanup() when we lose a client.
  (logger_fetchCallBack): Handles fetching event data properly.
* pcp/src/pmdas/logger/loggerMain.c (loggerMain): Instead of calling
  select() on the logfile, read it when we get a control message.
* pcp/src/pmdas/logger/pmns: Added logger.event description.

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Stan Cox [Fri, 25 Feb 2011 16:10:18 +0000 (11:10 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

13 years agoAdd basic library support.
Stan Cox [Fri, 25 Feb 2011 16:03:58 +0000 (11:03 -0500)]
Add basic library support.

* tapsets.cxx (dwarf_derived_probe::register_patterns): Add
process.library.{statement,function}.
* library.{exp,stp}: New.

13 years agoPR3823: Fix type for 32-bit machines
Lukas Berk [Fri, 25 Feb 2011 16:03:18 +0000 (11:03 -0500)]
PR3823: Fix type for 32-bit machines

13 years agoFixed PMID generation code to stay with the max limit.
David Smith [Thu, 24 Feb 2011 21:44:11 +0000 (15:44 -0600)]
Fixed PMID generation code to stay with the max limit.

* pcp/src/pmdas/logger/GNUmakefile.in: Instead of going up from 511, go
  down from 511 (since 511 is the max for a PMID).

13 years agoPR3823: Adding Gettext funtionality to several files.
Lukas Berk [Thu, 24 Feb 2011 21:35:57 +0000 (16:35 -0500)]
PR3823: Adding Gettext funtionality to several files.

updated po/* files
tapset-mark.cxx - added gettext functionality
tapset-perfmon.cxx - same
tapset-timers.cxx - same
tapset-utrace.cxx -same
tapsets.cxx -same
util.cxx -same

13 years agoDisable systemtap.examples/process/noptrace.stp on RHEL4 systems (PR12498)
William Cohen [Thu, 24 Feb 2011 19:02:21 +0000 (14:02 -0500)]
Disable systemtap.examples/process/noptrace.stp on RHEL4 systems (PR12498)

The debug information on RHEL4 kernels appears to be wrong. This causes
the noptrace.stp example to write into the wrong location. Rather than the
ptrace syscall exiting immediately, the ptrace syscall continues and the
test hangs on RHEL4 systems.  The noptrace.stp test is disabled on RHEL4
systems to work around this issue.

13 years agoPR3823: Only generate po/* material if asked
Lukas Berk [Thu, 24 Feb 2011 13:36:29 +0000 (08:36 -0500)]
PR3823: Only generate po/* material if asked

I18N files will be generated if --enable-maintainer-mode is passed or
make update-po is specified.

13 years agoAdded makefile code to autogenerate a PMID number for the logger PMDA.
David Smith [Wed, 23 Feb 2011 21:58:11 +0000 (15:58 -0600)]
Added makefile code to autogenerate a PMID number for the logger PMDA.

* pcp/src/pmdas/logger/GNUmakefile.in: Generate a PMID number if we can't
  find an existing PMID.

13 years agoPR:3823 Added gettext funtionality to several files
Lukas Berk [Tue, 22 Feb 2011 13:40:18 +0000 (08:40 -0500)]
PR:3823 Added gettext funtionality to several files
Additionally updated po/systemtap.pot file

13 years agoAdded pcp support to top-level configure.
David Smith [Fri, 18 Feb 2011 18:15:03 +0000 (12:15 -0600)]
Added pcp support to top-level configure.

* configure.ac: Added pcp support to configure.
* config.in: Regenerated.
* configure: Ditto.
* Makefile.am: Added pcp support.
* Makefile.in: Regenerated.
* pcp/GNUmakefile.in: Add the 'all' target (which maps to the 'default'
  target).

13 years agoRegenerated configure stuff with f14.
David Smith [Fri, 18 Feb 2011 17:45:04 +0000 (11:45 -0600)]
Regenerated configure stuff with f14.

* Makefile.in: Regenerated.
* aclocal.m4: Ditto.
* configure: Ditto.
* doc/Makefile.in: Ditto.
* doc/SystemTap_Tapset_Reference/Makefile.in: Ditto.
* doc/beginners/Makefile.in: Ditto.
* grapher/Makefile.in: Ditto.
* runtime/staprun/Makefile.in: Ditto.
* runtime/staprun/aclocal.m4: Ditto.
* runtime/staprun/configure: Ditto.
* testsuite/aclocal.m4: Ditto.
* testsuite/configure: Ditto.

13 years agoPR3823: Added AM_GNU_GETTEXT_VERSION to configure.ac
Lukas Berk [Fri, 18 Feb 2011 16:21:27 +0000 (11:21 -0500)]
PR3823: Added AM_GNU_GETTEXT_VERSION to configure.ac

13 years agoPR3823: modsign.cxx comment fix
Lukas Berk [Fri, 18 Feb 2011 14:40:31 +0000 (09:40 -0500)]
PR3823: modsign.cxx comment fix

Need to correctly pass type

13 years agoPR3823: Added gettext functionality so several files
Lukas Berk [Fri, 18 Feb 2011 14:24:18 +0000 (09:24 -0500)]
PR3823: Added gettext functionality so several files

Updated corresponding po files
Added macro keywords to po makefiles
Removed some uneeded comments

13 years agoGenerate pcp Makefiles.
David Smith [Thu, 17 Feb 2011 18:28:16 +0000 (12:28 -0600)]
Generate pcp Makefiles.

* pcp/GNUmakefile.in: New file.
* pcp/src/GNUmakefile.in: Ditto.
* pcp/src/pmdas/GNUmakefile.in: Ditto.
* pcp/src/pmdas/logger/GNUmakefile.in: Simplified a bit.
* pcp/src/pmdas/logger/GNUmakefile.install: Deleted unneeded file.
* pcp/configure.in: Modified to generate makefiles.
* pcp/configure: New generated file.
* pcp/.gitignore: No longer ignores configure.

13 years agodocumentation: classify probe point families w.r.t. dwarf debuginfo needs
Frank Ch. Eigler [Thu, 17 Feb 2011 17:29:25 +0000 (12:29 -0500)]
documentation: classify probe point families w.r.t. dwarf debuginfo needs

Requested-By: <deepak.venkatesh@wipro.com>
13 years agoAdjust configury to handle building/installing out of the source tree.
David Smith [Thu, 17 Feb 2011 17:02:31 +0000 (11:02 -0600)]
Adjust configury to handle building/installing out of the source tree.

* pcp/src/include/builddefs.in: Adjust a few variables so that you can
  build out of the source tree.
* pcp/configure.in: Generates src/pmdas/logger/GNUmakefile.
* pcp/src/pmdas/logger/GNUmakefile.in: Renamed from GNUmakefile and
  adjusted variables to build/install out of the source tree.

13 years agoAdded start of the event handling code.
David Smith [Thu, 17 Feb 2011 16:58:05 +0000 (10:58 -0600)]
Added start of the event handling code.

* pcp/src/pmdas/logger/event.c: New file.
* pcp/src/pmdas/logger/event.h: Ditto.
* pcp/src/pmdas/logger/GNUmakefile: Added event.c and event.h.
* pcp/src/pmdas/logger/logger.h: Added copyright header and guard macros.
* pcp/src/pmdas/logger/loggerMain.c: Added copyright header and some event
  calls.

13 years agoAdd _F() and _NF() for formatted translations
Josh Stone [Wed, 16 Feb 2011 20:44:42 +0000 (12:44 -0800)]
Add _F() and _NF() for formatted translations

These are wrappers around autosprintf which pass their format strings
through _() and _N() for gettext translation.  All existing autosprintf
calls are now updated to these macros.

13 years agomention ENABLE_NLS in stap -V feature-summary
Frank Ch. Eigler [Wed, 16 Feb 2011 02:42:14 +0000 (21:42 -0500)]
mention ENABLE_NLS in stap -V feature-summary

13 years agoAdd information about Red Hat Enterprise Linux 6 to Beginner Guide
William Cohen [Tue, 15 Feb 2011 22:46:01 +0000 (17:46 -0500)]
Add information about Red Hat Enterprise Linux 6 to Beginner Guide

Things works a bit differently in RHEL6 with the RHN channels. This
describes the RHN channels and provides some information on how to
add them to the system.

13 years agostap.1: elaborate slightly on automatic locking of global script variables
Frank Ch. Eigler [Tue, 15 Feb 2011 22:33:15 +0000 (17:33 -0500)]
stap.1: elaborate slightly on automatic locking of global script variables

Requested-By: Jan Kratochvil <jkratoch@redhat.com>
13 years agoPR3823: Session.cxx spelling corrections with updated po files
Lukas Berk [Tue, 15 Feb 2011 20:02:07 +0000 (15:02 -0500)]
PR3823: Session.cxx spelling corrections with updated po files
Note to self: aspell is your friend, run it often

13 years agoPR3823: Spelling error in buildrun.cxx
Lukas Berk [Tue, 15 Feb 2011 19:52:03 +0000 (14:52 -0500)]
PR3823: Spelling error in buildrun.cxx

13 years agoPR3823: Added gettext functionality to hash.cxx
Lukas Berk [Tue, 15 Feb 2011 16:42:30 +0000 (11:42 -0500)]
PR3823: Added gettext functionality to hash.cxx
updated corresponding po files

13 years agoPR3823: Added gettext functionality to parse.cxx
Lukas Berk [Tue, 15 Feb 2011 16:19:15 +0000 (11:19 -0500)]
PR3823: Added gettext functionality to parse.cxx
updated related po files

13 years agoPR3823 Added gettext functionality to cache.cxx
Lukas Berk [Tue, 15 Feb 2011 15:54:12 +0000 (10:54 -0500)]
PR3823 Added gettext functionality to cache.cxx
updated the corresponding po files

13 years agoPR3823 Added gettext changes to buildrun.cxx
Lukas Berk [Tue, 15 Feb 2011 15:36:37 +0000 (10:36 -0500)]
PR3823 Added gettext changes to buildrun.cxx
updated po files accordingly

13 years agoAdd stap_spawn_piped
Josh Stone [Mon, 14 Feb 2011 23:20:51 +0000 (15:20 -0800)]
Add stap_spawn_piped

* util.cxx (stap_spawn_piped): New, lets one spawn a process with
  pipes attached to stdout and/or stderr.
  (stap_system_read): Use it.

13 years agoMove multi-target pass-5 into the remote class
Josh Stone [Mon, 14 Feb 2011 23:15:43 +0000 (15:15 -0800)]
Move multi-target pass-5 into the remote class

* remote.cxx (remote::run): New, handle pass-5 for multiple targets.
  (remote::start, remote::finish): Make these private.
* main.cxx (pass_5): Use remote::run.

13 years agoPut dtrace(1) man page in the same package as the binary.
Stan Cox [Mon, 14 Feb 2011 22:52:36 +0000 (17:52 -0500)]
Put dtrace(1) man page in the same package as the binary.

systemtap.spec (sdt-devel): Move dtrace.1 here.

13 years agoAdd inline awareness to relative statement number probes.
Stan Cox [Mon, 14 Feb 2011 16:15:16 +0000 (11:15 -0500)]
Add inline awareness to relative statement number probes.

* dwflpp.cxx (dwflpp::iterate_over_srcfile_lines):  Use dwarf_decl_line info
  if dwarf_entrypc fails.
* stmt_rel.c: New.
* stmt_rel.exp: Use it.

13 years agoPR 3823 Adding a conditional for the _() macro
Lukas Berk [Mon, 14 Feb 2011 13:29:25 +0000 (08:29 -0500)]
PR 3823 Adding a conditional for the _() macro

13 years agoPR3823: stub polish translation
Przemysław Pawełczyk [Mon, 14 Feb 2011 13:11:00 +0000 (08:11 -0500)]
PR3823: stub polish translation

13 years agodocument new --version option
Frank Ch. Eigler [Sun, 13 Feb 2011 00:50:38 +0000 (19:50 -0500)]
document new --version option

13 years agoPR3823: Add attr-format-printf to autosprintf
Josh Stone [Sat, 12 Feb 2011 22:02:26 +0000 (14:02 -0800)]
PR3823: Add attr-format-printf to autosprintf

* util.h (autosprintf): Now it checks format errors too! WOWZER!

13 years agoPR3823: add a top-level "make update-po" to regen i18n files in source tree
Frank Ch. Eigler [Sat, 12 Feb 2011 21:51:57 +0000 (16:51 -0500)]
PR3823: add a top-level "make update-po" to regen i18n files in source tree

13 years agoadd stap --version command line option
Frank Ch. Eigler [Sat, 12 Feb 2011 21:40:34 +0000 (16:40 -0500)]
add stap --version command line option

Requested-By: <tromey@redhat.com>
13 years agoPR3823: systemtap.spec %locale stuff
Frank Ch. Eigler [Sat, 12 Feb 2011 21:01:55 +0000 (16:01 -0500)]
PR3823: systemtap.spec %locale stuff

13 years agoPR3823: use our own autosprintf()
Frank Ch. Eigler [Sat, 12 Feb 2011 20:46:37 +0000 (15:46 -0500)]
PR3823: use our own autosprintf()

* configure.ac, Makefile.am: Forget about libasprintf.
* main.cxx, session.cxx, session.h: Likewise.
* util.h, util.cxx: Define workalike autosprintf(), with a fresh
  new look, and with no added memory leaks!  WOW!

13 years agoPR3823: regenerate po/en.po and en.gmo
Frank Ch. Eigler [Sat, 12 Feb 2011 20:28:36 +0000 (15:28 -0500)]
PR3823: regenerate po/en.po and en.gmo

Using msginit.

13 years agoPR3823: remove macos-specific configury goo
Frank Ch. Eigler [Sat, 12 Feb 2011 20:22:03 +0000 (15:22 -0500)]
PR3823: remove macos-specific configury goo

13 years agoPR3823: redo autoconfigury with gettextize
Frank Ch. Eigler [Sat, 12 Feb 2011 20:17:45 +0000 (15:17 -0500)]
PR3823: redo autoconfigury with gettextize

* Makefile.am, configure.ac: Use autoconf/automake gettext support.
* config.rpath, config.sub, ABOUT.NLS: New files.
* m4/*.  Many new files, copied by gettextize.
* po/*.  Many new files, mostly from gettextize.
* po/LINGUAS, po/POTFILES.in, po/systemtap.pot, po/en.po, po/en.gmo: New files.

13 years agoSilence the closing of the ssh control master
Josh Stone [Sat, 12 Feb 2011 01:32:16 +0000 (17:32 -0800)]
Silence the closing of the ssh control master

* remote.cxx (ssh_remote::close_control_master): Tell stap_system to
  redirect stdout and stderr to /dev/null, so we don't see the insistent
  "Exit request sent" message.

13 years agoBuild the staprun command as an argument vector
Josh Stone [Sat, 12 Feb 2011 00:29:18 +0000 (16:29 -0800)]
Build the staprun command as an argument vector

* buildrun.cxx (make_run_command): Build the command as a vector.
* util.cxx (cmdstr_join): New, join a vector as quoted strings.
* remote.cxx (direct::start): Use make_run_command directly.
  (ssh_remote::start): Pass cmdstr_join(make_run_command(...)) to
  ssh, so all args survive intact to the remote side.

13 years agoDon't quote the module path in vectored args
Josh Stone [Fri, 11 Feb 2011 23:56:16 +0000 (15:56 -0800)]
Don't quote the module path in vectored args

* buildrun.cxx (compile_pass): Remove the quotes from M=path, as they
  are treated literally by Kbuild.

13 years agoRemove the flat-string stap_system altogether
Josh Stone [Fri, 11 Feb 2011 23:17:24 +0000 (15:17 -0800)]
Remove the flat-string stap_system altogether

* util.cxx (stap_system): Remove the flat-string version.  Add
  booleans to the vectored version for whether stdout/err should
  be redirected to /dev/null.
* buildrun.cxx (run_make_cmd): Take the cmd as a vector, and use the
  same nulling flags to pass along to stap_system.
  (compile_pass): Build a vectored make_cmd.
  (verify_uprobes_uptodate): Ditto.
  (make_uprobes): Ditto.
  (make_tracequery): Ditto.
  (make_typequery_kmod): Ditto.
  (make_typequery_umod): Build a vectored gcc command.
* csclient.cxx (compile_server_client::package_request): Manually wrap
  this compound command with an sh -c vector.  Add quoting to the client
  tmpdir and zipfile, just in case.

13 years agoConvert more stap_system calls to vector form
Josh Stone [Fri, 11 Feb 2011 17:44:17 +0000 (09:44 -0800)]
Convert more stap_system calls to vector form

* buildrun.cxx (kernel_built_uprobes): Use a vectored command.
  (copy_uprobes_symbols): Ditto.
* csclient.cxx (compile_server_client::unpack_response): Ditto.
* main.cxx (remove_temp_dir): Ditto.

13 years agoThe logger pmda now asks for a logfile to monitor.
David Smith [Fri, 11 Feb 2011 17:16:57 +0000 (11:16 -0600)]
The logger pmda now asks for a logfile to monitor.

* pcp/src/pmdas/logger/logger.h: New file.
* pcp/src/pmdas/logger/loggerMain.c: New custom main loop.
* pcp/src/pmdas/logger/logger.c (main): Added option for logfile to
  monitor and calls new custom main loop.
* pcp/src/pmdas/logger/Install: Asks for logfile name to monitor.
* pcp/src/pmdas/logger/GNUmakefile: Added loggerMain.c and logger.h.

13 years agoAllow capitals in @cast headers
Josh Stone [Fri, 11 Feb 2011 03:09:25 +0000 (19:09 -0800)]
Allow capitals in @cast headers

The conversion to regexp_match lost the REG_ICASE, so we need to
manually allow capitals in the regular expression.

* buildrun.cxx (make_typequery): Add A-Z to the character class.

13 years agoStart using arg vectors for stap_system and friends
Josh Stone [Fri, 11 Feb 2011 02:46:19 +0000 (18:46 -0800)]
Start using arg vectors for stap_system and friends

Instead of worrying about quoting properly in every command string, we
can rest easier by launching processes with a proper argv[].  All of the
stap_system-like functions are converted, but a flat-string stap_system
is also kept around for now while callers are converted.

* util.cxx (stap_spawn): Take a vector<string> for command arguments,
  convert that to an argv[], and use that for posix_spawnp.  Note the
  conversion to spawnp as well so PATH-searching is still performed.
  (stap_system, stap_system_read): Convert to vectors, but keep a flat
  version of the former for compatibility.
  (probe stap_system__start): Move to stap_spawn, to probe all flavors.
  (probe stap_system__complete): Likewise, move to stap_waitpid, to
  probe when any process is finished; add a pid to track who's done.
* remote.cxx (direct, ssh_remote): Convert all calls to vector form.

13 years agoUse posix_spawn_file_actions for stap_system_read
Josh Stone [Fri, 11 Feb 2011 00:43:55 +0000 (16:43 -0800)]
Use posix_spawn_file_actions for stap_system_read

The file actions can handle the dup2 necessary to hook a pipe onto the
child's stdout.  It could do the necessary closing too, but we'll just
use FD_CLOEXEC for that.

* util.cxx (stap_spawn): Take file_actions for the posix_spawn.
  (pipe_child_fd): New, open a pipe and set the dup2 action for it.
  (stap_system_read): Let stap_spawn and pipe_child_fd do the hard part.

13 years agoClose the ssh ControlMaster after uname failure
Josh Stone [Thu, 10 Feb 2011 23:03:51 +0000 (15:03 -0800)]
Close the ssh ControlMaster after uname failure

Since ssh_remote::get_uname is called from ctors, any exception won't
call the dtor to close the connection.

* remote.cxx (ssh_remote::init): Open the master, try uname, and close
  the master on exception.
  (ssh_remote::ssh_remote): Both ctors, use init().

13 years agoRead the pipe directly in stap_system_read
Josh Stone [Thu, 10 Feb 2011 22:54:18 +0000 (14:54 -0800)]
Read the pipe directly in stap_system_read

* util.cxx (stap_system_read): Use gnu's stdio_filebuf to read directly
  from the pipe file descriptor.

13 years agoThe logger pmda now builds outside of the pcp source tree.
David Smith [Thu, 10 Feb 2011 20:14:26 +0000 (14:14 -0600)]
The logger pmda now builds outside of the pcp source tree.

* pcp/.gitignore: New file.
* pcp/config.guess: Ditto.
* pcp/config.sub: Ditto.
* pcp/configure.in: Ditto.
* pcp/install-sh: Ditto.
* pcp/src/include/.gitignore: Ditto.
* pcp/src/include/builddefs.in: Ditto.
* pcp/src/include/buildrules: Ditto.
* pcp/src/pmdas/logger/.gitignore: Updated.
* pcp/src/pmdas/logger/GNUmakefile: Modified to build either in the pcp
  source tree or separately.
* pcp/src/pmdas/logger/Install: Updated.
* pcp/src/pmdas/logger/percontext.c: Updated include file paths.

13 years agoMore improvements to the client.exp test harness.
Dave Brolley [Thu, 10 Feb 2011 17:05:55 +0000 (12:05 -0500)]
More improvements to the client.exp test harness.

Changes to account for unanticipated, but correct, output.

13 years agoInitial version of pcp logger pmda.
David Smith [Thu, 10 Feb 2011 15:12:39 +0000 (09:12 -0600)]
Initial version of pcp logger pmda.

13 years agoFix RHBZ#676474 by removing some incorrect asmlinkage() markers.
Roland McGrath [Thu, 10 Feb 2011 06:29:40 +0000 (22:29 -0800)]
Fix RHBZ#676474 by removing some incorrect asmlinkage() markers.

* tapset/nd_syscalls.stp: Remove asmlinkage() for do_fork, do_execve,
  compat_do_execve.

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