summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make dropwatch.stp executable and have correct interpreter.William Cohen2009-04-171-1/+1
|
* Add dropwatch.stp example.William Cohen2009-04-176-1/+109
|
* PR7072: use _stp_reserve_bytes for printf bufferKent Sebastian2009-04-172-33/+350
|
* Added new utrace syscall argument test.David Smith2009-04-173-0/+515
| | | | | | | | 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.
* Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDavid Smith2009-04-175-45/+44
|\
| * Output probe calling sequence commentStan Cox2009-04-172-14/+3
| | | | | | | | * dtrace: Output probe calling sequence comment
| * Keep up with tracepoint changes in kernel-tipJosh Stone2009-04-161-5/+19
| | | | | | | | | | | | | | | | - 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.
| * Privatize MAX_STACK_DEPTHJosh Stone2009-04-162-3/+3
| | | | | | | | | | | | 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.
| * Handle dtrace no argument macro case specially.Stan Cox2009-04-161-5/+10
| | | | | | | | * dtrace: No argument case is DTRACE_PROBE/STAP_PROBE.
| * Simplify dtrace.Stan Cox2009-04-161-25/+16
| | | | | | | | * dtrace: Simplify the macro generator.
* | Avoid sign extension in syscall return values.David Smith2009-04-171-9/+15
|/ | | | | | | | 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.
* Improved ppc and ia64 runtime/syscall.h.David Smith2009-04-161-7/+18
| | | | | | | | | 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.
* Indentation repair.Stan Cox2009-04-161-89/+88
| | | | * tapsets.cxx (dwflpp::iterate_over_labels): Fix indentation.
* Use iterate_over_srcfile_lines for function("func@file:N").labelStan Cox2009-04-162-103/+158
| | | | | | | | * 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.
* PR9940: add/use unmap_u[ret]probeJim Keniston2009-04-155-23/+107
| | | | | For uprobes 1 and 2, add unmap_u[ret]probe() and define UPROBES_API_VERSION=2. Adapt tapsets.cxx accordingly.
* Merge branch 'master' of ssh://kenistoj@sources.redhat.com/git/systemtapJim Keniston2009-04-15125-1248/+3234
|\
| * Merge branch 'dwarf_unwinder'Mark Wielaard2009-04-152-8/+8
| |\
| | * Don't redefine STP_USE_DWARF_UNWINDER.Mark Wielaard2009-04-121-0/+2
| | | | | | | | | | | | * runtime/runtime.h: STP_USE_DWARF_UNWINDER don't redefine.
| | * Prefer dwarf unwinder on i386 and x86_64.Mark Wielaard2009-04-111-7/+5
| | | | | | | | | | | | * runtime/runtime.h: Move up and enable check for STP_USE_DWARF_UNWINDER.
| | * Fix unwind _stp_mod_sec_lookup.Mark Wielaard2009-04-101-1/+1
| | | | | | | | | | | | * runtime/unwind.c (unwind): Pass current to _stp_mod_sec_lookup().
| * | Merge branch 'sections'Mark Wielaard2009-04-153-30/+56
| |\ \
| | * | Make sure addr falls inside section in _stp_mod_sec_lookup.Mark Wielaard2009-04-141-14/+10
| | | | | | | | | | | | | | | | | | | | * runtime/sym.c (_stp_mod_sec_lookup): Use section size to match addr. Only return exact matches, not just closes offset.
| | * | Only set sec in _stp_mod_sec_lookup when not NULL.Mark Wielaard2009-04-141-1/+2
| | | | | | | | | | | | | | | | * runtime/sym.c (_stp_mod_sec_lookup): Only set sec when not NULL.
| | * | Keep track of relocation section sizes.Mark Wielaard2009-04-142-15/+44
| | |/ | | | | | | | | | | | | | | | | | | | | | * 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.
| * | Minor formatting to avoid line wrap, added tcpdumplike.meta file,William Cohen2009-04-146-5/+50
| | | | | | | | | | | | and regenerated index files.
| * | PR9953: split up the two process.* tapsetsJosh Stone2009-04-1415-61/+67
| | | | | | | | | | | | | | | | | | | | | 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.
| * | Adjust NEWS indentationJosh Stone2009-04-141-14/+14
| | |
| * | Make tcpdumplike.stp executableJosh Stone2009-04-141-0/+2
| | |
| * | Add Andre Detsch to AUTHORSJosh Stone2009-04-141-0/+1
| | |
| * | Add new TCP and IP functionsAndre Detsch2009-04-143-0/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | PR10070: don't warn about side-effect-free probes in -t (timing) modeFrank Ch. Eigler2009-04-141-1/+2
| | | | | | | | | | | | * elaborate.cxx (semantic_pass_opt4): Filter warning on s.timing.
| * | PR10067: fix bitfield accessJosh Stone2009-04-134-7/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | PR10049: Restore better errors for $returnJosh Stone2009-04-131-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Improve -l output for .labelStan Cox2009-04-132-6/+30
| | | | | | | | | | | | | | | | | | * tapsets.cxx (iterate_over_cu_labels): Treat -l specially so the output of a .label can be improved. * labels.stp: Test -l
| * | add a spaceEugeniy Meshcheryakov2009-04-131-1/+1
| |/
| * Make stmt_rel.exp have good compatibilityWenji Huang2009-04-091-1/+3
| |
| * Cleanup symbol table sanity checking.Mark Wielaard2009-04-091-16/+29
| | | | | | | | | | | | * translate.cxx (dump_unwindsyms): Get and check against module end, only check STT_FUNC && SHN_ABS for kernel, check shndxp for non-allocated section.
| * Uses <asm/syscall.h> when available.David Smith2009-04-095-152/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Make simple probes work even without KPROBES in the kernel.Mark Wielaard2009-04-091-0/+8
| | | | | | | | | | | | | | | | | | 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).
| * Add tests for probefunc(), usymname(), uaddr() versus shared libraries.Mark Wielaard2009-04-092-0/+53
| | | | | | | | | | * testsuite/systemtap.base/uprobes_uname.exp: New file. * testsuite/systemtap.base/uprobes_uname.stp: Likewise.
| * Make new stap_task_finder_targets chain on correct list.Mark Wielaard2009-04-091-1/+1
| | | | | | | | | | * runtime/task_finder.c (stap_register_task_finder_target): Also check both pathlen are zero.
| * Make sure code using the vma tracker compiles again.Mark Wielaard2009-04-084-26/+6
| | | | | | | | | | | | | | | | * 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.
| * Fix DEBUG_TASK_FINDER_VMA compilation.Mark Wielaard2009-04-081-1/+1
| | | | | | | | * runtime/sym.c (_stp_tf_mmap_cb): We get passed vm_flags, not flags.
| * Add main executable symbol uprobe to uprobes_lib.exp test.Mark Wielaard2009-04-084-11/+23
| | | | | | | | | | | | | | | | | | | | | | 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.
| * Consider function when handling .labelStan Cox2009-04-082-16/+34
| | | | | | | | | | | | * tapsets.cxx(dwflpp::iterate_over_cu_labels): New parameter function. Do wildcard match for function. * testsuite/systemtap.base/labels.exp: Test .label function handling.
| * Better error handling in 'setup_server'.David Smith2009-04-081-2/+2
| | | | | | | | | | | | 2009-04-08 David Smith <dsmith@redhat.com> * lib/systemtap.exp (setup_server): Better error handling.
| * Added '#ifdef STP_NEED_VMA_TRACKER' around code that needs it.David Smith2009-04-081-1/+2
| | | | | | | | | | | | | | 2009-04-08 David Smith <dsmith@redhat.com> * runtime/sym.c: Added '#ifdef STP_NEED_VMA_TRACKER' around code that needs it.
| * Merge branch 'master' of ssh://sources.redhat.com/git/systemtapDavid Smith2009-04-088-43/+135
| |\
| | * Merge branch 'master' of ssh://sourceware.org/git/systemtapStan Cox2009-04-081-4/+4
| | |\
| | | * tweak nettop.stp demo to sort by accumulated counts despite mergingFrank Ch. Eigler2009-04-081-4/+4
| | | |