]> sourceware.org Git - systemtap.git/log
systemtap.git
15 years agoPR5163: Assign need_uprobes during pass-2
Josh Stone [Fri, 3 Apr 2009 21:50:18 +0000 (14:50 -0700)]
PR5163: Assign need_uprobes during pass-2

We were doing this in pass-3, which means it was never set for cached
runs, and so staprun didn't get the -u flag.  Now need_probes is set as
soon as a uprobe_derived_probe is saved into the session in pass-2.

15 years agoPR10032: Trigger cleanup after relay thread errors
Josh Stone [Fri, 3 Apr 2009 20:32:22 +0000 (13:32 -0700)]
PR10032: Trigger cleanup after relay thread errors

When the relay threads encounter an error, they now send SIGTERM to the
rest of the process before the thread exit, so we get a clean shutdown.
For EPIPE in particular, error messages are also suppressed.

15 years agoCorrect column heading from uid to pid.
William Cohen [Fri, 3 Apr 2009 18:41:14 +0000 (14:41 -0400)]
Correct column heading from uid to pid.

15 years agoDescribe the ansi_colors.stp and ansi_colors2.stp. Label tables appropriately.
William Cohen [Fri, 3 Apr 2009 18:38:19 +0000 (14:38 -0400)]
Describe the ansi_colors.stp and ansi_colors2.stp. Label tables appropriately.

15 years agonew process/errsnoop.stp sample script
Eugene Teo [Fri, 3 Apr 2009 17:47:57 +0000 (13:47 -0400)]
new process/errsnoop.stp sample script

15 years agoMake ansi_colors2.stp script executable
Eugene Teo [Fri, 3 Apr 2009 15:56:19 +0000 (23:56 +0800)]
Make ansi_colors2.stp script executable

15 years agoUpdate scripts to use the new ANSI tapset
Eugene Teo [Fri, 3 Apr 2009 15:54:23 +0000 (23:54 +0800)]
Update scripts to use the new ANSI tapset

This updates the example scripts to use the new ANSI escape sequences
tapset. It also adds the copyright header that was missing in
ansi_colors.stp for a long time.

15 years agoNew ANSI escape sequences tapset
Eugene Teo [Fri, 3 Apr 2009 15:46:43 +0000 (23:46 +0800)]
New ANSI escape sequences tapset

This adds a new tapset for ANSI escape sequences. It is based on an
existing tapset that was written by Masami Hiramatsu for the stapgames
project. This also adds a version of ansi_color.stp script that displays
other attributes other than the bold effect.

15 years agomake skip-badvars warning message sensitive to -w suppression
Frank Ch. Eigler [Fri, 3 Apr 2009 15:35:35 +0000 (11:35 -0400)]
make skip-badvars warning message sensitive to -w suppression

15 years agoImprovements to errno tapset
Eugene Teo [Fri, 3 Apr 2009 15:18:14 +0000 (23:18 +0800)]
Improvements to errno tapset

This adds an errno_p() function that will return an absolute errno if it
is valid, or zero if it is not. It also simplifies the if statement in
the errno_str() function.

15 years agoAdd a .gitignore for uprobes
Josh Stone [Fri, 3 Apr 2009 05:41:18 +0000 (22:41 -0700)]
Add a .gitignore for uprobes

15 years agoReally fix run-stap this time, I promise!
Josh Stone [Fri, 3 Apr 2009 01:59:03 +0000 (18:59 -0700)]
Really fix run-stap this time, I promise!

15 years agoFix strftime format bug
Masami Hiramatsu [Thu, 2 Apr 2009 22:44:34 +0000 (18:44 -0400)]
Fix strftime format bug

This fixes bugs in strftime-subset function. This modifies %C, %l and %j to
fit the output of date command.

15 years agoFix a bug in file size limitation code.
Masami Hiramatsu [Thu, 2 Apr 2009 22:44:34 +0000 (18:44 -0400)]
Fix a bug in file size limitation code.

This fixes a bug in stapio, which checks written data size and switches
new file when it exceeds a limit. The problem is that written-data-size
counter ignores the first written-data size when switching files. So,
actual file size always exceeds the limit. This changes stapio to
initialize written-data-size counter with the size of the data which
will be written in new file.

15 years agoReorder includes so regs.c and regs-ia64.c included before task_finder.c.
William Cohen [Thu, 2 Apr 2009 21:41:20 +0000 (17:41 -0400)]
Reorder includes so regs.c and regs-ia64.c included before task_finder.c.

15 years agoRevert "runtime/syscall.h: Forward declare __ia64_fetch_register."
William Cohen [Thu, 2 Apr 2009 21:40:58 +0000 (17:40 -0400)]
Revert "runtime/syscall.h: Forward declare __ia64_fetch_register."

This reverts commit 49be62cc7130e60947bbae90b6bf177e173c8b29.

15 years agoruntime/syscall.h: Forward declare __ia64_fetch_register.
Mark Wielaard [Thu, 2 Apr 2009 21:19:27 +0000 (23:19 +0200)]
runtime/syscall.h: Forward declare __ia64_fetch_register.

15 years agoDisable ccache during kernel module builds
Josh Stone [Thu, 2 Apr 2009 19:16:12 +0000 (12:16 -0700)]
Disable ccache during kernel module builds

Our module builds always have a 0% ccache hit rate, because the compiler
commands always include the randomized tmpdir.  Thus, I'm setting
CCACHE_DISABLE=1 so ccache never saves these one-use objects.

(Besides, we already have our own caching in place for this stuff...)

15 years agoRewrite stmt_rel.exp to only rely on -l output.
Stan Cox [Thu, 2 Apr 2009 19:15:22 +0000 (15:15 -0400)]
Rewrite stmt_rel.exp to only rely on -l output.

* testsuite/systemtap.base/stmt_rel.exp: Rewrite.

15 years agoPR6580: Implement symname, symdata and modname context functions.
Mark Wielaard [Thu, 2 Apr 2009 16:42:38 +0000 (18:42 +0200)]
PR6580: Implement symname, symdata and modname context functions.

This adds a couple of the suggested context/stack revamp functions
from PR6580. In particular it replaces the symbolname() function that
sneaked in with the pr6866 branch merge with the suggested symname().

* runtime/sym.c (_stp_mod_sec_lookup): Make section optional.
  (_stp_symbol_snprint): Provide a way to get optional module info.
* tapset/context-symbols.stp: Replace symbolname() with symname(),
  add modname() and symdata().
  (probemod): Implement pc based fallback.
* tapset/context-unwind.stp (caller): Adjust for _stp_symbol_snprint
  change.
* testsuite/systemtap.context/usymbols.exp: Use new symname.
* testsuite/buildok/modname.stp: New test.
* testsuite/buildok/symdata.stp: Likewise.
* testsuite/buildok/symname.stp: Likewise.

15 years agoitrace.exp: s/utrace_support_found/utrace_p/
Mark Wielaard [Thu, 2 Apr 2009 14:26:50 +0000 (16:26 +0200)]
itrace.exp: s/utrace_support_found/utrace_p/

15 years agoPR9995: Test for [installtest_p] && [utrace_p].
Mark Wielaard [Thu, 2 Apr 2009 12:48:37 +0000 (14:48 +0200)]
PR9995: Test for [installtest_p] && [utrace_p].

15 years agoCheck for utrace in usymbols.exp.
Mark Wielaard [Thu, 2 Apr 2009 12:42:02 +0000 (14:42 +0200)]
Check for utrace in usymbols.exp.

15 years agoMake task_finder.c compiler if ! defined (CONFIG_UTRACE).
Mark Wielaard [Thu, 2 Apr 2009 11:49:12 +0000 (13:49 +0200)]
Make task_finder.c compiler if ! defined (CONFIG_UTRACE).

* runtime/task-finder.c: If ! defined (CONFIG_UTRACE) define dummy noop
  API for sym.c consisting of struct stap_task_finder_target,
  stap_add_vma_map_info, stap_remove_vma_map_info and
  stap_find_vma_map_info.

15 years agoPR10019: --skip-badvars to suppress run-time memory errors too
Frank Ch. Eigler [Thu, 2 Apr 2009 02:50:47 +0000 (22:50 -0400)]
PR10019: --skip-badvars to suppress run-time memory errors too

* NEWS: Note this change.
* hash.cxx (find_script_hash): Add s.skip_badvars into hash.
* translate.cxx (translate_pass): Emit STP_SKIP_BADVARS.
* runtime/loc2c-runtime.h (DEREF_FAULT, STORE_DEREF_FAULT): Provide
  dummy implementation if STP_SKIP_BADVARS.

15 years agoFix the magic run-stap wrappers even more
Josh Stone [Thu, 2 Apr 2009 02:41:55 +0000 (19:41 -0700)]
Fix the magic run-stap wrappers even more

15 years agoPR4105: removing redundant buildok/twentysix.stp test
Frank Ch. Eigler [Thu, 2 Apr 2009 02:16:28 +0000 (22:16 -0400)]
PR4105: removing redundant buildok/twentysix.stp test

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.

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