]> sourceware.org Git - systemtap.git/log
systemtap.git
15 years agoHandle .absolute and .dynamic (user space) addresses in adjustStartLoc.
Mark Wielaard [Sun, 19 Apr 2009 14:38:41 +0000 (16:38 +0200)]
Handle .absolute and .dynamic (user space) addresses in adjustStartLoc.

* runtime/unwind.c (adjustStartLoc): .absolute sections don't need
  adjustment, .dynamic sections need the section addr to be added.

15 years agoMicro-optimization: no-modules translate pass 3 case.
Mark Wielaard [Sun, 19 Apr 2009 12:24:20 +0000 (14:24 +0200)]
Micro-optimization: no-modules translate pass 3 case.

Saves 250ms in the unlikely case there are no modules needed.

* translate.cxx (emit_symbol_data_done): New function.
  (emit_symbol_data): Call emit_symbol_data_done immediately when no
  module data is needed.

15 years agoRemove module boilerplate from tracequery
Josh Stone [Sat, 18 Apr 2009 03:22:29 +0000 (20:22 -0700)]
Remove module boilerplate from tracequery

Kernel modules will actually build just fine with none of the module
boilerplate code.  We don't care about ever actually loading the
tracequery module that we make, so don't bother emitting code we don't
need.

15 years agoMerge branch 'master' of git+ssh://sources.redhat.com/git/systemtap
Kent Sebastian [Fri, 17 Apr 2009 20:21:14 +0000 (16:21 -0400)]
Merge branch 'master' of git+ssh://sources.redhat.com/git/systemtap

15 years agoPR10082: add environment variable to pass -r RELEASE/PATH option
Kent Sebastian [Fri, 17 Apr 2009 20:20:09 +0000 (16:20 -0400)]
PR10082: add environment variable to pass -r RELEASE/PATH option

15 years agoMake dropwatch.stp executable and have correct interpreter.
William Cohen [Fri, 17 Apr 2009 19:53:38 +0000 (15:53 -0400)]
Make dropwatch.stp executable and have correct interpreter.

15 years agoAdd dropwatch.stp example.
William Cohen [Fri, 17 Apr 2009 19:41:48 +0000 (15:41 -0400)]
Add dropwatch.stp example.

15 years agoPR7072: use _stp_reserve_bytes for printf buffer
Kent Sebastian [Fri, 17 Apr 2009 16:03:09 +0000 (12:03 -0400)]
PR7072: use _stp_reserve_bytes for printf buffer

15 years agoAdded new utrace syscall argument test.
David Smith [Fri, 17 Apr 2009 14:37:00 +0000 (09:37 -0500)]
Added new utrace syscall argument test.
2009-04-17  David Smith  <dsmith@redhat.com>

        * systemtap.base/utrace_syscall_args.c: New test file.
        * systemtap.base/utrace_syscall_args.exp: New test file.
        * systemtap.base/utrace_syscall_args.stp: New test file.

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
David Smith [Fri, 17 Apr 2009 14:27:56 +0000 (09:27 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoAvoid sign extension in syscall return values.
David Smith [Fri, 17 Apr 2009 14:26:08 +0000 (09:26 -0500)]
Avoid sign extension in syscall return values.
2009-04-17  David Smith  <dsmith@redhat.com>

        * tapset/utrace.stp: Cast the return value of
        syscall_get_return_value() to an unsigned long to avoid sign
        extension.

15 years agoOutput probe calling sequence comment
Stan Cox [Fri, 17 Apr 2009 14:15:41 +0000 (10:15 -0400)]
Output probe calling sequence comment

* dtrace: Output probe calling sequence comment

15 years agoKeep up with tracepoint changes in kernel-tip
Josh Stone [Thu, 16 Apr 2009 22:20:02 +0000 (15:20 -0700)]
Keep up with tracepoint changes in kernel-tip

- Define TRACE_HEADER_MULTI_READ to allow re-pulling headers that were
  already included indirectly elsewhere.
- Some tracepoint headers were moved down to include/trace/events/,
  so add that to our glob paths.
- Add ftrace.h as a header that we should never include.

15 years agoPrivatize MAX_STACK_DEPTH
Josh Stone [Thu, 16 Apr 2009 22:07:42 +0000 (15:07 -0700)]
Privatize MAX_STACK_DEPTH

The kernel-tip tree also has a MAX_STACK_DEPTH defined in
perf_counter.h, so we need to separate our definition.  I've changed the
definition in our unwinder to STP_MAX_STACK_DEPTH.

15 years agoHandle dtrace no argument macro case specially.
Stan Cox [Thu, 16 Apr 2009 19:04:29 +0000 (15:04 -0400)]
Handle dtrace no argument macro case specially.

* dtrace: No argument case is DTRACE_PROBE/STAP_PROBE.

15 years agoSimplify dtrace.
Stan Cox [Thu, 16 Apr 2009 18:34:21 +0000 (14:34 -0400)]
Simplify dtrace.

* dtrace: Simplify the macro generator.

15 years agoImproved ppc and ia64 runtime/syscall.h.
David Smith [Thu, 16 Apr 2009 17:25:24 +0000 (12:25 -0500)]
Improved ppc and ia64 runtime/syscall.h.
2009-04-16  David Smith  <dsmith@redhat.com>

* syscall.h (syscall_get_arguments): Fixed sign extension for
32-bit processes on ppc64.
(__ia64_syscall_get_arguments): Calls ia64_fetch_register()
to handle NULL values.  Corrected register numbers.

15 years agoIndentation repair.
Stan Cox [Thu, 16 Apr 2009 14:40:02 +0000 (10:40 -0400)]
Indentation repair.

* tapsets.cxx (dwflpp::iterate_over_labels):  Fix indentation.

15 years agoUse iterate_over_srcfile_lines for function("func@file:N").label
Stan Cox [Thu, 16 Apr 2009 14:25:05 +0000 (10:25 -0400)]
Use iterate_over_srcfile_lines for function("func@file:N").label

* tapsets.cxx (dwflpp::iterate_over_labels): Renamed from
iterate_over_cu_labels, method signature simplified.
(query_srcfile_label): New.
(query_cu): Use above.
* labels.exp: New tests for above.

15 years agoPR9940: add/use unmap_u[ret]probe
Jim Keniston [Wed, 15 Apr 2009 23:11:17 +0000 (16:11 -0700)]
PR9940: add/use unmap_u[ret]probe
For uprobes 1 and 2, add unmap_u[ret]probe() and define UPROBES_API_VERSION=2.
Adapt tapsets.cxx accordingly.

15 years agoMerge branch 'master' of ssh://kenistoj@sources.redhat.com/git/systemtap
Jim Keniston [Wed, 15 Apr 2009 23:02:58 +0000 (16:02 -0700)]
Merge branch 'master' of ssh://kenistoj@sources.redhat.com/git/systemtap

15 years agoMerge branch 'dwarf_unwinder'
Mark Wielaard [Wed, 15 Apr 2009 17:20:56 +0000 (19:20 +0200)]
Merge branch 'dwarf_unwinder'

15 years agoMerge branch 'sections'
Mark Wielaard [Wed, 15 Apr 2009 17:20:41 +0000 (19:20 +0200)]
Merge branch 'sections'

15 years agoMinor formatting to avoid line wrap, added tcpdumplike.meta file,
William Cohen [Tue, 14 Apr 2009 21:37:19 +0000 (17:37 -0400)]
Minor formatting to avoid line wrap, added tcpdumplike.meta file,
and regenerated index files.

15 years agoPR9953: split up the two process.* tapsets
Josh Stone [Tue, 14 Apr 2009 19:34:12 +0000 (12:34 -0700)]
PR9953: split up the two process.* tapsets

The overlapping process.* tapsets are now separated.  Those probe points
documented in stapprobes(3stap) remain the same.  Those that were formerly
in stapprobes.process(3stap) have been renamed to kprocess, to reflect
their kernel perspective on processes.

15 years agoMake sure addr falls inside section in _stp_mod_sec_lookup.
Mark Wielaard [Tue, 14 Apr 2009 18:58:26 +0000 (20:58 +0200)]
Make sure addr falls inside section in _stp_mod_sec_lookup.

* runtime/sym.c (_stp_mod_sec_lookup): Use section size to match addr.
  Only return exact matches, not just closes offset.

15 years agoAdjust NEWS indentation
Josh Stone [Tue, 14 Apr 2009 18:49:15 +0000 (11:49 -0700)]
Adjust NEWS indentation

15 years agoMake tcpdumplike.stp executable
Josh Stone [Tue, 14 Apr 2009 18:00:05 +0000 (11:00 -0700)]
Make tcpdumplike.stp executable

15 years agoOnly set sec in _stp_mod_sec_lookup when not NULL.
Mark Wielaard [Tue, 14 Apr 2009 17:54:38 +0000 (19:54 +0200)]
Only set sec in _stp_mod_sec_lookup when not NULL.

* runtime/sym.c (_stp_mod_sec_lookup): Only set sec when not NULL.

15 years agoAdd Andre Detsch to AUTHORS
Josh Stone [Tue, 14 Apr 2009 17:53:44 +0000 (10:53 -0700)]
Add Andre Detsch to AUTHORS

15 years agoAdd new TCP and IP functions
Andre Detsch [Tue, 14 Apr 2009 17:23:59 +0000 (14:23 -0300)]
Add new TCP and IP functions

This patch adds some basic functions to the IP and TCP tapsets.
Mainly, it's possible to get the iphdr and tcphdr from a sk_buff structure.

As a consequence, a TCP probe called tcp.receive() was created and
is probed every time a TCP packet is received, and a lot of
useful fields is available, as the TCP flags.

Also a small example that works like tcpdump for received TCP packets was
created.

This patch was tested on x86 and ppc machines, on 2.6.18 kernel and also on
mainline one.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Signed-off-by: Josh Stone <jistone@redhat.com>
15 years agoKeep track of relocation section sizes.
Mark Wielaard [Tue, 14 Apr 2009 17:30:56 +0000 (19:30 +0200)]
Keep track of relocation section sizes.

* runtime/sym.h (_stp_section): Add size field.
* translate.cxx (dump_unwindsyms): Get start of module address space,
  turn seclist into vector of secname, size pairs, track relocation section
  size, or add module address range if no sections, output size in
 _stp_section list.

15 years agoPR10070: don't warn about side-effect-free probes in -t (timing) mode
Frank Ch. Eigler [Tue, 14 Apr 2009 17:13:43 +0000 (13:13 -0400)]
PR10070: don't warn about side-effect-free probes in -t (timing) mode

* elaborate.cxx (semantic_pass_opt4): Filter warning on s.timing.

15 years agoPR10067: fix bitfield access
Josh Stone [Tue, 14 Apr 2009 02:50:23 +0000 (19:50 -0700)]
PR10067: fix bitfield access

* tapsets.cxx (dwflpp::translate_components): Eliminate the extra
die-dereference at the end of the loop (a regression from @casts).
* runtime/loc2c-runtime.h (store_bitfield): Use the target as the
representative type, since the base is always int64_t.  Also be a
bit more aggressive with masking and parentheses.
* testsuite/systemtap.base/bitfield.*: New test for R/W bitfields.

15 years agoPR10049: Restore better errors for $return
Josh Stone [Mon, 13 Apr 2009 21:46:54 +0000 (14:46 -0700)]
PR10049: Restore better errors for $return

In commit c4ce66a1 I shifted some of the variable accesses around, and
that caused the error messages for $return variables to lose context.

The root problem in this case was that dwarf_attr didn't find the type
attribute, and that failure wasn't immediately caught.  Now that result
is checked so we can provide a proper error message.

While I'm at it, changing that lookup to dwarf_attr_integrate is enough
to make the $return value usable again, at least for the reported test
case.

15 years agoImprove -l output for .label
Stan Cox [Mon, 13 Apr 2009 21:51:58 +0000 (17:51 -0400)]
Improve -l output for .label

* tapsets.cxx (iterate_over_cu_labels): Treat -l specially so the
output of a .label can be improved.
* labels.stp: Test -l

15 years agoadd a space
Eugeniy Meshcheryakov [Mon, 13 Apr 2009 19:05:25 +0000 (21:05 +0200)]
add a space

15 years agoDon't redefine STP_USE_DWARF_UNWINDER.
Mark Wielaard [Sun, 12 Apr 2009 21:46:48 +0000 (23:46 +0200)]
Don't redefine STP_USE_DWARF_UNWINDER.

* runtime/runtime.h: STP_USE_DWARF_UNWINDER don't redefine.

15 years agoPrefer dwarf unwinder on i386 and x86_64.
Mark Wielaard [Sat, 11 Apr 2009 11:08:06 +0000 (13:08 +0200)]
Prefer dwarf unwinder on i386 and x86_64.

* runtime/runtime.h: Move up and enable check for STP_USE_DWARF_UNWINDER.

15 years agoFix unwind _stp_mod_sec_lookup.
Mark Wielaard [Fri, 10 Apr 2009 20:55:26 +0000 (22:55 +0200)]
Fix unwind _stp_mod_sec_lookup.

* runtime/unwind.c (unwind): Pass current to _stp_mod_sec_lookup().

15 years agoMake stmt_rel.exp have good compatibility
Wenji Huang [Fri, 10 Apr 2009 03:48:39 +0000 (23:48 -0400)]
Make stmt_rel.exp have good compatibility

15 years agoCleanup symbol table sanity checking.
Mark Wielaard [Thu, 9 Apr 2009 21:18:46 +0000 (23:18 +0200)]
Cleanup symbol table sanity checking.

* translate.cxx (dump_unwindsyms): Get and check against module end, only
  check STT_FUNC && SHN_ABS for kernel, check shndxp for non-allocated
  section.

15 years agoUses <asm/syscall.h> when available.
David Smith [Thu, 9 Apr 2009 17:06:05 +0000 (12:06 -0500)]
Uses <asm/syscall.h> when available.
2009-04-09  David Smith  <dsmith@redhat.com>

        * buildrun.cxx (compile_pass): Compile autoconf test for
        <asm/syscall.h>.
        * runtime/autoconf-asm-syscall.c: New "autoconf" test the presence
        of <asm/syscall.h>.
        * runtime/syscall.h: If <asm/syscall.h> exists, use it.
        Otherwise, use our private copy of the functions for each
        architecture.
        (syscall_get_nr): Renamed from __stp_user_syscall_nr().
        (syscall_get_return_value): Renamed from
        __stp_user_syscall_return_value().
        (syscall_get_arguments): Renamed from __stp_user_syscall_arg().
        * runtime/task_finder.c
        (__stp_utrace_task_finder_target_syscall_exit): Uses new syscall.h
        functions.
        * tapset/utrace.stp: Ditto.

15 years agoMake simple probes work even without KPROBES in the kernel.
Mark Wielaard [Thu, 9 Apr 2009 16:20:32 +0000 (18:20 +0200)]
Make simple probes work even without KPROBES in the kernel.

Without KPROBES very little works atm. But stack.c file is unconditionally
imported, while these two functions are only used through context-unwind.stp.
This at least lets us do simple sanity checks on "plain" kernels.

* runtime/stack.c (_stp_stack_print, _stp_stack_snprint):
  Wrap in #if defined (CONFIG_KPROBES).

15 years agoAdd tests for probefunc(), usymname(), uaddr() versus shared libraries.
Mark Wielaard [Thu, 9 Apr 2009 12:26:07 +0000 (14:26 +0200)]
Add tests for probefunc(), usymname(), uaddr() versus shared libraries.

* testsuite/systemtap.base/uprobes_uname.exp: New file.
* testsuite/systemtap.base/uprobes_uname.stp: Likewise.

15 years agoMake new stap_task_finder_targets chain on correct list.
Mark Wielaard [Thu, 9 Apr 2009 12:22:03 +0000 (14:22 +0200)]
Make new stap_task_finder_targets chain on correct list.

* runtime/task_finder.c (stap_register_task_finder_target): Also check both
  pathlen are zero.

15 years agoMake sure code using the vma tracker compiles again.
Mark Wielaard [Wed, 8 Apr 2009 21:35:21 +0000 (23:35 +0200)]
Make sure code using the vma tracker compiles again.

* runtime/runtime.h: Include task_finder.c.
* runtime/sym.c: Always define task_finder callbacks for usage in tapsets.
* runtime/task_finder.c: Define dummy stap_task_finder_target when
  ! defined(CONFIG_UTRACE).
* tapsets.cxx: Never include task_finder.c directly.

15 years agoFix DEBUG_TASK_FINDER_VMA compilation.
Mark Wielaard [Wed, 8 Apr 2009 17:27:42 +0000 (19:27 +0200)]
Fix DEBUG_TASK_FINDER_VMA compilation.

* runtime/sym.c (_stp_tf_mmap_cb): We get passed vm_flags, not flags.

15 years agoAdd main executable symbol uprobe to uprobes_lib.exp test.
Mark Wielaard [Wed, 8 Apr 2009 16:11:34 +0000 (18:11 +0200)]
Add main executable symbol uprobe to uprobes_lib.exp test.

There was nothing wrong with the probe itself, but because the body
was empty the compiler optimised away the actual call...

* testsuite/systemtap.base/uprobes_lib.exp: Activate main exe probe, expect
  more output.
* testsuite/systemtap.base/uprobes_lib.stp: Also probe main and main_lib.
* testsuite/systemtap.base/uprobes_exe.c: Put some code in main_func.
* testsuite/systemtap.base/uprobes_lib.c: Likewise for lib_func.

15 years agoConsider function when handling .label
Stan Cox [Wed, 8 Apr 2009 21:19:04 +0000 (17:19 -0400)]
Consider function when handling .label

* tapsets.cxx(dwflpp::iterate_over_cu_labels): New parameter function.
Do wildcard match for function.
* testsuite/systemtap.base/labels.exp: Test .label function handling.

15 years agoBetter error handling in 'setup_server'.
David Smith [Wed, 8 Apr 2009 20:31:49 +0000 (15:31 -0500)]
Better error handling in 'setup_server'.
2009-04-08  David Smith  <dsmith@redhat.com>

        * lib/systemtap.exp (setup_server): Better error handling.

15 years agoAdded '#ifdef STP_NEED_VMA_TRACKER' around code that needs it.
David Smith [Wed, 8 Apr 2009 18:14:24 +0000 (13:14 -0500)]
Added '#ifdef STP_NEED_VMA_TRACKER' around code that needs it.
2009-04-08  David Smith  <dsmith@redhat.com>

        * runtime/sym.c: Added '#ifdef STP_NEED_VMA_TRACKER' around code
        that needs it.

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
David Smith [Wed, 8 Apr 2009 17:42:39 +0000 (12:42 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoOnly includes task_finder.c when needed.
David Smith [Wed, 8 Apr 2009 17:41:55 +0000 (12:41 -0500)]
Only includes task_finder.c when needed.
2009-04-08  David Smith  <dsmith@redhat.com>

        * tapsets.cxx (itrace_derived_probe_group::emit_module_decls):
        Added inclusion of task_finder.c back.  Unconditionally including
        it when not needed causes all systemtap scripts to fail on kernels
        with no utrace support.
        (utrace_derived_probe_group::emit_module_decls): Ditto.
        (uprobe_derived_probe_group::emit_module_decls): Ditto.
        * runtime/runtime.h: Removed unconditional inclusion of
        task_finder.c.

15 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Stan Cox [Wed, 8 Apr 2009 16:40:27 +0000 (12:40 -0400)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

15 years agoDo not do a partial name comparison for .label.
Stan Cox [Wed, 8 Apr 2009 16:36:37 +0000 (12:36 -0400)]
Do not do a partial name comparison for .label.

* tapsets.cxx (dwflpp::iterate_over_cu_labels): Compare with strcmp not strncmp.

15 years agotweak nettop.stp demo to sort by accumulated counts despite merging
Frank Ch. Eigler [Wed, 8 Apr 2009 16:29:29 +0000 (12:29 -0400)]
tweak nettop.stp demo to sort by accumulated counts despite merging

15 years agoFix stats for processes that only transmitted data without receiving
Eugeniy Meshcheryakov [Wed, 8 Apr 2009 14:57:39 +0000 (16:57 +0200)]
Fix stats for processes that only transmitted data without receiving

15 years agoOmit symbols that have suspicious addresses (before base) from symbol table.
Mark Wielaard [Wed, 8 Apr 2009 10:35:01 +0000 (12:35 +0200)]
Omit symbols that have suspicious addresses (before base) from symbol table.

* translate.cxx (dump_unwindsyms): Filter out sym.st_value < base values.

15 years agoUse _stp_snprintf in _stp_symbol_snprint.
Mark Wielaard [Wed, 8 Apr 2009 09:11:34 +0000 (11:11 +0200)]
Use _stp_snprintf in _stp_symbol_snprint.

* runtime/sym.c (_stp_symbol_snprint): Use _stp_snprintf, no _stp_printf.

15 years agoAdd uaddr() context tapset function.
Mark Wielaard [Wed, 8 Apr 2009 08:59:27 +0000 (10:59 +0200)]
Add uaddr() context tapset function.

* tapset/context.stp (uaddr): New sfunction.
* testsuite/buildok/uaddr.stp: New test.

15 years agoFix so publicanized Tapset Reference manual can be generated again.
William Cohen [Tue, 7 Apr 2009 18:46:28 +0000 (14:46 -0400)]
Fix so publicanized Tapset Reference manual can be generated again.

15 years agoAdd valid interval in error message when timer probe out of range.
Mark Wielaard [Tue, 7 Apr 2009 12:59:59 +0000 (14:59 +0200)]
Add valid interval in error message when timer probe out of range.

* tapsets.cxx (hrtimer_derived_probe): Take scale argument, add
  interval/scale to semantic_error message.
  (timer_builder): Set and pass scale.

15 years agoTrack VMA per pid (group_leader/tgid).
Mark Wielaard [Tue, 7 Apr 2009 12:17:09 +0000 (14:17 +0200)]
Track VMA per pid (group_leader/tgid).

* runtime/sym.c (_stp_tf_vm_cb): Add and remove tsk->group_leader.
  (_stp_mod_sec_lookup): find vma for task->group_leader.

15 years agoCreate usymname and usymdata variant that trigger STP_NEED_VMA_TRACKER.
Mark Wielaard [Tue, 7 Apr 2009 10:25:53 +0000 (12:25 +0200)]
Create usymname and usymdata variant that trigger STP_NEED_VMA_TRACKER.

* tapset/context-symbols.stp (syname, symdata): Pass NULL for kernel address.
* tapset/ucontext-symbols.stp: New file defining usymname and usymdata.
* testsuite/systemtap.context/usymbols.exp: Use usymname, remove
  STP_NEED_VMA_TRACKER hack.
* testsuite/buildok/usymdata.stp: New test.
* testsuite/buildok/usymname.stp: Likewise.

15 years agoPR 9940. Rearchitected task_finder.c a bit.
David Smith [Tue, 7 Apr 2009 13:23:14 +0000 (08:23 -0500)]
PR 9940.  Rearchitected task_finder.c a bit.
2009-04-07  David Smith  <dsmith@redhat.com>

PR 9940.
* tapsets.cxx (emit_vma_callback_probe_decl): Initialized new
callbacks.
(utrace_derived_probe_group::emit_probe_decl): Ditto.
(uprobe_derived_probe_group::emit_module_decls): Uses new
callback.  Makes sure mapping is executable before trying to set a
probe in it.
(itrace_derived_probe_group::emit_module_init): Calls
_stp_sym_init().
(utrace_derived_probe_group::emit_module_init): Ditto.
(uprobe_derived_probe_group::emit_module_init): Ditto.
* runtime/sym.c: Moved task_finder_vma.c inclusion here from
task_finder.c.
(_stp_sym_init): New function.
(_stp_tf_mmap_cb): New function that replaces _stp_tf_vm_cb.
(_stp_tf_munmap_cb): Ditto.
* runtime/task_finder.c: Removed task_finder_vma.c inclusion.
Split vm_callback into 3 callbacks: mmap_callback,
munmap_callback, and mprotect_callback.
(stap_register_task_finder_target): Initializes new events
variables for the new callbacks.
(__STP_TASK_VM_BASE_EVENTS): No longer specifies syscall entry
events.
(__stp_call_mmap_callbacks): New function.
(__stp_call_mmap_callbacks_with_vma): Ditto.
(__stp_call_munmap_callbacks): Ditto.
(__stp_call_mprotect_callbacks): Ditto.
(__stp_call_vm_callbacks): Removed.
(__stp_utrace_task_finder_target_quiesce): Calls
__stp_call_mmap_callbacks() instead of __stp_call_vm_callbacks().
(__stp_utrace_task_finder_target_syscall_entry): Removed
function.
(__stp_utrace_task_finder_target_syscall_exit): Reports raw
mmap()/mprotect()/munmap() events.

15 years agoPR10026: Read marker/tracepoint args directly
Josh Stone [Mon, 6 Apr 2009 23:11:30 +0000 (16:11 -0700)]
PR10026: Read marker/tracepoint args directly

We already stash the context variables for markers and tracepoints into
the locals for the probe body, but then we were using separate functions
to read those locals for each particular probe body.

This patch instead teaches the unparser how to emit the local name
directly for those context variables.  The resulting code from the
translator is much simpler now.

15 years agoPR10037: add target_symbol token to $context error messages
Frank Ch. Eigler [Mon, 6 Apr 2009 23:40:13 +0000 (19:40 -0400)]
PR10037: add target_symbol token to $context error messages

* tapsets.cxx (many foo-translate-bar): Add const target_symbol*
  parameter, for ->tok use when constructing semantic_errors.

15 years agoRun autoreconf
Eugeniy Meshcheryakov [Mon, 6 Apr 2009 15:43:44 +0000 (17:43 +0200)]
Run autoreconf

15 years agoMake install-scripts depend on install-binSCRIPTS
Eugeniy Meshcheryakov [Mon, 6 Apr 2009 15:42:18 +0000 (17:42 +0200)]
Make install-scripts depend on install-binSCRIPTS

This is needed for running make with -j. Fixes Debian bug #522800.

15 years agoAmend process/errsnoop.stp shebang
Eugene Teo [Sun, 5 Apr 2009 03:52:44 +0000 (11:52 +0800)]
Amend process/errsnoop.stp shebang

15 years agoRemove extra commas in SEE ALSO sections
Eugeniy Meshcheryakov [Sat, 4 Apr 2009 19:58:06 +0000 (21:58 +0200)]
Remove extra commas in SEE ALSO sections

15 years agoMake examples executable
Eugeniy Meshcheryakov [Sat, 4 Apr 2009 19:36:52 +0000 (21:36 +0200)]
Make examples executable

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

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