]> sourceware.org Git - systemtap.git/log
systemtap.git
13 years agoConsolidate signal-masking into a utility class
Josh Stone [Wed, 11 May 2011 00:25:47 +0000 (17:25 -0700)]
Consolidate signal-masking into a utility class

* util.h (stap_sigmasker): New, masks our usual signals for the life of
  the stap_sigmasker object.
* remote.cxx (direct_stapsh::direct_stapsh): Use stap_sigmasker while
  spawning the stapsh child process.
  (ssh_remote::connect): Ditto for the ssh process.
  (remote::run): Use stap_sigmasker around the polling loop.

13 years agoremote: Disambiguate the private target names
Josh Stone [Tue, 10 May 2011 23:45:54 +0000 (16:45 -0700)]
remote: Disambiguate the private target names

It's conceivable, however unlikely, that a user may have an actual host
named "direct" or "stapsh", which would conflict with our internal
methods if used as a --remote.  Such a user could say "ssh://direct" to
be explicit, but we can also hide ours a little better.  Those internal
names are now tested as proper URI schemes, e.g. "direct:...", so they
should never conflict with a user's legitimate target.

* remote.cxx (remote::create): Test for "direct" and "stapsh" only as
  the scheme of a decoded URI.
* main.cxx (main): Use "direct:" for non-remote use.
* testsuite/systemtap.base/stapsh.exp: Use "stapsh:" for testing.

13 years agoMake sure remote children are waited for
Josh Stone [Tue, 10 May 2011 23:38:08 +0000 (16:38 -0700)]
Make sure remote children are waited for

* remote.cxx (ssh_remote::~ssh_remote): Call finish on destruction.
  (direct_stapsh::~direct_stapsh): Ditto.
  (direct::~direct): Ditto.

13 years agoPR12749: Replace popen calls with stap_spawn_piped
Josh Stone [Tue, 10 May 2011 22:03:02 +0000 (15:03 -0700)]
PR12749: Replace popen calls with stap_spawn_piped

The new form has the advantages that child processes are managed by
signals to stap, and that arguments are provided in a vector so they
don't need to be escaped.

* dwflpp.cxx (dwflpp::iterate_over_libraries): Convert popen call to
  stap_spawn_piped, followed by fdopen so the same FILE* operations are
  still supported.  Finish with fclose+stap_waitpid instead of pclose.
* tapsets.cxx (symbol_table::read_from_elf_file): Ditto.

13 years agoRemove the unused git_revision()
Josh Stone [Tue, 10 May 2011 22:00:58 +0000 (15:00 -0700)]
Remove the unused git_revision()

The use of this function had been commented out for some time now, and
it contained an unescaped call to popen.  Rather than trying to fix dead
code, just remove it altogether.

13 years agoExplicitly check the interpreter paths.
Stan Cox [Tue, 10 May 2011 21:40:18 +0000 (17:40 -0400)]
Explicitly check the interpreter paths.

dwflpp.cxx (dwflpp::iterate_over_libraries):  Do explicit pathname comparison.

13 years agopmwebapi: prototype pcp web api daemon
Frank Ch. Eigler [Tue, 10 May 2011 18:51:27 +0000 (14:51 -0400)]
pmwebapi: prototype pcp web api daemon

* src/pmwebapi/main.c: New file.

13 years agopcp logger: disable install target, as this doesn't mesh with stap configury
Frank Ch. Eigler [Tue, 10 May 2011 18:50:50 +0000 (14:50 -0400)]
pcp logger: disable install target, as this doesn't mesh with stap configury

13 years agoBump postgres version used for systemtap.apps to 9.0.4
Stan Cox [Mon, 9 May 2011 15:42:09 +0000 (11:42 -0400)]
Bump postgres version used for systemtap.apps to 9.0.4

* stap-postgres.stp (postgresrelease):  Bump it to 9.0.4

13 years agouprobes: impedance match insn tables with test_bit()
Josh Stone [Fri, 6 May 2011 23:31:08 +0000 (16:31 -0700)]
uprobes: impedance match insn tables with test_bit()

The kernel's test_bit expects its bitmap to be const volatile, but we
had ours as simply const.  On Fedora 15 with gcc 4.6, compiling uprobes
gave a few warnings like this:

    arch/x86/include/asm/bitops.h:319:2: warning: use of memory input
    without lvalue in asm operand 1 is deprecated [enabled by default]

That line is the asm statement in variable_test_bit().

The symptom noticed was that handle_riprel_insn was reading need_modrm:0
for opcode 0x89, when our table says it should be 1.  Who knows what
other havok ensued...

When our instruction tables are set const volatile to match test_bit(),
the warning goes away, and need_modrm is now computed correctly.

13 years agouprobes: remove #undef DEBUG_UPROBES_RIP, to make it controllable
Frank Ch. Eigler [Fri, 6 May 2011 20:56:30 +0000 (16:56 -0400)]
uprobes: remove #undef DEBUG_UPROBES_RIP, to make it controllable

13 years agoUse iterate_over_libraries for --ldd instead of invoking ldd
Stan Cox [Fri, 6 May 2011 20:00:11 +0000 (16:00 -0400)]
Use iterate_over_libraries for --ldd instead of invoking ldd

* dwflpp.cxx (iterate_over_modules): Make data an opaque type.
(iterate_over_libraries): Likewise.
* dwflpp.h: Likewise.
* translate.cxx (add_unwindsym_iol_callback): New.
(query_module): New.
(add_unwindsym_ldd): Use them to iterate_over_libraries instead of ldd.
* library.exp:  Add --ldd test.

13 years agodtrace: Remove unused open_file function
Josh Stone [Fri, 6 May 2011 08:03:34 +0000 (01:03 -0700)]
dtrace: Remove unused open_file function

13 years agodtrace: Push main logic into an actual main()
Josh Stone [Fri, 6 May 2011 07:18:06 +0000 (00:18 -0700)]
dtrace: Push main logic into an actual main()

* dtrace.in (main): New, invoked using Python's __name__ idiom.
  (_provider.__typedef_append): Take add_typedefs as a parameter rather
  than pulling from the formerly global scope.
  (_provider.generate): Adjust __typedef_append calls.

13 years agodtrace: Fix tabbed indentation with 4 spaces
Josh Stone [Fri, 6 May 2011 07:07:19 +0000 (00:07 -0700)]
dtrace: Fix tabbed indentation with 4 spaces

13 years agodtrace: Use dict.get() for conditional environment values
Josh Stone [Fri, 6 May 2011 06:56:11 +0000 (23:56 -0700)]
dtrace: Use dict.get() for conditional environment values

13 years agoDtrace script should honor $CPP, $CC, $CFLAGS
Stan Cox [Thu, 5 May 2011 12:36:23 +0000 (08:36 -0400)]
Dtrace script should honor $CPP, $CC, $CFLAGS

* dtrace (main):  Use $CPP, $CC, $CFLAGS if available
* dtrace.exp:  Add CFLAGS= CC= test

13 years agoregen examples index
Frank Ch. Eigler [Thu, 5 May 2011 02:06:04 +0000 (22:06 -0400)]
regen examples index

13 years agoBetter cleanup in insert_module().
David Smith [Wed, 4 May 2011 15:52:26 +0000 (10:52 -0500)]
Better cleanup in insert_module().

* runtime/staprun/staprun_funcs.c (insert_module): Better cleanup on error
  exit.

13 years agoeventcounter: more output tweaks
Frank Ch. Eigler [Wed, 4 May 2011 14:10:50 +0000 (10:10 -0400)]
eventcounter: more output tweaks

13 years agoeventcount: improve output layout some more
Frank Ch. Eigler [Wed, 4 May 2011 12:20:48 +0000 (08:20 -0400)]
eventcount: improve output layout some more

13 years agoeventcount script: improve startup message
Frank Ch. Eigler [Wed, 4 May 2011 12:06:37 +0000 (08:06 -0400)]
eventcount script: improve startup message

13 years agoperf: document default perf.*.sample(XX) value/behavior
Frank Ch. Eigler [Wed, 4 May 2011 12:02:27 +0000 (08:02 -0400)]
perf: document default perf.*.sample(XX) value/behavior

13 years agoeventcount: extend script with more info and prettier formatting
Frank Ch. Eigler [Wed, 4 May 2011 11:53:14 +0000 (07:53 -0400)]
eventcount: extend script with more info and prettier formatting

13 years agoPR12508 Changed eventcount.stp to use target_set tapset
Lukas Berk [Tue, 3 May 2011 21:40:19 +0000 (17:40 -0400)]
PR12508 Changed eventcount.stp to use target_set tapset

This change avoids cases where the target program runs several layers
away.

13 years agoPR12508 eventcounting script
Lukas Berk [Tue, 3 May 2011 19:21:10 +0000 (15:21 -0400)]
PR12508 eventcounting script

An eventcount.stp script has now been added which allows for event
counting in the format of 'stap eventcount.stp syscall.* process.end ...'
with a printout of tid's event and count.

NEWS - news blurb
testsuite/systemtap.examples/general/eventcount.meta - meta file
testsuite/systemtap.examples/general/eventcount.stp - script itself

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Lukas Berk [Mon, 2 May 2011 21:55:11 +0000 (17:55 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

13 years agoFix typo in tapset documentation
Lukas Berk [Mon, 2 May 2011 21:54:17 +0000 (17:54 -0400)]
Fix typo in tapset documentation

tapset/context.stp - target not 'targer'

13 years agoGenerate better file name for Tapset html
William Cohen [Mon, 2 May 2011 21:39:07 +0000 (17:39 -0400)]
Generate better file name for Tapset html

As a default xmlto uses reXXXX.html for file names for the generated html files.
This has two drawbacks: it is not meaningful to humans and is likely to change
between builds of the tapset reference manual. The added XMLTOHTMLPARAMS
option generate more nmemonic names for the files and generates files that
are less likely to change between builds.

13 years agoremote: Normalize the shell used to invoke stapsh
Josh Stone [Fri, 29 Apr 2011 23:33:35 +0000 (16:33 -0700)]
remote: Normalize the shell used to invoke stapsh

We're using a little bit of shell magic on the remote side to tell
whether a system has stapsh available, but that magic depends on
specific shell functionality.  We now explicitly start it with
/bin/bash, so the user's choice of $SHELL doesn't matter.

* remote.cxx (ssh_remote::connect): Wrap the command in /bin/bash -c.

13 years agoLoop server requests over every remotes' session
Josh Stone [Fri, 29 Apr 2011 22:48:13 +0000 (15:48 -0700)]
Loop server requests over every remotes' session

Now the list/trust-server options work on every unique session generated
by the requested remote targets.  This enables usage such as:
    $ stap --remote HOST --list-servers

* main.cxx (passes_0_4): Move the version/session banner to main.
  (main): Print the version just once, and the session banner for each
  unique session.  Perform server actions within the session loop.

13 years agoRestore signals after removing the tmpdir
Josh Stone [Fri, 29 Apr 2011 22:43:14 +0000 (15:43 -0700)]
Restore signals after removing the tmpdir

This is necessary because passes_0_4_again_with_server() will remove the
tmpdir before trying again on a server.  If it is then successful, the
proceeding run should be interruptible as normal.

* main.cxx (remove_temp_dir): Restore signals after removal.

13 years agousage message: identify parameters for --{list,trust}-servers=MAGIC
Frank Ch. Eigler [Fri, 29 Apr 2011 20:38:06 +0000 (16:38 -0400)]
usage message: identify parameters for --{list,trust}-servers=MAGIC

13 years agoremote: Support ssh on custom ports
Josh Stone [Thu, 28 Apr 2011 23:35:52 +0000 (16:35 -0700)]
remote: Support ssh on custom ports

* remote.cxx (remote::create): Heuristically disambiguate between URI
  scheme:path and SSH host:port.
  (ssh_remote::create): Parse an optional :port in the host string.
  (ssh_remote::connect): Pass the port to ssh -p.
  (ssh_legacy_remote::open_control_master): Pass the port to both
  ssh -p and scp -P.

13 years agoremote: Give a better message for ssh connection failures
Josh Stone [Thu, 28 Apr 2011 23:32:32 +0000 (16:32 -0700)]
remote: Give a better message for ssh connection failures

* remote.cxx (ssh_remote::connect): Flag rc==255 as an ssh error.

13 years agoremote: Allow prefixing lines with the host index
Josh Stone [Wed, 27 Apr 2011 22:23:05 +0000 (15:23 -0700)]
remote: Allow prefixing lines with the host index

When --remote-prefix is given, each line from remote scripts will be
prefixed with "N: ", where N is the index of that host among all the
--remote options on the command line.

* remote.h (class remote): Add an optional prefix string.
* remote.cxx (remote::run): Set the prefix if desired.
  (stapsh::handle_poll): When using prefixes, read data line-wise.
* session.cxx (systemtap_session): Add bool use_remote_prefix.
  (systemtap_session::parse_cmdline): Set it with --remote-prefix.

13 years agotolerate kernel builds with missing .note.gnu.build-id sections
Stan Cox [Wed, 27 Apr 2011 02:29:24 +0000 (22:29 -0400)]
tolerate kernel builds with missing .note.gnu.build-id sections

* translate.cxx (dump_unwindsyms): Add back the check "Don't save
build-id if it is located before _stext."
* runtime/sym.c (_stp_module_check): Don't do buildid check for
-DSTP_NO_BUILDID_CHECK.
(_stp_usermodule_check): Likewise.
* buildid.exp: Test -DSTP_NO_BUILDID_CHECK

13 years agoLogger PMDA updates: remove DSO logic, cut back on debugging info, etc.
David Smith [Tue, 26 Apr 2011 21:16:55 +0000 (16:16 -0500)]
Logger PMDA updates: remove DSO logic, cut back on debugging info, etc.

Changes from Ken McDonell <kenj@internode.on.net>

* pcp/src/pmdas/logger/logger.c (usage): Updated usage message.
  (logger_init): Removed DSO startup logic.
  (main): Ditto.
  (logger_end_contextCallBack): Only log debugging information when asked
  for.
  (logger_profile): Ditto.
  (logger_fetchCallBack): Ditto.
  (read_config): Ditto.
  (logger_pmid): Ditto.
  (logger_name): Ditto.
  (logger_children): Ditto.
* pcp/src/pmdas/logger/percontext.c (ctx_start): Ditto.
* pcp/src/pmdas/logger/event.c (event_create): Ditto.
  (event_fetch): Ditto.
* pcp/src/pmdas/logger/util.c (start_cmd): Ditto.
* pcp/src/pmdas/logger/root: Includes domain.h.

13 years agoAdded 'logger.perfile.{LOGFILE}.path' metric in the logger PMDA.
David Smith [Tue, 26 Apr 2011 18:56:30 +0000 (13:56 -0500)]
Added 'logger.perfile.{LOGFILE}.path' metric in the logger PMDA.

* pcp/src/pmdas/logger/logger.c (logger_fetchCallBack): Add support for
  new 'logger.perfile.{LOGFILE}.path' metric, which returns the logfile
  pathname.

13 years agoPR12211 gettext the new err() and regenerate the po/ files
Lukas Berk [Tue, 26 Apr 2011 18:34:15 +0000 (14:34 -0400)]
PR12211 gettext the new err() and regenerate the po/ files

po/* - update with new strings
runtime/staprun/mainloop.c - gettext the err string

13 years agoPR12211: Tweak the child-exit warning output
Josh Stone [Tue, 26 Apr 2011 18:10:59 +0000 (11:10 -0700)]
PR12211: Tweak the child-exit warning output

* runtime/staprun/mainloop.c (chld_proc): Use err() instead of dbug(0,)
  so we don't get the source:line dump, and remove the ':' as well.

13 years agoAdded help text for the dynamic metrics in the logger PMDA.
David Smith [Tue, 26 Apr 2011 15:00:41 +0000 (10:00 -0500)]
Added help text for the dynamic metrics in the logger PMDA.

* pcp/src/pmdas/logger/logger.c (logger_text): New function that provides
  help for the dynamic metrics.
  (logger_init): Set up dynamic metrics help text.
* pcp/src/pmdas/logger/help: Removed commented out help for the dynamic
  metrics.

13 years agoPR12211 stapio now reports abnormal child exit
Lukas Berk [Tue, 26 Apr 2011 14:07:23 +0000 (10:07 -0400)]
PR12211 stapio now reports abnormal child exit

NEWS - description of the new functionality
runtime/staprun/mainloop.c - changes to now handle and report the
exit status/signal.

13 years agoCorrect the local name in vfs.readv
Josh Stone [Mon, 25 Apr 2011 23:42:23 +0000 (16:42 -0700)]
Correct the local name in vfs.readv

Reported-By: Jake Maul <jakemaul@gmail.com>
13 years agoDon't cache "N/A" in __find_bdevname()
Josh Stone [Mon, 25 Apr 2011 23:38:44 +0000 (16:38 -0700)]
Don't cache "N/A" in __find_bdevname()

13 years agoValidate PMNS names in the logger PMDA install script.
David Smith [Mon, 25 Apr 2011 20:39:32 +0000 (15:39 -0500)]
Validate PMNS names in the logger PMDA install script.

* pcp/src/pmdas/logger/Install: Validate PMNS names.

13 years agoFix setjmp.exp and server tests for RHEL5 systems.
David Smith [Mon, 25 Apr 2011 17:46:01 +0000 (12:46 -0500)]
Fix setjmp.exp and server tests for RHEL5 systems.

* testsuite/lib/systemtap.exp (start_server): To properly support older
  versions of tcl (as on RHEL5 systems), don't use the newer form of
  'catch'.  Instead, use the global 'errorCode' variable when getting the
  exit code of a child process.
* testsuite/systemtap.base/setjmp.exp: Ditto.

13 years agoAdd -DSTAP_SDT_ARG_CONSTRAINT
Stan Cox [Thu, 21 Apr 2011 20:04:24 +0000 (16:04 -0400)]
Add -DSTAP_SDT_ARG_CONSTRAINT

    * sdt.h (STAP_SDT_ARG_CONSTRAINT): Allow override of default nor constraint.
    * cxxclass.exp: Use it.

13 years agoAdded more testsuite error handling.
David Smith [Thu, 21 Apr 2011 18:45:46 +0000 (13:45 -0500)]
Added more testsuite error handling.

* testsuite/lib/systemtap.exp (start_server): Catch errors when starting a
  server.
* testsuite/systemtap.base/buildid.exp: Be sure to call wait after spawn.

13 years agoImprove error handling in target_set.exp.
David Smith [Wed, 20 Apr 2011 20:51:45 +0000 (15:51 -0500)]
Improve error handling in target_set.exp.

* testsuite/systemtap.base/target_set.exp: Handle EOF and add failure
  reasons.

13 years agoFixed 'test_check' compile line in network/tcp_init_cwnd.meta
David Smith [Wed, 20 Apr 2011 20:34:25 +0000 (15:34 -0500)]
Fixed 'test_check' compile line in network/tcp_init_cwnd.meta

* testsuite/systemtap.examples/network/tcp_init_cwnd.meta: Fix
  'test_check' entry to compile 'tcp_init_cwnd.stp', not
  'tcp_init_cwnd.meta'.

13 years agoEnhance description for -c and format function::target better.
Fabio Olive Leite [Wed, 20 Apr 2011 20:01:35 +0000 (16:01 -0400)]
Enhance description for -c and format function::target better.

13 years agoMerge branch 'master' of git://sources.redhat.com/git/systemtap
Frank Ch. Eigler [Wed, 20 Apr 2011 20:01:10 +0000 (16:01 -0400)]
Merge branch 'master' of git://sources.redhat.com/git/systemtap

* 'master' of git://sources.redhat.com/git/systemtap:
  PR12645 (partial): Only insert uprobes in non-writable executable sections.

13 years agoPR12645 (partial): Only insert uprobes in non-writable executable sections.
David Smith [Wed, 20 Apr 2011 18:55:50 +0000 (13:55 -0500)]
PR12645 (partial): Only insert uprobes in non-writable executable sections.

* runtime/uprobes-common.c (stap_uprobe_mmap_found): Only try to insert
  uprobes in non-writable executable sections.

13 years agoMerge branch 'master' of git://sources.redhat.com/git/systemtap
Frank Ch. Eigler [Wed, 20 Apr 2011 17:19:01 +0000 (13:19 -0400)]
Merge branch 'master' of git://sources.redhat.com/git/systemtap

* 'master' of git://sources.redhat.com/git/systemtap:
  PR12645 (partial): Improved uprobe/uretprobe error message.

13 years agoi18n: regen po files
Frank Ch. Eigler [Wed, 20 Apr 2011 17:18:38 +0000 (13:18 -0400)]
i18n: regen po files

13 years agoi18n: Fix accidental whitespace changes in stap -V banner
Frank Ch. Eigler [Wed, 20 Apr 2011 17:13:48 +0000 (13:13 -0400)]
i18n: Fix accidental whitespace changes in stap -V banner

13 years agoupdate-po: Use source-tree dtrace.in as input for po/POTFILES.in
Frank Ch. Eigler [Wed, 20 Apr 2011 17:13:24 +0000 (13:13 -0400)]
update-po: Use source-tree dtrace.in as input for po/POTFILES.in

13 years agoPR12645 (partial): Improved uprobe/uretprobe error message.
David Smith [Wed, 20 Apr 2011 15:53:11 +0000 (10:53 -0500)]
PR12645 (partial): Improved uprobe/uretprobe error message.

* tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Improve new
  error messages by including the probe name.

13 years agoImproved error handling in uprobe probes.
David Smith [Tue, 19 Apr 2011 21:41:47 +0000 (16:41 -0500)]
Improved error handling in uprobe probes.

* tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Make sure
  we go through the probe epilogue even in an error in the emitted
  enter_uprobe_probe().

13 years agoImproved error handling in uretprobe probes.
David Smith [Tue, 19 Apr 2011 19:24:26 +0000 (14:24 -0500)]
Improved error handling in uretprobe probes.

* tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Make sure
  we go through the probe epilogue even in an error.

13 years agomodule shutdown: be verbose upon a hang
Frank Ch. Eigler [Tue, 19 Apr 2011 18:40:05 +0000 (14:40 -0400)]
module shutdown: be verbose upon a hang

In the generated module_exit() function, there exists an infinite loop
that waits for all probe handlers that might still be struggling along
to shut down, before authorizing removal of the probe module.  If
something is stuck though, it will stay stuck without any diagnostics
short of a hung stapio/staprun process that's sitting in the kernel.

This patch causes a message to be printk KERN_ERR'd, in case the
shutdown synchronization takes more than a second.

* translate.cxx (emit_module_exit): Print a message if holdon-spinning
  for more than a second.

13 years agoFixed minor error message bug in utrace_syscall_args.stp.
David Smith [Tue, 19 Apr 2011 15:00:24 +0000 (10:00 -0500)]
Fixed minor error message bug in utrace_syscall_args.stp.

* testsuite/systemtap.base/utrace_syscall_args.stp: Fixed error message
  bug.

13 years agoName the originator of the cpp-vararg-counter idea
Frank Ch. Eigler [Mon, 18 Apr 2011 17:45:04 +0000 (13:45 -0400)]
Name the originator of the cpp-vararg-counter idea

13 years agoEnable module.function.label probes
Josh Stone [Sat, 16 Apr 2011 00:40:12 +0000 (17:40 -0700)]
Enable module.function.label probes

Nothing to it -- its absence seems to be just an oversight.

* tapsets.cxx (dwarf_derived_probe::register_patterns): Add bindings
  for module.function.label probes.
* stapprobes.3stap: Document it.

13 years agoMore testsuite fixes.
David Smith [Fri, 15 Apr 2011 14:24:27 +0000 (09:24 -0500)]
More testsuite fixes.

* testsuite/systemtap.base/buildid.exp: Check for uprobes, not just
  utrace.  If we get an error, go ahead and return, since the following
  stuff won't work since we've already cleaned up.
* testsuite/systemtap.base/target_set.exp: Better cleanup.
* testsuite/systemtap.base/target_set.stp: Now compiles on s390x and
  ppc64 by using @cast().
* testsuite/systemtap.context/backtrace.tcl: If we get an EOF, don't call
  exp_contine (which causes a tcl error).

13 years agoAvoid side-effect-free function warnings on '_ptrace_return_arch_prctl_addr'.
David Smith [Thu, 14 Apr 2011 20:42:48 +0000 (15:42 -0500)]
Avoid side-effect-free function warnings on '_ptrace_return_arch_prctl_addr'.

* tapset/i386/aux_syscalls.stp: To avoid side-effect-free function
  warnings on '_ptrace_return_arch_prctl_addr', just return 0.
* tapset/ia64/aux_syscalls.stp: Ditto.
* tapset/powerpc/aux_syscalls.stp: Ditto.
* tapset/s390/aux_syscalls.stp: Ditto.

13 years agoAdded minor testsuite fixes (found when doing rawhide testing).
David Smith [Thu, 14 Apr 2011 17:49:05 +0000 (12:49 -0500)]
Added minor testsuite fixes (found when doing rawhide testing).

* testsuite/systemtap.base/stmt_rel.c: Avoid an uninitialized variable
  error.
* testsuite/systemtap.base/buildid.exp: Added utrace check.
* testsuite/systemtap.base/unresolved-struct-typedef.exp: Ditto.

13 years agoFix a local variable redefinition
Josh Stone [Thu, 14 Apr 2011 01:09:02 +0000 (18:09 -0700)]
Fix a local variable redefinition

* session.cxx (systemtap_session::register_library_aliases): There are
  nested n variables with different types; rename the inner for clarity.

13 years agoFix a copy-paste goof in cache cleanup
Josh Stone [Thu, 14 Apr 2011 01:03:22 +0000 (18:03 -0700)]
Fix a copy-paste goof in cache cleanup

The impact of this typo is that .c and .log files were not properly
counted when computing cache utilization.  Not a big deal, but easily
fixed anyway.

* cache.cxx (cache_ent_info::cache_ent_info): Remove bad semicolons.

13 years agoAUTHORS bump
Josh Stone [Wed, 13 Apr 2011 01:36:35 +0000 (18:36 -0700)]
AUTHORS bump

13 years agoAdd STAP_PROBEV for variadic probe arguments
Josh Stone [Tue, 12 Apr 2011 22:06:06 +0000 (15:06 -0700)]
Add STAP_PROBEV for variadic probe arguments

For the moment, this is only created when SDT_USE_VARIADIC is defined,
because we want to support arbitrary compiler flags, and -pedantic tends
to object to variadic macros.

* includes/sys/sdt.h (STAP_PROBEV): New.
* testsuite/systemtap.base/sdt_va_args.c: Use STAP_PROBEV.
* testsuite/systemtap.base/sdt_va_args.exp: Test STAP_PROBEV.

13 years agoSimplify V3 sdt argument mode handling.
Stan Cox [Tue, 12 Apr 2011 20:25:15 +0000 (16:25 -0400)]
Simplify V3 sdt argument mode handling.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol_arg):
Treat argument extraction as a 64 bit subexpression and handle its sign if needed.

13 years agoReally fix runtime/procfs.c for 2.6.39-0.rc2.
David Smith [Tue, 12 Apr 2011 19:07:11 +0000 (14:07 -0500)]
Really fix runtime/procfs.c for 2.6.39-0.rc2.

* runtime/procfs.c: kern_path_parent() looks up the parent of a path, not
  the path itself.

13 years agoUpdated tapset/vfs.stp for 2.6.39-0.rc2.
David Smith [Mon, 11 Apr 2011 21:40:31 +0000 (16:40 -0500)]
Updated tapset/vfs.stp for 2.6.39-0.rc2.

* tapset/vfs.stp: Kernel commit 7eaceac removed block_sync_page(), so
  those probes were made optional.  Kernel commit e64a782 renamed
  __remove_from_page_cache() to __delete_from_page_cache(), so add an
  alias.
* testsuite/buildok/vfs-detailed.stp: Updated.

13 years agoFixed runtime/procfs.c for 2.6.39-0.rc2.
David Smith [Mon, 11 Apr 2011 18:45:59 +0000 (13:45 -0500)]
Fixed runtime/procfs.c for 2.6.39-0.rc2.

* runtime/procfs.c (_stp_mkdir_proc_module): Calls kern_path_parent()
  instead of path_lookup().  For older kernels kern_path_parent() is
  defined as path_lookup().
* buildrun.cxx (compile_pass): Added autoconf-kern-path-parent.c test.
* runtime/autoconf-kern-path-parent.c: New test.

13 years agoCorrected "autoconf" variable name in runtime/procfs.c.
David Smith [Mon, 11 Apr 2011 18:41:36 +0000 (13:41 -0500)]
Corrected "autoconf" variable name in runtime/procfs.c.

* runtime/procfs.c: Corrected AUTOCONF_PROCFS_OWNER to
  STAPCONF_PROCFS_OWNER.

13 years agoFix typo in sdt_types.stp
Stan Cox [Mon, 11 Apr 2011 01:13:02 +0000 (21:13 -0400)]
Fix typo in sdt_types.stp

sdt_types.stp: Fix variable name typo.

13 years agoAllow an sdt memory offset to be an expression, albeit a simple one.
Stan Cox [Fri, 8 Apr 2011 18:14:32 +0000 (14:14 -0400)]
Allow an sdt memory offset to be an expression, albeit a simple one.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol_arg)
Allow offset to be +-N+-N+-N.
* sdt_asm.S (memory):  New test.
* sdt_asm.stp: Likewise.

13 years agoPR3823: Added Gettext functionality to nsscommon.c
Lukas Berk [Fri, 8 Apr 2011 14:44:48 +0000 (10:44 -0400)]
PR3823: Added Gettext functionality to nsscommon.c
updated po files accordingly

13 years agoPR3823: Updated the NEWS file regarding I18N
Lukas Berk [Fri, 8 Apr 2011 12:07:05 +0000 (08:07 -0400)]
PR3823: Updated the NEWS file regarding I18N

13 years agoPR3823: Added gettext functionality to dtrace script
Lukas Berk [Wed, 6 Apr 2011 23:12:17 +0000 (19:12 -0400)]
PR3823: Added gettext functionality to dtrace script

Makefile* - were modified to include dtrace as a gettext file
dtrace.in - script was modified to only enable gettext functionality
if ENABLE_NLS is true
po/POTFILES.in - updated to include dtrace in gettextizing
other po* files - updated as needed

13 years agoFixed exelib.exp so that it doesn't hang on s390x systems.
David Smith [Wed, 6 Apr 2011 19:57:51 +0000 (14:57 -0500)]
Fixed exelib.exp so that it doesn't hang on s390x systems.

* testsuite/systemtap.exelib/libmarkunamestack.tcl: Better cleanup when
  tests fail.
* testsuite/systemtap.exelib/ustack.tcl: Ditto.

13 years agoFixed BZ692445 by updating regular expression 'all_pass_string'.
David Smith [Wed, 6 Apr 2011 19:05:33 +0000 (14:05 -0500)]
Fixed BZ692445 by updating regular expression 'all_pass_string'.

* testsuite/lib/stap_run.exp: Make expect happier by removing the '$' at
  the end of 'all_pass_string'.  The '\r\n' should catch the end of lines
  properly.

13 years agoPR3823: Fix a few french translation strings
Lukas Berk [Tue, 5 Apr 2011 20:54:52 +0000 (16:54 -0400)]
PR3823: Fix a few french translation strings

13 years agoPR3823: Worked the stap usage message into blocks as per request.
Lukas Berk [Tue, 5 Apr 2011 19:51:48 +0000 (15:51 -0400)]
PR3823: Worked the stap usage message into blocks as per request.

po/fr.po translation was reformatted to match where available
translations allowed.
other po/* files regenerated

13 years agoMerge branch 'master' of http://sources.redhat.com/git/systemtap
Lukas Berk [Tue, 5 Apr 2011 15:41:27 +0000 (11:41 -0400)]
Merge branch 'master' of http://sources.redhat.com/git/systemtap

13 years agoPR3823: Added gettext functionality to staprun files.
Lukas Berk [Tue, 5 Apr 2011 15:40:01 +0000 (11:40 -0400)]
PR3823: Added gettext functionality to staprun files.

This was tested on a Fedora 14 x86_64 virtual machine with the
$LANG environment variable set to fr_FR.utf8 with a dummy stapio
usage message. Po files have been updated accordingly.

13 years agomake pthread test case work with other tests; skip if !installctest_p
Frank Ch. Eigler [Tue, 5 Apr 2011 14:50:06 +0000 (10:50 -0400)]
make pthread test case work with other tests; skip if !installctest_p

13 years agoFixed BZ692869 by using @defined() instead of checking CONFIG variable.
David Smith [Mon, 4 Apr 2011 21:29:48 +0000 (16:29 -0500)]
Fixed BZ692869 by using @defined() instead of checking CONFIG variable.

* tapset/syscalls2.stp (syscall.nfsservctl): Checks for the existence of
  dwarf variables instead of using CONFIG_NFSD.

13 years agoHandle logfile paths that end in '|', treat it as a command to read data from.
David Smith [Mon, 4 Apr 2011 16:30:26 +0000 (11:30 -0500)]
Handle logfile paths that end in '|', treat it as a command to read data from.

* pcp/src/pmdas/logger/util.c: New file.
* pcp/src/pmdas/logger/util.h: Ditto.
* pcp/src/pmdas/logger/event.c (event_init): Handle opening pipe "paths".
  (event_shutdown): New function that stops piped processes and closes all
  files.
* pcp/src/pmdas/logger/event.h: Added event_shutdown() prototype.
* pcp/src/pmdas/logger/logger.c (read_config): Moved lstrip/rstrip code to
  util.c.
  (main): Calls event_shutdown() after pmdaMain() returns to clean
  everything up.
* pcp/src/pmdas/logger/GNUmakefile.in: Added util.c and util.h.
* pcp/src/pmdas/logger/Install: Support entering pipe "paths".

13 years agoAdd addr() for retrieving REG_IP
Josh Stone [Fri, 1 Apr 2011 20:57:39 +0000 (13:57 -0700)]
Add addr() for retrieving REG_IP

For probes which have CONTEXT->regs, return REG_IP, else return 0.

* tapset/context.stp (addr): New function.
* testsuite/buildok/context-embedded.stp: Test addr() compilation.
* NEWS: Let the town crier make a pronouncement of addr().

13 years agoCorrect use of pid for filtering
William Cohen [Thu, 31 Mar 2011 20:54:09 +0000 (16:54 -0400)]
Correct use of pid for filtering

The blog on http://blog.yufeng.info/archives/1239 mentions that the script
is not properly filtering based on pid. This change corrects the
filtering to use the pid.

13 years agodocument more syntax for shared library probing
Stan Cox [Thu, 31 Mar 2011 19:24:27 +0000 (15:24 -0400)]
document more syntax for shared library probing

* NEWS:  Add process("..").library("..")
* langref.tex:  Likewise.
* stapprobes.3stap:  Likewise.

13 years agotighten up wording for stap-server related changes
Frank Ch. Eigler [Thu, 31 Mar 2011 16:52:46 +0000 (12:52 -0400)]
tighten up wording for stap-server related changes

13 years agoChange the logger PMDA config file lines to be of the form "NAME PATHNAME".
David Smith [Thu, 31 Mar 2011 16:23:27 +0000 (11:23 -0500)]
Change the logger PMDA config file lines to be of the form "NAME PATHNAME".

* pcp/src/pmdas/logger/logger.c (valid_pmns_name): New function.
  (read_config): Read NAME and PATHNAME from each config file line.  Make
  sure NAME is a valid PMNS name.
* pcp/src/pmdas/logger/Install: Ask for logfile names along with paths.
* pcp/src/pmdas/logger/event.h: Swap the order of the logfile name and
  pathname to mirror the new config file.

13 years agoRemove d_tag parm from iterate_over_libraries callback.
Stan Cox [Thu, 31 Mar 2011 14:20:24 +0000 (10:20 -0400)]
Remove d_tag parm from iterate_over_libraries callback.

* dwflpp.h (iterate_over_libraries):  Remove type parm.
* tapsets.cxx (query_library_callback,query_library): Likewise.

13 years agoAdd more library wildcard matching tests.
Stan Cox [Wed, 30 Mar 2011 21:35:28 +0000 (17:35 -0400)]
Add more library wildcard matching tests.

* library.exp: Add more wildcard tests.
* tapsets.cxx (base_query::query_library_callback) Remove type parm.
  (dwarf_query::query_library): Likewise.
* dwflpp.cxx (dwflpp::iterate_over_libraries): Likewise.

13 years agoDecode ptrace.
Jan Kratochvil [Wed, 30 Mar 2011 17:59:44 +0000 (19:59 +0200)]
Decode ptrace.
http://sourceware.org/bugzilla/show_bug.cgi?id=12500

* tapset/aux_syscalls.stp (_ptrace_options_str, _ptrace_argstr)
(_ptrace_return_geteventmsg_data): New functions.
* tapset/i386/aux_syscalls.stp: New file.
* tapset/ia64/aux_syscalls.stp: New file.
* tapset/nd_syscalls2.stp (nd_syscall.ptrace): Set argstr using
_ptrace_argstr.
(nd_syscall.ptrace.return): Set geteventmsg_data and arch_prctl_addr.
* tapset/powerpc/aux_syscalls.stp: New file.
* tapset/s390/aux_syscalls.stp: New file.
* tapset/syscalls2.stp (syscall.ptrace): Set argstr using
_ptrace_argstr.
(syscall.ptrace.return): Set geteventmsg_data and arch_prctl_addr.
* tapset/x86_64/aux_syscalls.stp: New file.
* testsuite/buildok/aux_syscalls-embedded.stp (begin): Call
_ptrace_argstr, _ptrace_return_geteventmsg_data and
_ptrace_return_arch_prctl_addr.

13 years agoTestcase for pthread probes
rho@redhat.com [Wed, 30 Mar 2011 15:47:49 +0000 (11:47 -0400)]
Testcase for pthread probes

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