]> sourceware.org Git - systemtap.git/log
systemtap.git
13 years agoAdd more syntax for shared library probing.
Stan Cox [Wed, 30 Mar 2011 15:14:43 +0000 (11:14 -0400)]
Add more syntax for shared library probing.

* dwflpp.cxx (iterate_over_libraries): New.  Get library list via
ld-linux.so.
* dwflpp.h (iterate_over_libraries): Likewise.

* tapsets.cxx (base_query): If this is a library then save the
executable path.
(query_module): For a library, call query_library_callback via
iterate_over_libraries.
(query_library_callback): New. Calls query_library.
(query_library): Substitute the library name into the chain then
derive_probes.

library.exp:  Add library("*") test.

13 years agoFixed BZ691693 by updating tests to handle newer probe timing report.
David Smith [Tue, 29 Mar 2011 20:43:50 +0000 (15:43 -0500)]
Fixed BZ691693 by updating tests to handle newer probe timing report.

* testsuite/systemtap.base/bench.exp: Updated test to handle newer probe
  timing report output.
* testsuite/systemtap.base/skipped.exp: Ditto.

13 years agoRemove unneeded initializer
William Cohen [Tue, 29 Mar 2011 17:57:08 +0000 (13:57 -0400)]
Remove unneeded initializer

The variable is already static so will be initialized to 0. Removed the
unneeded initializer and elminate a warning message from the compiling the
code.

13 years agoPR12612: compatibility with old staprun/stapio
Frank Ch. Eigler [Tue, 29 Mar 2011 13:33:53 +0000 (09:33 -0400)]
PR12612: compatibility with old staprun/stapio

commit 3abb860f changed the staprun<->runtime message format for
the STP_RELOCATE message, without regard for backward compatibility
for older/mismatching stapruns.  That leads to kernel errors and
no kernel probes and such nonsense.  Let's change the runtime to
interoperate both with old staprun and with the current one.

* runtime/transport/symbols.c (_stp_do_relocation): Also accept
  systemtap-1.3 level relocation message, if the incoming message
  size suggests.

13 years agoThe logger PMDA supports multiple clients and multiple logfiles.
David Smith [Mon, 28 Mar 2011 21:04:46 +0000 (16:04 -0500)]
The logger PMDA supports multiple clients and multiple logfiles.

* pcp/src/pmdas/logger/logger.c: Changed to support dynamic metrics for
  logfile data, which enables multiple client/multiple logfile support.
* pcp/src/pmdas/logger/event.c: Changes to support multiple clients and
  multiple logfiles.  Abstracted the interface a bit.
* pcp/src/pmdas/logger/event.h: Moved 'struct LogfileData' definition here
  from logger.c.  Removed event_cleanup() declaration.
* pcp/src/pmdas/logger/help: Updated.
* pcp/src/pmdas/logger/pmns: Make 'perfile' the start of the dynamic
  metrics.
* pcp/src/pmdas/logger/GNUmakefile.in: Make logger.o depend on domain.h.

13 years agosdt_v3: avoid misleading warning on complex operands
Frank Ch. Eigler [Sun, 27 Mar 2011 03:59:24 +0000 (23:59 -0400)]
sdt_v3: avoid misleading warning on complex operands

Roland reported seeing the "Downgrading SDT_V2 probe argument to dwarf ..."
warning message on an ambitious SDT_V3 object file.  The message is
not applicable, since there is no dwarf emitted at all for SDT_V3.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol_arg):
  Remove SDT_V2 language for SDT_V3 probe.

13 years agostap.1 man page: elaborate on alternatives to -DMAXMAPENTRIES
Frank Ch. Eigler [Fri, 25 Mar 2011 15:18:56 +0000 (11:18 -0400)]
stap.1 man page: elaborate on alternatives to -DMAXMAPENTRIES

13 years agoRemove the EXPERIMENTAL scares from --remote
Josh Stone [Fri, 25 Mar 2011 02:04:59 +0000 (19:04 -0700)]
Remove the EXPERIMENTAL scares from --remote

13 years agoUpdate vm.write_shared_copy for kernels with copy_cow_page
William Cohen [Thu, 24 Mar 2011 21:41:42 +0000 (17:41 -0400)]
Update vm.write_shared_copy for kernels with copy_cow_page

13 years agotcp_init_cwnd: fix referring url
Frank Ch. Eigler [Thu, 24 Mar 2011 19:11:37 +0000 (15:11 -0400)]
tcp_init_cwnd: fix referring url

13 years agosamples: new tcp_init_cwnd sample script
Frank Ch. Eigler [Thu, 24 Mar 2011 19:09:30 +0000 (15:09 -0400)]
samples: new tcp_init_cwnd sample script

13 years agoFind SDT semaphores even in RWX mappings
Josh Stone [Thu, 24 Mar 2011 18:18:45 +0000 (11:18 -0700)]
Find SDT semaphores even in RWX mappings

Some S390 environments don't have noexec mappings for data sections, so
the .probes section with SDT semaphores is mapped RWX rather than RW-.
Our logic which checks vm flags needs to accommodate this.

* runtime/uprobes-common.c (stap_uprobe_mmap_found): Deal with mappings
  that are both executable and writable, so semaphores can be found.

13 years agorhbz684227: also filter out FUTEX_CLOCK_REALTIME
Frank Ch. Eigler [Thu, 24 Mar 2011 17:31:17 +0000 (13:31 -0400)]
rhbz684227: also filter out FUTEX_CLOCK_REALTIME

13 years agorhbz68427: mask out FUTEX_PRIVATE_FLAG
Kim van der Riet [Thu, 24 Mar 2011 17:03:50 +0000 (13:03 -0400)]
rhbz68427: mask out FUTEX_PRIVATE_FLAG

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Dave Brolley [Thu, 24 Mar 2011 15:32:32 +0000 (11:32 -0400)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

Conflicts:
NEWS

13 years agoPR 12101: Document removal of cert database passwords.
Dave Brolley [Thu, 24 Mar 2011 15:30:53 +0000 (11:30 -0400)]
PR 12101: Document removal of cert database passwords.

13 years agoBump up the version to match upstream.
Stan Cox [Wed, 23 Mar 2011 21:30:55 +0000 (17:30 -0400)]
Bump up the version to match upstream.

     * stap-postgres.exp (postgresrelease):  Bump version to 4.4.7

13 years agoadd jiffies & HZ to timestamp tapset
Frank Ch. Eigler [Tue, 22 Mar 2011 23:05:11 +0000 (19:05 -0400)]
add jiffies & HZ to timestamp tapset

13 years agoTell rpm that systemtap-client is obsolete
Josh Stone [Tue, 22 Mar 2011 21:42:08 +0000 (14:42 -0700)]
Tell rpm that systemtap-client is obsolete

13 years agoAdd rpm Requires for programs spawned by stap
Josh Stone [Tue, 22 Mar 2011 20:45:43 +0000 (13:45 -0700)]
Add rpm Requires for programs spawned by stap

13 years agoPR 12101 stap-server should use proper cert passwords
Dave Brolley [Tue, 22 Mar 2011 20:44:31 +0000 (16:44 -0400)]
PR 12101 stap-server should use proper cert passwords

Regenerate the certificate database if it uses the old password file
before attempting to sign the uprobes module.

13 years agoAdd a workaround for old systems without ppoll
Josh Stone [Tue, 22 Mar 2011 03:01:39 +0000 (20:01 -0700)]
Add a workaround for old systems without ppoll

A coarse approximation of ppoll is added using sigprocmask and poll, as
suggested in the ppoll manpage, but it doesn't carry the same atomic
guarantee.  I've forced it to have a non-infinite polling timeout, so we
won't block forever.

NB: This only matters on the client connecting to a remote ssh host.

* configure.ac: Check for the function ppoll.
* configure, config.in: Regenerate.
* remote.cxx (ppoll): Fill in for missing ppoll, with a healthy comment
  explaining why I think this implementation is Good Enough™.

13 years agoremote: Try the legacy ssh code if stapsh isn't found
Josh Stone [Mon, 21 Mar 2011 22:30:32 +0000 (15:30 -0700)]
remote: Try the legacy ssh code if stapsh isn't found

The ssh remote command is restructured so that if stapsh isn't found in
the remote PATH, it will exit 127 immediately.  On the local side, when
we fail to read the stapsh uname response, we can check the exit status
to know stapsh wasn't found.  Then we can try again with the old ssh
code with a ControlMaster.  However, I'm limiting the fallback to only
when there's a single remote, as signals and cleanup aren't really
handled as well.  (That's the point of stapsh...)

* remote.cxx (ssh_remote::create): New static function which tries a
  self-instantiation first, then if that fails to find stapsh, it tries
  again using ssh_legacy_remote instead.
  (ssh_remote::connect): Renamed from remote.  Now using a "type -P"
  trick to silently determine if stapsh is present, by exit code alone.
  (ssh_legacy_remote): Un-#ifdef'ed the old ssh_remote code, to get new
  life as our legacy access.
  (remote::create): Get ssh through ssh_remote::create.

13 years agonsscommon: Heed what fgets returns
Josh Stone [Mon, 21 Mar 2011 22:22:09 +0000 (15:22 -0700)]
nsscommon: Heed what fgets returns

My F14 gcc rightfully warned that a return value of fgets was unused.
It may return NULL on error or EOF, in which case we should free our
memory and return NULL to NSS as well.  I also tweaked the newline stomp
to tolerate missing newline, e.g. with oversized input, although that
case it not likely going to work anyway.

* nsscommon.c (nssPasswordCallback): Check fgets' return for success.

13 years agoPR 12101: stap-server should use proper cert passwords.
Dave Brolley [Mon, 21 Mar 2011 20:25:31 +0000 (16:25 -0400)]
PR 12101: stap-server should use proper cert passwords.

Automatically regenerate certificate databases containing a password file.
Otherwise automatically started servers will fail because they won't know
the password.

13 years agoPR 12101: stap-server should use proper cert passwords
Dave Brolley [Mon, 21 Mar 2011 18:06:06 +0000 (14:06 -0400)]
PR 12101: stap-server should use proper cert passwords

Step 1: The server's certificate database now uses no password by default
        (useful for full automation).
        Preliminary support for password prompting for databases created
        with a password.

13 years agoautoreconf with f14
Josh Stone [Sat, 19 Mar 2011 01:30:01 +0000 (18:30 -0700)]
autoreconf with f14

13 years agoAdd gettext wrappers on new remote strings, update-po
Josh Stone [Sat, 19 Mar 2011 01:27:22 +0000 (18:27 -0700)]
Add gettext wrappers on new remote strings, update-po

13 years agoMerge remote-tracking branch 'origin/master' into stapsh
Josh Stone [Fri, 18 Mar 2011 23:50:55 +0000 (16:50 -0700)]
Merge remote-tracking branch 'origin/master' into stapsh

13 years agoAdd a testcase for stapsh remotes
Josh Stone [Fri, 18 Mar 2011 23:46:42 +0000 (16:46 -0700)]
Add a testcase for stapsh remotes

We can't generally test true remotes in the testsuite without previously
setting up ssh access on a machine.  But we can still check that the
stapsh mechanism works in general.  This runs with --remote=stapsh, and
checks that stapsh exists in the process hierarchy and a signal to stap
only is propagated through stapsh.

* testsuite/systemtap.base/stapsh.*: New.

13 years agostapsh: dbug-print on received signals
Josh Stone [Fri, 18 Mar 2011 23:45:25 +0000 (16:45 -0700)]
stapsh: dbug-print on received signals

* runtime/staprun/stapsh.c (handle_signal): Add dbug.

13 years agoremote: Block signals in direct_stapsh's child
Josh Stone [Fri, 18 Mar 2011 23:43:28 +0000 (16:43 -0700)]
remote: Block signals in direct_stapsh's child

We want direct_stapsh to simulate the ssh_remote signaling as much as
possible, so we must ensure that the manual stapsh child process doesn't
get signals directly.

* remote.cxx (direct_stapsh::direct_stapsh): Block signals while
  spawning the stapsh process.

13 years agoPR12592: Allow -r /path/to/kernel for stap-servers
Josh Stone [Fri, 18 Mar 2011 22:38:29 +0000 (15:38 -0700)]
PR12592: Allow -r /path/to/kernel for stap-servers

Previously, stap-serverd would parse the release string from a kernel
path, but now it also passes that full path on for stap to use.

* stap-serverd (process_r): Keep the full -r path for stap_options.
* stap-server (process_r): Ditto.
* session.cxx (systemtap_session::setup_kernel_release): Skip repeated
  kernel strings, for the case when a server -r /path/to/kernel is
  followed by a client's matching -r kernel.

13 years agoPR3823: Rearrange some ostringstream foo statements
Lukas Berk [Fri, 18 Mar 2011 17:55:00 +0000 (13:55 -0400)]
PR3823: Rearrange some ostringstream foo statements

Due to the use of autosprintf, in some places it is unneeded to
define an ostringstream foo, and then use foo as a temporary string

Further gettext was added to csclient.cxx

13 years agoPR3823: remove gettext from compile time errors
Lukas Berk [Fri, 18 Mar 2011 17:25:51 +0000 (13:25 -0400)]
PR3823: remove gettext from compile time errors
fix grammar in po/README

13 years agoPR3823: How to add basic gettext to systemtap in po/README
Lukas Berk [Fri, 18 Mar 2011 13:58:59 +0000 (09:58 -0400)]
PR3823: How to add basic gettext to systemtap in po/README

13 years agoPR3823: Adding gettext functionality to several base files
Lukas Berk [Fri, 18 Mar 2011 13:14:03 +0000 (09:14 -0400)]
PR3823: Adding gettext functionality to several base files
po/* files updated strings
csclient.cxx - added gettext
dwarf_wrappers.cxx - same
remote.cxx - same
setupdwfl.h - same
staptree.cxx - same
util.cxx - moved macros to util.h
util.h - added gettext

13 years agoCache compile_server_info attached to sessions, not static
Josh Stone [Fri, 18 Mar 2011 02:51:11 +0000 (19:51 -0700)]
Cache compile_server_info attached to sessions, not static

The various vector<compile_server_info> caches in csclient have
information that's specific to the systemtap_session in question, so
they need to be saved with the session rather than kept static.  This
matters for the brave new world of having multiple unique remote targets
within a single stap execution.

* session.h (systemtap_session::server_cache): New, opaque pointer for
  a struct containing csclient's cached data.
* session.cxx (systemtap_session::systemtap_session): NULL it.
* csclient.cxx (struct compile_server_cache): Define a container for all
  the caching vectors that will be stored in the session.
  (cscache): Get the cache from the session, allocate it if needed.
  (get_default_server_info): Use a cache vector instead of a static.
  (get_specific_server_info): Ditto.
  (get_or_keep_trusted_server_info): Ditto.
  (get_or_keep_signing_server_info): Ditto.
  (get_or_keep_online_server_info): Ditto.

13 years agoClear the SSL session cache after using a server
Josh Stone [Fri, 18 Mar 2011 02:45:57 +0000 (19:45 -0700)]
Clear the SSL session cache after using a server

If the cache is not cleared, then the NSS_Shutdown fails, and then
future connections (as with multi-remote) can't be initialized.

* csclient.cxx (compile_server_client::compile_using_server):
  Call SSL_ClearSessionCache before NSS_Shutdown.

13 years agoPR12591: Setup the signal handler earlier
Josh Stone [Thu, 17 Mar 2011 18:25:49 +0000 (11:25 -0700)]
PR12591: Setup the signal handler earlier

We were calling setup_signals() in passes_0_4(), but --use-server
diverts that execution path, so signaled cleanup wasn't working in that
case at all.  It's also possible with multiple --remotes that
passes_0_4() will be called multiple times, though that shouldn't really
hurt signal handling.  This patch moves setup_signals() to main(), so it
is called once early on.

* main.cxx (passes_0_4): Don't call setup_signals() here.
  (main): Call setup_signals() here instead.

13 years agoUpdate .gitignore files to make "git status" accurate
William Cohen [Thu, 17 Mar 2011 15:52:49 +0000 (11:52 -0400)]
Update .gitignore files to make "git status" accurate

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
William Cohen [Thu, 17 Mar 2011 14:21:44 +0000 (10:21 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

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 agoRead the list of logfiles from a config file in the logger PMDA.
David Smith [Wed, 16 Mar 2011 17:55:43 +0000 (12:55 -0500)]
Read the list of logfiles from a config file in the logger PMDA.

* pcp/src/pmdas/logger/logger.c (read_config): New function to read the
  config file.
  (main): Remove the '-m' option and accept a config file.
* pcp/src/pmdas/logger/Install: Add the capability to specify a config
  file or create one.

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 agostapsh: Add OK/ERROR replies to file and run commands
Josh Stone [Mon, 14 Mar 2011 22:14:58 +0000 (15:14 -0700)]
stapsh: Add OK/ERROR replies to file and run commands

* runtime/staprun/stapsh.c (reply): Print a reply (and dbug it too).
  (do_hello): Send uname info using reply().
  (do_file, do_run): Add OK reply, or ERROR from former stderr chatter.
  (qpdecode): Convert stderr chatter to dbug.
* remote.cxx (stapsh::get_reply): Read a one-line reply from the remote.
  (stapsh::send_file): Look for an OK reply after sending the file.
  (stapsh::start): Look for an OK reply after telling it to run.
  (stapsh::set_child_fds): Use get_reply to read the uname back.

13 years agostapsh: Add debugging macros
Josh Stone [Mon, 14 Mar 2011 21:15:21 +0000 (14:15 -0700)]
stapsh: Add debugging macros

* runtime/staprun/stapsh.c (dbug, vdbug, die): New debugging macros.
  (usage, parse_args): New, just dealing with -v for now.
  (main): Parse arguments, and start printing debugging information.
* remote.cxx (ssh_remote::init): Set stapsh verbosity according to p5.
  (direct_stapsh::direct_stapsh): Ditto.
  (remote::run): Make sure subsession->verbose is updated for pass-5.

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 agostapsh: Remove the signal command, just call it quit
Josh Stone [Fri, 11 Mar 2011 23:54:43 +0000 (15:54 -0800)]
stapsh: Remove the signal command, just call it quit

As Przemysław pointed out, signal numbers are not 100% portable across
different architectures, and we should allow for the possibility of
cross-compilation in --remote execution.  Since the only point of the
signal command was to trigger an exit, let's just replace it with a
"quit" command.

* runtime/staprun/stapsh.c (do_signal -> do_quit): Forget about parsing
  signal numbers -- just call cleanup (which sends SIGHUP anyway).
  (cleanup): Mask signals, so if called from non-signal context, we
  won't get a reentry (especially for SIGCHLD).
* remote.cxx (stapsh::handle_poll): Send a quit instead of signal.

13 years agostapsh: Upload module signatures and uprobes too
Josh Stone [Fri, 11 Mar 2011 02:50:35 +0000 (18:50 -0800)]
stapsh: Upload module signatures and uprobes too

* remote.cxx (stapsh::prepare): Upload any uprobes and signature files
  to the remote, so remote-unprivileged could work too.

13 years agoremote: Split preparation from the actual start
Josh Stone [Fri, 11 Mar 2011 00:43:53 +0000 (16:43 -0800)]
remote: Split preparation from the actual start

* remote.h (remote::prepare): New, get ready to run.
* remote.cxx (stapsh::start, stapsh::prepare): Split the file-upload into
  the prepare step, so we're ready to go sooner.
  (remote::run): Let remotes prepare first, so they can all start as
  close together as possible.

13 years agostapsh: Use quoted-printable args in the run command
Josh Stone [Fri, 11 Mar 2011 00:35:42 +0000 (16:35 -0800)]
stapsh: Use quoted-printable args in the run command

Per Frank's suggestion, discard the separate "arg" command and just add
arguments directly in the run command.  The quoted-printable encoding is
used for whitespace and characters that aren't printable ASCII.

* runtime/staprun/stapsh.c (do_arg): Remove.
  (qpdecode): New, decode quoted-printable.
  (do_run): Read and QP-decode arguments for staprun.
* remote.cxx (stapsh::send_arg): Remove.
  (stapsh::qpencode): New, encode a string with QP escapes.
  (stapsh::start): Build the run command with QP-encoded arguments.

13 years agostapsh: A systemtap "shell" to aid remote execution
Josh Stone [Wed, 9 Mar 2011 18:24:12 +0000 (10:24 -0800)]
stapsh: A systemtap "shell" to aid remote execution

This stapsh agent is a wrapper meant to be automatically invoked through
an ssh connection to transfer systemtap modules to remotes hosts and
invoke staprun on them.  The primary motivation of stapsh is make sure
all the exit cases can happen cleanly, especially with sending signals
to the remote and cleaning up the processes and temporary files.

This is meant to replace the code based on multiple connections with an
ssh ControlMaster.  For now, that code has only been #if'ed out in
case we still want it for talking with "legacy" remotes.

* runtime/staprun/stapsh.c: New, a basic command shell for uploading and
  remotely launching systemtap scripts.
* runtime/staprun/Makefile.am: Add stapsh.
* runtime/staprun/Makefile.in: Regen.
* systemtap.spec: Package stapsh in systemtap-runtime.
* remote.cxx (class stapsh): New, handle communication with a stapsh
  remote via any given file descriptors.
  (class direct_stapsh): New, launch a direct stapsh instance to run
  through.  This way we can add stapsh to the testsuite without
  requiring any remote access configuration.
  (class ssh_remote): Block out the old implementation, and rewrite
  as an inheritor of stapsh.
  (remote::create): Create direct_stapsh for "--remote stapsh".
  (remote::run): Add a polling loop during runtime, where each remote
  can add fds to watch and then respond.
* util.cxx (stap_spawn_piped): Allow piped stdin too.
  (stap_system_read): Update call to stap_spawn_piped.

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.

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