]> sourceware.org Git - systemtap.git/log
systemtap.git
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.

13 years agoTest harness improvements for testing using a compile server.
Dave Brolley [Wed, 9 Feb 2011 20:57:33 +0000 (15:57 -0500)]
Test harness improvements for testing using a compile server.

- Always generate and authorize new server cert when a server starts.
- Only consider online servers when testing for trust in client.exp.

13 years agoDon't report IPv6 entries returned by avahi, for now.
Dave Brolley [Wed, 9 Feb 2011 20:57:08 +0000 (15:57 -0500)]
Don't report IPv6 entries returned by avahi, for now.

13 years agoFix a README typo of CONFIG_MODULE_UNLOAD
Josh Stone [Wed, 9 Feb 2011 20:36:56 +0000 (12:36 -0800)]
Fix a README typo of CONFIG_MODULE_UNLOAD

(reported by "wil_" on #systemtap)

13 years agoFix the indentation of systemtap_session::usage
Josh Stone [Tue, 8 Feb 2011 23:06:25 +0000 (15:06 -0800)]
Fix the indentation of systemtap_session::usage

13 years agoClean up exit paths
Josh Stone [Tue, 8 Feb 2011 23:06:25 +0000 (15:06 -0800)]
Clean up exit paths

We need to strive not to leave files/processes around, so exit() calls
are reduced to only places where nothings been allocated yet.  Errors
are rarely so fatal to require immediate exit.

13 years agoUse a ControlMaster for ssh remotes
Josh Stone [Tue, 8 Feb 2011 23:06:25 +0000 (15:06 -0800)]
Use a ControlMaster for ssh remotes

We can start the ssh remote with a ControlMaster connection, using a
unique socket in the tmpdir, and then each subsequent remote command can
reuse that connection.

* remote.cxx (ssh_remote::open_control_master): Connect to the remote
  host with a ControlPath that later commands can reuse.  The relevant
  options are saved in member ssh_opts.
  (ssh_remote::close_control_master): Ask the control process to exit.
  (ssh_remote::get_uname, ::start, ::finish): Start using ssh_opts, so
  the ControlPath is always specified.

13 years agoPrecreate the main tmpdir
Josh Stone [Tue, 8 Feb 2011 23:06:25 +0000 (15:06 -0800)]
Precreate the main tmpdir

Create the primary temp dir early on, so we have a place to store
temporary data for remotes (like control socket paths).

* main.cxx (main): Create the tmpdir before remotes are started.
  (create_temp_dir, remove_temp_dir): Tolerate repeat calls.

13 years agoUse a proper session copier when cloning
Josh Stone [Tue, 8 Feb 2011 23:06:25 +0000 (15:06 -0800)]
Use a proper session copier when cloning

* session.cxx (systemtap_session): Define copy and assignment
  constructors without implementation, to avoid implicit behavior.
  Add a new copy constructor with a new kernel/arch.
  (systemtap_session::clone): Use the new copier.

13 years agoRework setup_server to ensure that servers get shut down on error.
Dave Brolley [Tue, 8 Feb 2011 22:07:52 +0000 (17:07 -0500)]
Rework setup_server to ensure that servers get shut down on error.

Also reqorganize in order to save more output from server smoke tests.

13 years agoaccept and ignore %l (long) option in *printf family
Stan Cox [Tue, 8 Feb 2011 15:05:08 +0000 (10:05 -0500)]
accept and ignore %l (long) option in *printf family

* staptree.cxx (print_format::string_to_components): Parse 'l' type modifier.
* int1.stp: Test '#' flag and 'l' type modifier.
* int1.exp: Likewise.

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Dave Brolley [Mon, 7 Feb 2011 20:04:53 +0000 (15:04 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

Conflicts:
main.cxx

13 years agoPR 11844 - --use-server-on-error option
Dave Brolley [Mon, 7 Feb 2011 20:00:15 +0000 (15:00 -0500)]
PR 11844 - --use-server-on-error option

- Now defaults to 'off'
- Errors no longer automatically result in retry using the server.
  This is done only for certain whitelisted errors.
  systemtap_session::set_try_server() is called for these errors.

13 years agoFix two more 'temporary' typos
Lukas Berk [Mon, 7 Feb 2011 18:19:26 +0000 (13:19 -0500)]
Fix two more 'temporary' typos

13 years agoFix typo in message (temorary -> temporary) which broke compile server.
Dave Brolley [Mon, 7 Feb 2011 17:58:25 +0000 (12:58 -0500)]
Fix typo in message (temorary -> temporary) which broke compile server.

stap-server-connect uses this message to locate the temp directory.

13 years agoAdd NEWS item for process.mark $$parms
Stan Cox [Sat, 5 Feb 2011 20:59:07 +0000 (15:59 -0500)]
Add NEWS item for process.mark $$parms

13 years agoSupport $$parms for sdt.
Stan Cox [Fri, 4 Feb 2011 21:25:35 +0000 (16:25 -0500)]
Support $$parms for sdt.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor): Add
visit_target_symbol_arg visit_target_symbol_context
(visit_target_symbol_context): Handle $$name, $$provider, $$parms
(visit_target_symbol_arg): Handle symbol
* sdt_misc.exp:  Test $$parms.

13 years agoPR 12428 - Document Compile Server/Client Setup and Admin
Dave Brolley [Fri, 4 Feb 2011 18:32:37 +0000 (13:32 -0500)]
PR 12428 - Document Compile Server/Client Setup and Admin

- New README.unprivileged
- Update info about unprivileged mode in stap.1 and in stap-server.8
- Don't bother autoconfing paths in stap-server.8. Refer to stappaths
  instead.

13 years agoAdd gettext-devel build requirement to spec file.
William Cohen [Fri, 4 Feb 2011 13:27:33 +0000 (08:27 -0500)]
Add gettext-devel build requirement to spec file.

13 years agoAvoid using $env(HOSTNAME)
William Cohen [Thu, 3 Feb 2011 21:59:24 +0000 (16:59 -0500)]
Avoid using $env(HOSTNAME)

When running crontab jobs the systemtap.server/server.exp tests
would not run because $env(HOSTNAME) is unset. HOSTNAME is
set by the bash shell and is not available in crontab run tests.
An equivalent [info hostname] is used in its place.

13 years agoRevert accidental gettext clobbering
Josh Stone [Thu, 3 Feb 2011 19:45:33 +0000 (11:45 -0800)]
Revert accidental gettext clobbering

13 years agoWrapped lines, fixed some white space issues.
Lukas Berk [Thu, 3 Feb 2011 14:30:02 +0000 (09:30 -0500)]
Wrapped lines, fixed some white space issues.

Some comments with the original strings have been left in for
ease of comparison. They will be removed for the final I18N commit.

13 years agogettext changes in main.cxx and session files
Lukas Berk [Thu, 3 Feb 2011 14:16:24 +0000 (09:16 -0500)]
gettext changes in main.cxx and session files

to invoke run $ xgettext -c -k_ main.cxx session.*
not every string has been set up for gettext translation, at this
point it is just to make sure it doesn't break stap.  The more
complicated strings will be I18N in time.

13 years agoAutoconf groundwork for I18N of systemtap
Lukas Berk [Thu, 3 Feb 2011 14:10:04 +0000 (09:10 -0500)]
Autoconf groundwork for I18N of systemtap

TODO: localedir needs to be a variable and not hard-coded
further changes to files for .po file output are upcoming.

13 years agoCleanup to improve sdt on ppc.
Stan Cox [Tue, 1 Feb 2011 22:08:12 +0000 (17:08 -0500)]
Cleanup to improve sdt on ppc.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol):
Use variable shift amount.  Don't cast unless probe type 3.
* sdt_misc.exp (type_flags): Don't use sup_flags
* sdt_types.c: Check __SIZEOF_SIZE_T__ for long long tests.

13 years agoAssert that TMPDIR, if set, is a boring path
Josh Stone [Fri, 28 Jan 2011 23:02:50 +0000 (15:02 -0800)]
Assert that TMPDIR, if set, is a boring path

We don't want any excitement in the paths we must use.
e.g. Kbuild doesn't cope well with spaces in the M="/module path"

* session.cxx (systemtap_session::check_options): Restrict the
  characters allowed in TMPDIR to a universally-safe set.
* testsuite/parseko/cmdline22.stp: New, check that TMPDIR spaces are
  not allowed, even if that path really exists.

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
William Cohen [Fri, 28 Jan 2011 21:18:40 +0000 (16:18 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

13 years agoEnsure systemtap.stress/conversions.exp generates individual errors and warnings
William Cohen [Fri, 28 Jan 2011 21:12:08 +0000 (16:12 -0500)]
Ensure systemtap.stress/conversions.exp generates individual errors and warnings

PR12168 eliminated duplicated error messages and changed the count of
ERROR and WARNING messages. Adding the "-vv" option turns off the
duplication eliminate and allows an accurate count of the number
of times ERROR and WARNING messages occur.

13 years agoPR 11844 - --use-server-on-error option
Dave Brolley [Fri, 28 Jan 2011 19:55:29 +0000 (14:55 -0500)]
PR 11844 - --use-server-on-error option

- Mechanism is in session.cxx, session.h.
- Code in main.cxx:passes_0_4 calls set_try_server upon compilation
  errors in phases 0-4.
- set_try_server (systemtap_session:dont_try_server) can be set for
  individual errors which do not warrant a retry (e.g. syntax errors)
  to override.

13 years agoMake sure NSS and NSPR are properly initialized and shutdown.
Dave Brolley [Wed, 26 Jan 2011 22:15:35 +0000 (17:15 -0500)]
Make sure NSS and NSPR are properly initialized and shutdown.

- rpmReadConfigFiles initializes NSS, but does not shut it down.
  We now call rpmFreeCrypto if available or call NSS_Shutdown directly otherwise
  in missing_rpm_enlist
- In some versions of NSPR, PR_Init must be called once and only once before NSS_Init or
  NSS_InitReadOnly is called. In later versions, it is unnecessary and is ignored.
  systemtap_session::NSPR_Initialized is now static so that it is
  shared by all active session objects.

13 years agoRemove unused variables and calls which initialized them.
Dave Brolley [Wed, 26 Jan 2011 20:54:53 +0000 (15:54 -0500)]
Remove unused variables and calls which initialized them.

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