]> sourceware.org Git - systemtap.git/log
systemtap.git
15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Roland McGrath [Thu, 2 Apr 2009 01:12:10 +0000 (18:12 -0700)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoFix sudo magic wrappers for run-stap devel script.
Roland McGrath [Thu, 2 Apr 2009 01:11:48 +0000 (18:11 -0700)]
Fix sudo magic wrappers for run-stap devel script.

15 years agointroduce [utrace_p] as dejagnu check for utrace presence in kernel
Frank Ch. Eigler [Thu, 2 Apr 2009 00:33:51 +0000 (20:33 -0400)]
introduce [utrace_p] as dejagnu check for utrace presence in kernel

* testsuite/lib/systemtap.exp: Define here.
* testsuite/systemtap.*/*.exp: Use it here.  Eliminate duplicated
  utrace_support_present logic.

15 years agoMove testcase itrace3's warning into expect
Josh Stone [Thu, 2 Apr 2009 00:01:53 +0000 (17:01 -0700)]
Move testcase itrace3's warning into expect

As it was, the ATTENTION was causing expect mismatches even when the
test worked fine.  The warning is served just as well from the expect
script before starting the test.

15 years agoAdd insn.block testcase to itrace.exp in testsuite
Maynard Johnson [Wed, 1 Apr 2009 16:22:53 +0000 (11:22 -0500)]
Add insn.block testcase to itrace.exp in testsuite

Earlier today, I posted a runtime patch for the insn.block probe point.
Once that patch is committed, the insn.block probe can be safely tested
on any architecture.  The attached patch adds such a testcase to the
testsuite.

Regards,
-Maynard

15 years agoFix for insn probe: Call arch_has_*_step() prior to calling utrace_control
Maynard Johnson [Wed, 1 Apr 2009 20:26:25 +0000 (15:26 -0500)]
Fix for insn probe: Call arch_has_*_step() prior to calling utrace_control

The attached patch is version 2 for the problem I reported earlier
today.

Frank, is this more what you had in mind?  With this patch, there's no
need for the user to look at the system log.  Error messages are sent to
stderr:

ERROR: insn probe init: arch does not support block step mode
ERROR: probe process("/test").function("doit1@/test.c:22").return registration error (rc -1)

-Maynard

15 years agoRevert "Fix runtime/itrace.c to call arch_has_*_step() prior to calling utrace_control"
Josh Stone [Wed, 1 Apr 2009 23:39:12 +0000 (16:39 -0700)]
Revert "Fix runtime/itrace.c to call arch_has_*_step() prior to calling utrace_control"

This reverts commit 489afa702639fd10e9756795bd516d939766247d.

15 years agoFix runtime/itrace.c to call arch_has_*_step() prior to calling utrace_control
Maynard Johnson [Wed, 1 Apr 2009 14:51:57 +0000 (09:51 -0500)]
Fix runtime/itrace.c to call arch_has_*_step() prior to calling utrace_control

As Roland pointed out in his Mar 31 reply to a posting of mine (subject:
Re: Testing insn.block probe point uncovers possible utrace bug),
utrace_control() documents that the caller must ensure that
arch_has_single_step and arch_has_block_step are defined before trying
to use those step modes.  The attached patch addresses that issue.  I've
tested this patch on x86_64 arch, and a block step test runs
successfully, since block step is supported on that arch.  Testing on
ppc64 arch, the test fails as expected (since block step is not
supported on ppc64 yet) with:
"ERROR: callback for <pid> failed: 1"
which is sent to stdderr and
"usr_itrace_init: arch does not support block step mode"
which is sent to the system log.

This isn't the most user-friendly way of surfacing an error.  Perhaps
the stap runtime could have a set of defined return codes that would be
mapped to strings so the user can get an idea of what the error is
without looking in the system log.  But that's a side issue, of course.

Regards,
-Maynard

15 years agoPR10016: Purge stap of all pgrp and system() usage
Josh Stone [Wed, 1 Apr 2009 21:49:12 +0000 (14:49 -0700)]
PR10016: Purge stap of all pgrp and system() usage

We hereby no longer try to manipulate process groups in any way.  We
don't set a private process group, and we never kill() our entire group
either.  Instead of using system(), we now have a stap_system() which
saves the child PID, so when we get a terminating signal we can pass it
along to the child.

Signals sent through the TTY have always worked, since the TTY sends it
to the entire pgrp.  However, if we're running as part of a wrapper
script or GUI, which may not have a separate process group for stap, we
still would like to allow "kill -TERM $STAPPID" to terminate stap
nicely.

There's still a short window of failure in the time that staprun is
active, because we can't kill a setuid process from a user process.
Once staprun drops privileges and execs to stapio though, everything
should work fine.

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Mark Wielaard [Wed, 1 Apr 2009 21:42:53 +0000 (23:42 +0200)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoMove #endif for STP_NEED_VMA_TRACKER up to not cover other utrace callbacks.
Mark Wielaard [Wed, 1 Apr 2009 21:30:18 +0000 (23:30 +0200)]
Move #endif for STP_NEED_VMA_TRACKER up to not cover other utrace callbacks.

* tapsets.cxx (utrace_derived_probe_group::emit_module_init): Correct #endif.

15 years agoPR10020 sys_sigaltstack param change
Frank Ch. Eigler [Wed, 1 Apr 2009 21:20:05 +0000 (17:20 -0400)]
PR10020 sys_sigaltstack param change

The new code uses a %( kernel_v < "2.6.29" %) conditional to look at
the passed pt_regs instead of named *bx parameters.  A more general
solution will be needed at some point.

15 years agoMerge branch 'master' into pr6866
Mark Wielaard [Wed, 1 Apr 2009 21:04:29 +0000 (23:04 +0200)]
Merge branch 'master' into pr6866

15 years agoWrap vma callbacks in STP_NEED_VMA_TRACKER.
Mark Wielaard [Wed, 1 Apr 2009 20:40:04 +0000 (22:40 +0200)]
Wrap vma callbacks in STP_NEED_VMA_TRACKER.

Will be defined by new ucontext symbol stapset.

* tapset.cxx: Wrap all vma callbacks in STP_NEED_VMA_TRACKER.
* testsuite/systemtap.context/usymbols.exp: Define STP_NEED_VMA_TRACKER
  explicitly for now.

15 years agoUse alloca trick to keep argN active on GCC 4.1.
Stan Cox [Wed, 1 Apr 2009 19:48:24 +0000 (15:48 -0400)]
Use alloca trick to keep argN active on GCC 4.1.

* includes/sys/sdt.h (STAP_UNINLINE): New.
(STAP_UNINLINE_LABEL): New.
static_uprobes.exp: Match using charset instead of .*

15 years agotestsuite/systemtap.context/*.tcl: Don't wait 4 whole minutes for timeout.
Mark Wielaard [Wed, 1 Apr 2009 10:31:50 +0000 (12:31 +0200)]
testsuite/systemtap.context/*.tcl: Don't wait 4 whole minutes for timeout.

15 years agocontext.exp: log which subtest is being sourced.
Mark Wielaard [Wed, 1 Apr 2009 10:25:14 +0000 (12:25 +0200)]
context.exp: log which subtest is being sourced.

15 years agoPR4105: support up to 9 (up from 5) array index dimensions
Frank Ch. Eigler [Wed, 1 Apr 2009 15:30:50 +0000 (11:30 -0400)]
PR4105: support up to 9 (up from 5) array index dimensions

* runtime/map-gen.c, pmap-gen.c: Hand-expand arity 6..9 cases throughout.
* testsuite/buildok/thirty.stp: New test.
* testsuite/buildko/two.stp: New test.

An Alan Smithee patch.

15 years agosemok/badvar.stp test: add stap -p2 as for other semok tests
Frank Ch. Eigler [Wed, 1 Apr 2009 15:26:01 +0000 (11:26 -0400)]
semok/badvar.stp test: add stap -p2 as for other semok tests

15 years agoCustomize .mark -l output.
Stan Cox [Tue, 31 Mar 2009 15:54:26 +0000 (11:54 -0400)]
Customize .mark -l output.

* tapsets.cxx (dwarf_builder::build): Add .mark name wildcard check.
Customize -l handling.
* testsuite/systemtap.base/static_uprobes.exp: Test .mark name wildcard.

15 years agoAdd fake Systemtap Hackers author to tapset reference manual template.
Mark Wielaard [Tue, 31 Mar 2009 15:26:01 +0000 (17:26 +0200)]
Add fake Systemtap Hackers author to tapset reference manual template.

* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add authorblock.

15 years agoAdd missing socket function argument descriptions.
Mark Wielaard [Tue, 31 Mar 2009 14:34:41 +0000 (16:34 +0200)]
Add missing socket function argument descriptions.

* tapsets/socket.stp: Add descriptions for proto, family and state.

15 years agoPR10016: Run stap in its own process group with waiter process for signals.
Mark Wielaard [Tue, 31 Mar 2009 10:15:09 +0000 (12:15 +0200)]
PR10016: Run stap in its own process group with waiter process for signals.

* main.cxx (runner): New main function.
  (waiter_handler): Signal handler for waiter process.
  (waiter): Waiter process waitpid function.
  (main): Fork and run wait and runner in their own processes.

15 years agoPR9998: new config and test files
Wenji Huang [Mon, 30 Mar 2009 21:29:20 +0000 (17:29 -0400)]
PR9998: new config and test files

* runtime/autoconf-x86-gs.c : New file.
* testsuite/systemtap.base/x86_gs.exp : New test case.
* testsuite/systemtap.base/x86_gs.stp : Ditto.

15 years agoPR9998: adapt tapset/i686/registers.stp to latest kernel
Wenji Huang [Mon, 30 Mar 2009 21:23:42 +0000 (17:23 -0400)]
PR9998: adapt tapset/i686/registers.stp to latest kernel

* buildrun.cxx (compile_pass): Add autoconf-x86-gs.c.
* tapset/i686/registers.stp (_stp_register_regs): Update offsets.
  (test_x86_gs): Auxiliary function.
* runtime/autoconf-x86-gs.c : New file.
* testsuite/systemtap.base/x86_gs.exp : New test case.
* testsuite/systemtap.base/x86_gs.stp : Ditto.

15 years agoPR10016: systemtap kills all processes in process group on signal.
Mark Wielaard [Mon, 30 Mar 2009 19:18:30 +0000 (21:18 +0200)]
PR10016: systemtap kills all processes in process group on signal.

* main.cxx (main): Make sure we run in our own process group.

15 years agoTest marker probe parameter types.
Stan Cox [Mon, 30 Mar 2009 14:23:27 +0000 (10:23 -0400)]
Test marker probe parameter types.

* testsuite/systemtap.base/sdt_types.c: New file.
* testsuite/systemtap.base/sdt_types.stp: New file.
* testsuite/systemtap.base/static_uprobes.exp:  Use sdt_types for type testing.

15 years agoprefer using /usr/bin/lsb_release to deduce distribution for testsuite
Frank Ch. Eigler [Sun, 29 Mar 2009 20:40:13 +0000 (16:40 -0400)]
prefer using /usr/bin/lsb_release to deduce distribution for testsuite

15 years agotweak "Distro:" line generation in testsuite logs, to moot "oracle-enterprise.patch"
Frank Ch. Eigler [Sun, 29 Mar 2009 19:57:11 +0000 (15:57 -0400)]
tweak "Distro:" line generation in testsuite logs, to moot "oracle-enterprise.patch"

15 years agohand-regen configure after commit 99c0acad yxmlto->xmlto typo fix
Frank Ch. Eigler [Sun, 29 Mar 2009 19:51:40 +0000 (15:51 -0400)]
hand-regen configure after commit 99c0acad yxmlto->xmlto typo fix

15 years agoAdd header
Eugeniy Meshcheryakov [Sat, 28 Mar 2009 22:10:20 +0000 (23:10 +0100)]
Add header

15 years agoFix typo s/yxmlto/xmlto/
Eugeniy Meshcheryakov [Sat, 28 Mar 2009 21:36:02 +0000 (22:36 +0100)]
Fix typo s/yxmlto/xmlto/

15 years agoPR7045: on 64-bit kernels, allow 32-bit userspace to be pass elf validation release-0.9.5
Frank Ch. Eigler [Fri, 27 Mar 2009 17:01:54 +0000 (13:01 -0400)]
PR7045: on 64-bit kernels, allow 32-bit userspace to be pass elf validation

* tapsets.cxx (validate_elf): Reorganize glob matching for x86 and ppc.

15 years agoDon't do beginning of statement check for .mark probes
Stan Cox [Fri, 27 Mar 2009 16:51:22 +0000 (12:51 -0400)]
Don't do beginning of statement check for .mark probes

* tapsets.cxx (dwarf_query): Add has_mark.
(query_cu): Use for beginning of statement check.
(dwarf_builder::build): Set has_mark.

15 years agoVersion bumps for 0.9.5 release
Josh Stone [Fri, 27 Mar 2009 16:38:50 +0000 (09:38 -0700)]
Version bumps for 0.9.5 release

15 years agoPR6819: clarify syntactic vs. semantic probe point validity
Frank Ch. Eigler [Fri, 27 Mar 2009 16:15:19 +0000 (12:15 -0400)]
PR6819: clarify syntactic vs. semantic probe point validity

15 years agoinitialize skip_badvars=0. rererenag developers in session.h to do so in the future
Frank Ch. Eigler [Fri, 27 Mar 2009 16:07:49 +0000 (12:07 -0400)]
initialize skip_badvars=0.  rererenag developers in session.h to do so in the future

15 years agoPR10000: emit _stp_relocate* calculations correctly for kernel/module global $data
Frank Ch. Eigler [Fri, 27 Mar 2009 15:54:42 +0000 (11:54 -0400)]
PR10000: emit _stp_relocate* calculations correctly for kernel/module global $data

* translate.cxx (dump_unwindsyms): Also emit STT_OBJECT symbols,
  therefore .data etc. sections into stap-symbols.h.

* tapsets.cxx (iterate_over_modules): Omit a dwfl_getmodules()
  RC-checking assertion that blocked meaningful $context var
  error messages.
  (dwflpp::emit_address): Bypass dwfl_module_relocate_address()
  for kernel symbols as it has been unreliable; subtract sess.sym_stext
  manually.

* testsuite/buildok/seventeen.stp: Extend test with module $global.

15 years ago.gitignore: Add testsuite exe and so files and initscript systemtap.
Mark Wielaard [Fri, 27 Mar 2009 11:45:51 +0000 (12:45 +0100)]
.gitignore: Add testsuite exe and so files and initscript systemtap.

15 years agoAdd manual for pid-based lookup functions
Wenji Huang [Fri, 27 Mar 2009 00:24:06 +0000 (20:24 -0400)]
Add manual for pid-based lookup functions

* stapfuncs.3stap.in: Add description for pid2task
  and pid2execname.

15 years agoSkip the git-rev in the hash for now (from a5e8d632)
Josh Stone [Thu, 26 Mar 2009 21:09:43 +0000 (14:09 -0700)]
Skip the git-rev in the hash for now (from a5e8d632)

It may be potentially expensive to fork-exec a git call to get the HEAD
revision, and it's not clear whether it's even needed.  We can always
throw this back on if we find a meaningful usage scenario.

15 years agoPR10001: Use the kernel's strlcpy & strlcat
Josh Stone [Thu, 26 Mar 2009 16:20:16 +0000 (09:20 -0700)]
PR10001: Use the kernel's strlcpy & strlcat

We had our own implementations of these which were triggering gcc
bug38480 in some particular cases.  It's easier for us to use the
kernel's strlcpy and strlcat anyway, which avoids the bug.

15 years ago.gitignore: Replace .5 with .3stap.
Mark Wielaard [Thu, 26 Mar 2009 16:53:57 +0000 (17:53 +0100)]
.gitignore: Replace .5 with .3stap.

15 years agoAdd the kernel tree's git revision to the hash
Josh Stone [Thu, 26 Mar 2009 00:25:06 +0000 (17:25 -0700)]
Add the kernel tree's git revision to the hash

To better support kernel developers who work out of a single source
tree, this adds the git HEAD revision to our caching hash.

15 years agoAdd more file stats to the hash
Josh Stone [Wed, 25 Mar 2009 22:47:21 +0000 (15:47 -0700)]
Add more file stats to the hash

For kernel developers, it may be common practice to reuse the same
kernel build tree for several kernel variants.  Our previous hashing
only considered the release version, architecture, and build path, which
may all remain constant for such a developer.

This change adds the file size and mtime of several kernel version files
to the hash, so it should be a bit more robust against collisions.

15 years agoMake aux_tapset.stp "long long" size agnostic so ia64 works.
William Cohen [Wed, 25 Mar 2009 22:26:01 +0000 (18:26 -0400)]
Make aux_tapset.stp "long long" size agnostic so ia64 works.

15 years agoNEWS: Mention disable-pie, sdt.h compat, syscall wrappers and CVE-2009-0784.
Mark Wielaard [Wed, 25 Mar 2009 16:17:07 +0000 (17:17 +0100)]
NEWS: Mention disable-pie, sdt.h compat, syscall wrappers and CVE-2009-0784.

15 years agoFix for CVE-2009-0784: stapusr module-path checking race
Frank Ch. Eigler [Wed, 25 Mar 2009 14:44:55 +0000 (10:44 -0400)]
Fix for CVE-2009-0784: stapusr module-path checking race

* runtime/staprun/staprun_funcs.c (check_path): Save fully
  canonicalized and checked module path for later loading.

15 years agoUpdate configure --help message now that default is changed
Rajan Arora [Wed, 25 Mar 2009 14:33:45 +0000 (10:33 -0400)]
Update configure --help message now that default is changed
*configure.ac: Update help message for building with pie support.
*configure: Regenerate.

15 years agoNEWS: Document mark/trace list mode, interrupt reentrancy, reentrancy debug.
Mark Wielaard [Wed, 25 Mar 2009 13:09:02 +0000 (14:09 +0100)]
NEWS: Document mark/trace list mode, interrupt reentrancy, reentrancy debug.

15 years agoNEWS: Fix man 3stap description to original.
Mark Wielaard [Wed, 25 Mar 2009 12:49:24 +0000 (13:49 +0100)]
NEWS: Fix man 3stap description to original.

15 years agoNEWS: Add description of probe process().insn and process().insn.block.
Mark Wielaard [Wed, 25 Mar 2009 12:34:04 +0000 (13:34 +0100)]
NEWS: Add description of probe process().insn and process().insn.block.

15 years agoNEWS: Document how to see man pages for probes and functions in 3stap section.
Mark Wielaard [Wed, 25 Mar 2009 10:33:56 +0000 (11:33 +0100)]
NEWS: Document how to see man pages for probes and functions in 3stap section.

15 years agoPR 9922 fix, make --disable-pie the configure default
Rajan Arora [Wed, 25 Mar 2009 02:30:37 +0000 (22:30 -0400)]
PR 9922 fix, make --disable-pie the configure default

*configure.ac: Change the default to compiling without fPIE.
*systemtap.spec: Add --enable-pie as the default option (set
pie_supported to 1).
*configure: Regenerated with autoconf 2.61.

15 years agobrown paper bag fix for commit 5d6b0142
Frank Ch. Eigler [Tue, 24 Mar 2009 23:14:57 +0000 (19:14 -0400)]
brown paper bag fix for commit 5d6b0142

return != break

15 years agoTypo and whitespace.
Roland McGrath [Tue, 24 Mar 2009 22:43:25 +0000 (15:43 -0700)]
Typo and whitespace.

15 years agofurther accelerate pass-3 symbol/unwind process, skip one more iteration
Frank Ch. Eigler [Tue, 24 Mar 2009 20:41:31 +0000 (16:41 -0400)]
further accelerate pass-3 symbol/unwind process, skip one more iteration

15 years agoAdd testcase for uprobe on shared library (PR9940).
Mark Wielaard [Tue, 24 Mar 2009 20:37:30 +0000 (21:37 +0100)]
Add testcase for uprobe on shared library (PR9940).

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

15 years agoRemove debugging line.
Stan Cox [Tue, 24 Mar 2009 20:13:18 +0000 (16:13 -0400)]
Remove debugging line.

* dtrace: Remove debugging line.

15 years agoRemove debugging line.
Stan Cox [Tue, 24 Mar 2009 20:11:55 +0000 (16:11 -0400)]
Remove debugging line.

* dtrace:  Remove debugging line.

15 years agoRevert "PR9940: avoid duplicated calling of uprobes in shared libraries"
Frank Ch. Eigler [Tue, 24 Mar 2009 19:55:26 +0000 (15:55 -0400)]
Revert "PR9940: avoid duplicated calling of uprobes in shared libraries"

This fix caused a regression on fedora.

stap -ve 'probe process("/bin/ls").function("main") { log(pp()); }
          probe process("/lib64/libc.so.6").function("*") { log(pp()); }' \
     -c /bin/ls

hung (with stapio & ls processes spinning) upon startup.

15 years agoitrace: zap "usr_itrace_init: completed for tid = NNNN" debug message
Frank Ch. Eigler [Tue, 24 Mar 2009 19:48:56 +0000 (15:48 -0400)]
itrace: zap "usr_itrace_init: completed for tid = NNNN" debug message

15 years agoPR 9989 fix.
David Smith [Tue, 24 Mar 2009 19:43:08 +0000 (14:43 -0500)]
PR 9989 fix.
2009-03-24  David Smith  <dsmith@redhat.com>

PR 9989.
* runtime/task_finder.c (stap_utrace_detach): Ignores
-EINPROGRESS.
(stap_utrace_detach_ops): Ignores errors from
stap_utrace_detach(), so that other tasks will get detached from
this utrace engine.
(__stp_utrace_attach): Better error handling from
utrace_barrier().
(__stp_utrace_task_finder_target_quiesce): Ditto.

15 years agoaccelerate pass-3 symbol/unwind generation
Frank Ch. Eigler [Tue, 24 Mar 2009 19:15:10 +0000 (15:15 -0400)]
accelerate pass-3 symbol/unwind generation

* translate.cxx (emit_symbol_data): Abort dwfl_getmodules loop
  as soon as we run out of modules we're looking for.

15 years agobuild fix for RHEL4-era gcc 3.4.6
Frank Ch. Eigler [Tue, 24 Mar 2009 19:11:33 +0000 (15:11 -0400)]
build fix for RHEL4-era gcc 3.4.6

* tapsets.cxx (stringhash): Go to __gnu_cxx.
  (dwarf_cast_expanding_visitor::visit_cast_op): Use ~0 for all-ones.

15 years agoUse read operand "g" constraints.
Stan Cox [Tue, 24 Mar 2009 18:06:36 +0000 (14:06 -0400)]
Use read operand "g" constraints.

* includes/sdt.h (STAP_PROBEN): Use R "g" instead of RW "+rm" which
can result in "read-only variable arg1 used as asm output"

15 years agoAdd NEWS entry for the manpages.
William Cohen [Tue, 24 Mar 2009 17:14:12 +0000 (13:14 -0400)]
Add NEWS entry for the manpages.

15 years agoStrip off "probe" for the probe documentation generation.
William Cohen [Tue, 24 Mar 2009 17:03:54 +0000 (13:03 -0400)]
Strip off "probe" for the probe documentation generation.

15 years agoPR9993: tracepoint toleration for undeclared types in trace/*.h headers
Frank Ch. Eigler [Tue, 24 Mar 2009 16:53:17 +0000 (12:53 -0400)]
PR9993: tracepoint toleration for undeclared types in trace/*.h headers

* tapsets.cxx (tracepoint_extra_headers): New function to return
  needed header file names.
  (emit_module_decls): Emit them.
* buildrun.cxx (make_tracequery): Emit them.
* testsuite/systemtap.base/tracepoints.exp: Rewrite to exercise
  building each tracepoint.

15 years agoKeep static probe parameters visible while inlining.
Stan Cox [Tue, 24 Mar 2009 16:40:05 +0000 (12:40 -0400)]
Keep static probe parameters visible while inlining.

* includes/sys/sdt.h (STAP_PROBEN):  Revive the STAP_LABEL macro to
prevent inlining to keep probe parameters visible.  Use +rm
constraints.
* tapsets.cxx (build): Use .probes section for all uses of static
probes.

15 years agoMove man pages from man5 to man3 (3stap).
Will Cohen [Tue, 24 Mar 2009 16:01:52 +0000 (12:01 -0400)]
Move man pages from man5 to man3 (3stap).

15 years agoMove tapset documentation manpages from man3stap to man3.
William Cohen [Tue, 24 Mar 2009 15:16:38 +0000 (11:16 -0400)]
Move tapset documentation manpages from man3stap to man3.

15 years agoAdd missing escape in kernel-doc create_sparameterlist() matching.
William Cohen [Mon, 23 Mar 2009 15:16:13 +0000 (11:16 -0400)]
Add missing escape in kernel-doc create_sparameterlist() matching.

15 years agoMake .probes 32 bit aware and simplify label handling.
Stan Cox [Mon, 23 Mar 2009 14:10:03 +0000 (10:10 -0400)]
Make .probes 32 bit aware and simplify label handling.

* includes/sys/sdt.h (STAP_PROBE_DATA_): Use gas local labels which
avoids a mysql problem when a function containing a probe is inlined.
Make the data placement 32 bit aware.

15 years agoMerge branch 'master' into pr6866
Mark Wielaard [Sun, 22 Mar 2009 19:36:13 +0000 (20:36 +0100)]
Merge branch 'master' into pr6866

15 years agoPR9974: adapt to utrace_connected_engine -> utrace_engine
Frank Ch. Eigler [Sun, 22 Mar 2009 15:20:23 +0000 (11:20 -0400)]
PR9974: adapt to utrace_connected_engine -> utrace_engine

Adjusted all headers that #include <linux/utrace.h> to follow with:

/* PR9974: Adapt to struct renaming. */

15 years agosdt.exp: save intermediate sdt.h-client executables for analysis
Frank Ch. Eigler [Sat, 21 Mar 2009 12:39:57 +0000 (08:39 -0400)]
sdt.exp: save intermediate sdt.h-client executables for analysis

* testsuite/lib/stap_run2.exp (stap_run3): Put supplied stap
  extra arguments after the .stp script name, not before, so
  that @1/such arguments can be substituted within.

15 years agoUpdate a few new AUTHORS
Josh Stone [Sat, 21 Mar 2009 00:51:47 +0000 (17:51 -0700)]
Update a few new AUTHORS

15 years agoAdd a tracepoint NEWS blurb
Josh Stone [Sat, 21 Mar 2009 00:49:32 +0000 (17:49 -0700)]
Add a tracepoint NEWS blurb

15 years agoDocument @cast module search paths
Josh Stone [Sat, 21 Mar 2009 00:12:15 +0000 (17:12 -0700)]
Document @cast module search paths

15 years agoCache the tracepoint query results
Josh Stone [Fri, 20 Mar 2009 23:35:06 +0000 (16:35 -0700)]
Cache the tracepoint query results

To use tracepoints, we build a "tracequery" module that compiles
debuginfo for all available tracepoints in the user's kernel.  That's a
bit of a cumbersome step to do during pass-2 though.  This change adds
tracequery caching so we only need to compile it once.

15 years agosupport tracepoint extraction for kernel build trees built with O=/path
Frank Ch. Eigler [Fri, 20 Mar 2009 23:26:58 +0000 (19:26 -0400)]
support tracepoint extraction for kernel build trees built with O=/path

* buildrun.cxx (make_tracequery): Also search source/include/trace/*.h.

15 years agofix build regression w/o -t
Frank Ch. Eigler [Fri, 20 Mar 2009 23:13:45 +0000 (19:13 -0400)]
fix build regression w/o -t

* translate.cxx (emit_common_header): Always emit atomic_t skipped_* counters.

15 years agoDefine static user probe point using asm instead of c.
Stan Cox [Fri, 20 Mar 2009 20:36:25 +0000 (16:36 -0400)]
Define static user probe point using asm instead of c.

15 years agoDefine static user probe point using asm instead of c.
Stan Cox [Fri, 20 Mar 2009 20:30:19 +0000 (16:30 -0400)]
Define static user probe point using asm instead of c.

* includes/sys/sdt.h (STAP_PROBE_DATA): New.  Define the probe point
using asm instead of c.
(STAP_PROBEN): Use it.
* testsuite/systemtap.base/sdt.exp: Continue if a compile fails.
* testsuite/systemtap.base/static_uprobes.exp: Don't test setting
probe without .probes section.

15 years agoPR9967: don't count -DINTERRUPTIBLE=1 reentrancy against MAXSKIPPED
Frank Ch. Eigler [Fri, 20 Mar 2009 20:30:02 +0000 (16:30 -0400)]
PR9967: don't count -DINTERRUPTIBLE=1 reentrancy against MAXSKIPPED

* tapsets.cxx (common_probe_entryfn_prologue): Become conditional on
  !INTERRUPTIBLE.
* translate.cxx (emit_module_exit): Still print skipped_count_reentrant
  with -t, even if skipped_count was zero.

15 years agotweak NEWS blurb wording on --skip-badvars
Frank Ch. Eigler [Fri, 20 Mar 2009 19:50:00 +0000 (15:50 -0400)]
tweak NEWS blurb wording on --skip-badvars

15 years agoMerge branch 'master' of ssh://hiramatu@sources.redhat.com/git/systemtap
Masami Hiramatsu [Fri, 20 Mar 2009 17:43:45 +0000 (13:43 -0400)]
Merge branch 'master' of ssh://hiramatu@sources.redhat.com/git/systemtap

15 years agoPR9821: staprun supports subset of strftime.
Masami Hiramatsu [Fri, 20 Mar 2009 17:38:29 +0000 (13:38 -0400)]
PR9821: staprun supports subset of strftime.

Add strftime subset format support for output file name to systemtap.
This format will be evaluated when opening a new output file.

15 years agoPR6930: initscript: support on-file flight recorder
Masami Hiramatsu [Fri, 20 Mar 2009 17:33:34 +0000 (13:33 -0400)]
PR6930: initscript: support on-file flight recorder

Modify systemtap initscript to support on-file flight recoder
options.

15 years agoPR6930: stap: supports on-file flight recorder options
Masami Hiramatsu [Fri, 20 Mar 2009 17:31:18 +0000 (13:31 -0400)]
PR6930: stap: supports on-file flight recorder options

Add on-file flight recorder options (the combination of -F and -o,
and -S option) to stap command, and change manpages and NEWS.
 - Both of -F and -o is specified, stap passes -D option to staprun.
 - stap just passes -S option to staprun.

15 years agoPR6930: stapio: support file switching
Masami Hiramatsu [Fri, 20 Mar 2009 16:11:30 +0000 (12:11 -0400)]
PR6930: stapio: support file switching

Add file-switching option(-S size[,N]) to stapio. This option has two
arguments, 'size' and 'N', and requires -o option.

- When the size of output file exceeds specified 'size'MB, staprun switches
 output file to the next file. For this purpose, all output file has a serial
 number as a suffix only when user specifies this option.

- Using this option in bulk mode, the output file name will be
 'FILE_cpuX.SERIAL'.

- When the number of files exceeds specified N, staprun removes the oldest
 file. This argument can be omitted.

15 years agoremoved authorblock from tapset reference guide; added ip.stp to template
Frank Ch. Eigler [Fri, 20 Mar 2009 15:41:02 +0000 (11:41 -0400)]
removed authorblock from tapset reference guide; added ip.stp to template

15 years agoAdded functions to grab IP source and destination from a socket, and
Breno Leitao [Fri, 20 Mar 2009 15:40:04 +0000 (11:40 -0400)]
Added functions to grab IP source and destination from a socket, and
functions to grab TCP source and destination port from a socket.

Also, used this function inside some TCP probe functions, as recvmsg,
to provide a richer set of fields.

15 years agoPR6930: stapio: run in background as a daemon
Masami Hiramatsu [Fri, 20 Mar 2009 15:59:06 +0000 (11:59 -0400)]
PR6930: stapio: run in background as a daemon

Add '-D'(daemon mode) option to staprun/stapio for daemon mode.
In this mode, stapio shows just its pid and detachs from console.
Since it has no stdio, this mode requires -o option. stapio will
exit when it receives SIGTERM or detects some error.

15 years agoPR6930: staprun: supports error message to syslog
Masami Hiramatsu [Fri, 20 Mar 2009 15:54:15 +0000 (11:54 -0400)]
PR6930: staprun: supports error message to syslog

Add an interface (eprintf) to output error messages to syslogd,
because staprun has no stderr after detaching from console.

15 years agoEmit vma callbacks for uprobes.
Mark Wielaard [Fri, 20 Mar 2009 13:57:00 +0000 (14:57 +0100)]
Emit vma callbacks for uprobes.

* tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Emit vma
 callbacks.
 (uprobe_derived_probe_group::emit_module_init): Activate vma callbacks.
* testsuite/systemtap.context/usymbols.exp: Track through uprobes,
  so as to make sure we have the symbols.

15 years agoEmit vma callbacks for itrace.
Mark Wielaard [Fri, 20 Mar 2009 13:33:38 +0000 (14:33 +0100)]
Emit vma callbacks for itrace.

* tapsets.cxx (itrace_derived_probe_group::emit_module_decls): Emit vma
  callbacks.
  (itrace_derived_probe_group::emit_module_init): Activate vma callbacks.

15 years agoExplicitly emit utrace vma callbacks.
Mark Wielaard [Fri, 20 Mar 2009 13:17:44 +0000 (14:17 +0100)]
Explicitly emit utrace vma callbacks.

* tapsets.cxx (utrace_derived_probe_group::emit_vm_callback_probe_decl):
  Removed.
  (emit_vma_callback_probe_decl): New static helper function.
  (utrace_derived_probe_group::emit_module_decls): Emit vma callbacks.
  (utrace_derived_probe_group::emit_module_init): Activate vma callbacks.

15 years agoMove _stp_tf_vm_cb to sym.c.
Mark Wielaard [Fri, 20 Mar 2009 12:30:58 +0000 (13:30 +0100)]
Move _stp_tf_vm_cb to sym.c.

* tapsets.cxx (utrace_derived_probe_group::emit_module_decls):
  Remove output task finder vma callback _stp_tf_vm_cb.
* runtime/sym.c (_stp_tf_vm_cb): And add it here.

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