]> sourceware.org Git - systemtap.git/log
systemtap.git
15 years agoutrace/ia64: Fix syscall_get_set_args_cb() to handle syscalls via syscall()
Masami Hiramatsu [Wed, 22 Apr 2009 17:21:17 +0000 (13:21 -0400)]
utrace/ia64: Fix syscall_get_set_args_cb() to handle syscalls via syscall()

* runtime/syscall.h (syscall_get_set_args_cb): Fix to decode user stack
  collectly in case of syscall(), and check the maximum number of syscall
  arguments.

15 years agoPR 9821: Add a testcase for strftime
Masami Hiramatsu [Wed, 22 Apr 2009 17:18:01 +0000 (13:18 -0400)]
PR 9821: Add a testcase for strftime

* testsuite/systemtap.base/strftime.exp: New test case for strftime.

15 years agoPR 9821: Use genuine strftime in staprun/stapio
Masami Hiramatsu [Wed, 22 Apr 2009 17:16:25 +0000 (13:16 -0400)]
PR 9821: Use genuine strftime in staprun/stapio

* Makefile.am: Add -fno-builtin-strftime to stapio_CFLAGS.
* Makefile.in: Ditto.
* runtime/staprun/common.c (stap_strfloctime): Use strftime(3).
  (parse_args): Remove strftime format limitation message.
* main.cxx (usage): Ditto.
* stap.1.in: Ditto.
* staprun.8.in: Ditto.

15 years agoPR 6930: Add testcases for on-file flight recorder
Masami Hiramatsu [Wed, 22 Apr 2009 17:07:26 +0000 (13:07 -0400)]
PR 6930: Add testcases for on-file flight recorder

* testsuite/systemtap.base/flightrec1.exp: New test case for background mode.
* testsuite/systemtap.base/flightrec2.exp: New test case for file switching.
* testsuite/systemtap.base/flightrec2.stp: Test script for file switching.

15 years agoPR 9941: Add predicate function callback to check for an early abort
Rajan Arora [Wed, 22 Apr 2009 16:10:37 +0000 (12:10 -0400)]
PR 9941: Add predicate function callback to check for an early abort

* tapsets.cxx: Add dwfl_report_offline_predicate to check pending
  interrupts for an early abort.
* tapsets.h: Declare it.
* translate.cxx: Add callback to function call.

15 years agoMake sdt.h big endian aware.
Stan Cox [Wed, 22 Apr 2009 15:34:14 +0000 (11:34 -0400)]
Make sdt.h big endian aware.

* sdt.h: Use .quad instead of .long for .probe section addresses.
ia64 and s390 require 'nop 0' and x86 tolerates it.
* tapsets.cxx (build): Fetch probe_name in a big endian friendly fashion.

15 years agoCorrect sigmon.meta example title and name.
Sunzen Wang [Wed, 22 Apr 2009 11:52:15 +0000 (13:52 +0200)]
Correct sigmon.meta example title and name.

* testsuite/systemtap.examples/process/sigmon.meta: Correct title and name.
* testsuite/systemtap.examples/index.html: Regenerated.
* testsuite/systemtap.examples/index.txt: Likewise.
* testsuite/systemtap.examples/keyword-index.html: Likewise.
* testsuite/systemtap.examples/keyword-index.txt: Likewise.

15 years agoSimplify section size logic.
Mark Wielaard [Wed, 22 Apr 2009 10:53:39 +0000 (12:53 +0200)]
Simplify section size logic.

* translate.cxx (dump_unwindsyms): Just check that dwfl_module_relocations()
  return more than 1 relocation section bases before calling
  dwfl_module_address_section().

15 years ago[tracepoints] Resolve implicit trace_X use
Josh Stone [Wed, 22 Apr 2009 02:57:59 +0000 (19:57 -0700)]
[tracepoints] Resolve implicit trace_X use

Some of the tracepoints are actually being called in inlines in the
common headers (e.g. trace_kmalloc), which is causing errors about
implicit function declarations.  We don't care about ever running the
code in the tracequery module, so I'm just suppressing that error.

15 years ago[tracepoints] Don't use TRACE_HEADER_MULTI_READ
Josh Stone [Wed, 22 Apr 2009 02:55:47 +0000 (19:55 -0700)]
[tracepoints] Don't use TRACE_HEADER_MULTI_READ

At one point that macro was needed to get all of the tracepoints on the
tip tree, but now it's causing us to get duplicate stapprobe_X
definitions.  AFAICS, we're now getting all tracepoints even without
MULTI_READ, so I'm pulling that workaround out.

15 years agoUse tokenize() for splitting @cast's module list
Josh Stone [Tue, 21 Apr 2009 19:57:37 +0000 (12:57 -0700)]
Use tokenize() for splitting @cast's module list

15 years agoDocument @cast-with-headers
Josh Stone [Tue, 21 Apr 2009 19:34:33 +0000 (12:34 -0700)]
Document @cast-with-headers

15 years agoNB @cast's relative header searching
Josh Stone [Tue, 21 Apr 2009 19:12:43 +0000 (12:12 -0700)]
NB @cast's relative header searching

15 years agoRefine the @cast-with-header syntax
Josh Stone [Tue, 21 Apr 2009 19:08:42 +0000 (12:08 -0700)]
Refine the @cast-with-header syntax

The special syntax to generate a module for type information is now:
- "kernel<path/to/header.h>" to use the kernel's build environment
- "<path/to/header.h>" to use no special build environment, and so use
  gcc's default parameters only (for user mode).

15 years agoSet MAXSTRINGLEN to 133 for uprobes_ustack.exp test on 64 bit.
Mark Wielaard [Tue, 21 Apr 2009 19:33:24 +0000 (21:33 +0200)]
Set MAXSTRINGLEN to 133 for uprobes_ustack.exp test on 64 bit.

Needs extra space since on 64bit the last ubacktrace string is
7 entries * (16 hex + 2 for 0x + 1 space) = 133 chars.
Default MAXSTRINGLEN is 128 chars.

* testsuite/systemtap.base/uprobes_ustack.exp: Add -DMAXSTRINGLEN.

15 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Mark Wielaard [Tue, 21 Apr 2009 19:21:02 +0000 (21:21 +0200)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

15 years agoRef-count correctly when deranged handler calls do_exit().
Jim Keniston [Tue, 21 Apr 2009 18:57:36 +0000 (11:57 -0700)]
Ref-count correctly when deranged handler calls do_exit().

15 years agodocument user-space probes more fully, mention utrace requirements
Frank Ch. Eigler [Tue, 21 Apr 2009 18:11:18 +0000 (14:11 -0400)]
document user-space probes more fully, mention utrace requirements

15 years agoMerge branch 'user_unwind'
Mark Wielaard [Tue, 21 Apr 2009 18:01:00 +0000 (20:01 +0200)]
Merge branch 'user_unwind'

15 years agoMark ucontext tapset functions EXPERIMENTAL.
Mark Wielaard [Tue, 21 Apr 2009 17:57:02 +0000 (19:57 +0200)]
Mark ucontext tapset functions EXPERIMENTAL.

* tapset/ucontext-symbols.stp (usymname, usymdata, print_ustack):
  mark EXPERIMENTAL.
* tapset/ucontext-unwind.stp (print_ubacktrace, ubacktrace): Likewise.

15 years agoAdd uprobes_ustack testcase and bug fixlet.
Mark Wielaard [Tue, 21 Apr 2009 17:44:55 +0000 (19:44 +0200)]
Add uprobes_ustack testcase and bug fixlet.

* runtime/stack.c (_stp_stack_print): Use _stp_usymbol_print when tsk given.
* testsuite/systemtap.base/uprobes_ustack.exp: New test file.
* testsuite/systemtap.base/uprobes_ustack.stp: Likewise.

15 years agoUpdated utrace tests.
David Smith [Tue, 21 Apr 2009 15:49:15 +0000 (10:49 -0500)]
Updated utrace tests.
2009-04-21  David Smith  <dsmith@redhat.com>

* testsuite/semok/utrace01.stp: New test.
* testsuite/parseko/utrace01.stp: Updated test.
* testsuite/semko/utrace03.stp: Ditto.
* testsuite/semko/utrace04.stp: Ditto.
* testsuite/semko/utrace01.stp: Deleted unneeded test.
* testsuite/semko/utrace08.stp: Ditto.
* testsuite/semko/utrace09.stp: Ditto.
* testsuite/semko/utrace10.stp: Ditto.
* testsuite/semko/utrace11.stp: Ditto.
* testsuite/semko/utrace12.stp: Ditto.
* testsuite/semko/utrace13.stp: Ditto.

15 years agoAdd ubacktrace(), print_ustack() and print_ubacktrace().
Mark Wielaard [Tue, 21 Apr 2009 15:16:51 +0000 (17:16 +0200)]
Add ubacktrace(), print_ustack() and print_ubacktrace().

* runtime/sym.c (_stp_usymbol_print): New function.
* tapset/ucontext-unwind.stp (print_ubacktrace): New tapset function.
  (ubacktrace): Likewise.
* tapset/ucontext-symbols.stp (print_ustack): Likewise.
* testsuite/buildok/ustack.stp: New test for above three functions.

15 years agoRemove documentation weirdness FIXME in tapset print_stack().
Mark Wielaard [Tue, 21 Apr 2009 14:45:31 +0000 (16:45 +0200)]
Remove documentation weirdness FIXME in tapset print_stack().

Weirdness was fixed in commit d4db5608.

* tapset/context-symbols.stp (print_stack): Remove FIXME.

15 years agoCorrectly handle $syscall in process(PID_OR_PATH).syscall.return probes.
David Smith [Tue, 21 Apr 2009 13:21:34 +0000 (08:21 -0500)]
Correctly handle $syscall in process(PID_OR_PATH).syscall.return probes.
2009-04-21  David Smith  <dsmith@redhat.com>

* tapsets.cxx (utrace_derived_probe::utrace_derived_probe): If
during target-variable-expanding the probe, we added a new block
or probe, add them.
(utrace_var_expanding_visitor::visit_target_symbol_cached): New
function to cache target variables in a generated syscall probe to
use in syscall.return probes.
(utrace_var_expanding_visitor::visit_target_symbol_context): In a
syscall.return probe, you can't access $syscall.  So use
visit_target_symbol_cached() to cache the value for use here.
* testsuite/systemtap.base/utrace_syscall_args.stp: Test use of
$syscall in syscall.return probes.

15 years agoAdd testcases for kprobe.function family
Ananth N Mavinakayanahalli [Tue, 21 Apr 2009 11:49:15 +0000 (17:19 +0530)]
Add testcases for kprobe.function family

15 years agoDocumentation updates for kprobe.function family
Ananth N Mavinakayanahalli [Tue, 21 Apr 2009 11:38:31 +0000 (17:08 +0530)]
Documentation updates for kprobe.function family

15 years agoFrom Prerna Saxena: Add the kprobe.function probe family
Ananth N Mavinakayanahalli [Tue, 21 Apr 2009 11:37:22 +0000 (17:07 +0530)]
From Prerna Saxena: Add the kprobe.function probe family

15 years agoDon't use stack fallback for user space unwinding when using dwarf unwinder.
Mark Wielaard [Tue, 21 Apr 2009 10:06:53 +0000 (12:06 +0200)]
Don't use stack fallback for user space unwinding when using dwarf unwinder.

It never seems to be anywhere near correct.

* runtime/stack-i386.c (__stp_stack_print): Stop unwinding when dwarf
  unwinder fails and we are unwinding user space task.
* runtime/stack-x86_64.c (__stp_stack_print): Likewise.

15 years agoRemove old _stp_ustack bits.
Mark Wielaard [Mon, 20 Apr 2009 21:02:09 +0000 (23:02 +0200)]
Remove old _stp_ustack bits.

This code was never used, nor did it actually work.

* runtime/stack.c (_stp_ustack_print): Removed.

15 years agoMake latencytap.stp compile on i386.
Mark Wielaard [Tue, 21 Apr 2009 09:26:37 +0000 (11:26 +0200)]
Make latencytap.stp compile on i386.

Still needs a .meta file to catch any breakage in the future.

* testsuite/systemtap.examples/profiling/latencytap.stp
  (task_backtrace): Cast task to unsigned long first.

15 years agoSuppress more module-loading errors in @casts
Josh Stone [Tue, 21 Apr 2009 00:53:35 +0000 (17:53 -0700)]
Suppress more module-loading errors in @casts

Commit 462c90c3 did this for user modules, but it's needed for kernel
modules too.

15 years agoMerge branch 'cast_header'
Josh Stone [Tue, 21 Apr 2009 00:25:35 +0000 (17:25 -0700)]
Merge branch 'cast_header'

15 years agoAdd tests for @cast-generated modules
Josh Stone [Tue, 21 Apr 2009 00:18:32 +0000 (17:18 -0700)]
Add tests for @cast-generated modules

15 years agoCleanup typequery user modules from the cache too
Josh Stone [Mon, 20 Apr 2009 23:58:37 +0000 (16:58 -0700)]
Cleanup typequery user modules from the cache too

15 years agoPR10055: generate dummy modules w/ types for @cast
Josh Stone [Mon, 20 Apr 2009 23:45:26 +0000 (16:45 -0700)]
PR10055: generate dummy modules w/ types for @cast

The module field in @cast can now also be "kmod<path/to/header.h>" or
"umod<path/to/header.h>" to generate a kernel or user module which
includes the specified header.  The appropriate compiler flags are used
to save all possible type debuginfo from the header.

15 years agoSuppress module-loading errors in @casts
Josh Stone [Mon, 20 Apr 2009 23:43:15 +0000 (16:43 -0700)]
Suppress module-loading errors in @casts

If a @cast encounters a module that it can't load, it should just go on
to the next module instead of throwing an exception.  If there is no
next module, we'll get a better "type not found" exception anyway.

15 years agoAdd a function to hash typequery modules
Josh Stone [Mon, 20 Apr 2009 23:41:52 +0000 (16:41 -0700)]
Add a function to hash typequery modules

15 years agoPR10078: uretprobes on functions returning structs/unions
Jim Keniston [Mon, 20 Apr 2009 23:39:26 +0000 (16:39 -0700)]
PR10078: uretprobes on functions returning structs/unions
arch_predict_sp_at_ret() for x86_32 now accommodates ret $4.
Added bz10078 regression test.

15 years agoPass task from tapset, through stack and unwind functions for lookup.
Mark Wielaard [Mon, 20 Apr 2009 20:43:37 +0000 (22:43 +0200)]
Pass task from tapset, through stack and unwind functions for lookup.

* runtime/stack-arm.c (__stp_stack_print): Take struct task_struct *.
* runtime/stack-ia64.c (__stp_stack_print): Likewise.
* runtime/stack-ppc64.c (__stp_stack_print): Likewise.
* runtime/stack-s390.c (__stp_stack_print): Likewise.
* runtime/stack-i386.c (__stp_stack_print): Likewise.
  And add check and pass to unwind() and _stp_func_print().
* runtime/stack-x86_64.c: Likewise.
* runtime/stack.c *_stp_stack_print): Take and pass on task_struct.
  (_stp_stack_snprint): Likewise.
* runtime/unwind.c (unwind): Take and use task_struct for
  _stp_mod_sec_lookup().
* tapset/context-unwind.stp (print_backtrace): Pass NULL to
  _stp_stack_print().
  (backtrace): Pass NULL to _stp_stack_snprint().

15 years agoAdd comment to try -d kernel -d systemtap_test_module1 on backtrace.tcl test.
Mark Wielaard [Mon, 20 Apr 2009 20:42:56 +0000 (22:42 +0200)]
Add comment to try -d kernel -d systemtap_test_module1 on backtrace.tcl test.

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
David Smith [Mon, 20 Apr 2009 18:55:45 +0000 (13:55 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoUses upstream ia64 syscall functions.
David Smith [Mon, 20 Apr 2009 18:54:51 +0000 (13:54 -0500)]
Uses upstream ia64 syscall functions.
2009-04-20  David Smith  <dsmith@redhat.com>

* runtime/syscall.h (syscall_get_nr): Uses upstream version of
syscall_get_nr() for ia64.
(syscall_get_arguments): Ditto.
(in_syscall): New ia64-only function from upstream.
(syscall_get_set_args_cb): Ditto.
(ia64_syscall_get_set_arguments): Ditto.
* runtime/task_finder.c (stap_register_task_finder_target):
Removed ia64 register cache.

15 years agoHave appropriate types and cast to allow compilation on RHEL-5.
William Cohen [Mon, 20 Apr 2009 18:45:24 +0000 (14:45 -0400)]
Have appropriate types and cast to allow compilation on RHEL-5.

15 years agofix a bug with %% in format strings
Tim Moore [Mon, 20 Apr 2009 10:56:51 +0000 (12:56 +0200)]
fix a bug with %% in format strings

* translate.cxx (c_unparser::visit_print_format): Always use
_stp_printf if a format string contains "%%". Previously a format
string with no arguments would always be printed with _stp_print.
        * testsuite/systemtap.printf/basic6.stp: New test for %% in format
        strings.
        * testsuite/systemtap.printf/basic6.exp: test driver
* testsuite/systemtap.examples/grapher.stp: Remove workaround for
"%%" literal problem.

15 years agoresults of autoreconf after merge of grapher
Tim Moore [Mon, 20 Apr 2009 08:10:14 +0000 (10:10 +0200)]
results of autoreconf after merge of grapher

15 years agoMerge branch 'timoore/grapher'
Tim Moore [Mon, 20 Apr 2009 08:06:50 +0000 (10:06 +0200)]
Merge branch 'timoore/grapher'

15 years agoFinish moving grapher into a subdirectory
Tim Moore [Mon, 20 Apr 2009 07:08:08 +0000 (09:08 +0200)]
Finish moving grapher into a subdirectory

* configure.ac (GRAPHER): Configuration prefix for variables defined by
PKG_CHECK_MODULES macro.
(BUILD_GRAPHER): New conditional variable
(enable-grapher): New option
(AC_CONFIG_FILES): Add grapher/Makefile
        * Makefile.am (SUBDIRS): Add grapher
* grapher/Makefile.am: New file

15 years agoMove grapher to subdirectory
Tim Moore [Mon, 20 Apr 2009 06:13:38 +0000 (08:13 +0200)]
Move grapher to subdirectory

15 years agoAdd run-staprun to .gitignore.
Mark Wielaard [Sun, 19 Apr 2009 21:48:18 +0000 (23:48 +0200)]
Add run-staprun to .gitignore.

15 years agoPass task to _stp_func_print and _stp_kallsyms_lookup.
Mark Wielaard [Sun, 19 Apr 2009 21:39:12 +0000 (23:39 +0200)]
Pass task to _stp_func_print and _stp_kallsyms_lookup.

* runtime/sym.c (_stp_func_print): Take task, pass to _stp_kallsyms_lookup.
* runtime/stack.c (print_stack_address): Pass NULL.
* runtime/stack-i386.c (_stp_stack_print_fallback): Pass NULL.
  (__stp_stack_print): Pass NULL or current.
* runtime/stack-x86_64.c (_stp_stack_print_fallback): Pass NULL.
  (__stp_stack_print): Pass current.

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 agoAdd functions to build umod & kmod typequery
Josh Stone [Sat, 18 Apr 2009 03:34:13 +0000 (20:34 -0700)]
Add functions to build umod & kmod typequery

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 agographing widget and test harness
Tim Moore [Wed, 15 Apr 2009 16:43:23 +0000 (18:43 +0200)]
graphing widget and test harness

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.

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