This is the mail archive of the
systemtap-cvs@sourceware.org
mailing list for the systemtap project.
[SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.0-370-g5e562a6
- From: moore at sourceware dot org
- To: systemtap-cvs at sourceware dot org
- Date: 16 Dec 2009 14:07:20 -0000
- Subject: [SCM] systemtap: system-wide probe/trace tool branch, master, updated. release-1.0-370-g5e562a6
- Reply-to: systemtap at sourceware dot org
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "systemtap: system-wide probe/trace tool".
The branch, master has been updated
via 5e562a69a5432566c6ae78344ae51b80ced7f15b (commit)
from 39a3e39706a18dbf3698b52fc1cc7532d94078e8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5e562a69a5432566c6ae78344ae51b80ced7f15b
Author: Tim Moore <timoore@redhat.com>
Date: Wed Dec 16 12:00:55 2009 +0100
set the IP in return probes to the returned-to instruction
It's easily available in kretprobes and uretprobes and is consistent
with the rest of the program state.
* translate.cxx (emit_common_header) : add uretprobe_instance to context.
* tapsets.cxx (common_probe_entryfn_prologue): Initialize ri in
context to 0.
(dwarf_derived_probe_group::emit_module_decls): Change IP to return
address in kretprobes.
(uprobe_derived_probe_group::emit_module_decls): enter_uretprobe_probe:
set ri (uretprobe_instance) in context. Change IP to return
address in uretprobes. Don't emit uprobe include and #define
* runtime/runtime.h : Add includes and #define for uprobes.
* runtime/stack.c (_stp_stack_print, _stp_stack_snprint): Add extra
argument for uretprobe_instance.
* tapset/context-unwind.stp (print_backtrace, backtrace): Pass NULL
for uretprobe_instance to _stp_stack_print.
* tapset/ucontext-unwind.stp (print_ubacktrace, ubacktrace): pass
uretprobe_instance to _stp_stack_print
* testsuite/systemtap.context/uprobe_uaddr.exp : new test for uaddr in
function probes
* testsuite/systemtap.context/uprobe_uaddr.stp : new file
-----------------------------------------------------------------------
Summary of changes:
runtime/runtime.h | 11 +++++
runtime/stack.c | 11 ++++-
tapset/context-unwind.stp | 4 +-
tapset/ucontext-unwind.stp | 4 +-
tapsets.cxx | 23 +++++-----
testsuite/systemtap.context/uprobe_uaddr.exp | 58 ++++++++++++++++++++++++++
testsuite/systemtap.context/uprobe_uaddr.stp | 24 +++++++++++
translate.cxx | 1 +
8 files changed, 117 insertions(+), 19 deletions(-)
create mode 100644 testsuite/systemtap.context/uprobe_uaddr.exp
create mode 100644 testsuite/systemtap.context/uprobe_uaddr.stp
hooks/post-receive
--
systemtap: system-wide probe/trace tool