]> sourceware.org Git - systemtap.git/log
systemtap.git
15 years agoCheck pending_interrupts more frequently during unwindsyms (pass 3) processing
Frank Ch. Eigler [Mon, 9 Mar 2009 02:30:03 +0000 (22:30 -0400)]
Check pending_interrupts more frequently during unwindsyms (pass 3) processing

15 years agoAdapt to linux-next commit changing __alloc_percpu API.
Frank Ch. Eigler [Mon, 9 Mar 2009 02:28:03 +0000 (22:28 -0400)]
Adapt to linux-next commit changing __alloc_percpu API.

After linux-next commit f2a8205c, it takes two parameters again,
so we autoconf for it rather than use KERNEL_VERSION ifdefs.

15 years agoMinor changes to labels.exp.
Stan Cox [Mon, 9 Mar 2009 00:17:10 +0000 (20:17 -0400)]
Minor changes to labels.exp.

15 years agoFix and add tests for function(".so").statement(N)
Stan Cox [Sun, 8 Mar 2009 23:55:05 +0000 (19:55 -0400)]
Fix and add tests for function(".so").statement(N)

* tapsets.cxx (query_dwarf_func): die_has_pc (dwarf_haspc) does not expect a
module_start for shared objects so don't call module_address_to_global for the
statement address.
* testsuite/systemtap.base/labels.exp: Add tests for executable .statement(N),
shared object .label("L") and so .statement(N).

15 years agoPR9930: reentrancy debugging
Frank Ch. Eigler [Sat, 7 Mar 2009 22:00:54 +0000 (17:00 -0500)]
PR9930: reentrancy debugging

 If stap is run with "-t -DDEBUG_REENTRANCY", additional warnings will
 be printed for every reentrancy event, including the probe points of
 the resident and interloper probes.

 * tapsets.cxx (common_probe_entryfn_prologue): Add "new_pp" argument,
 update all callers.  Print reentrancy details if needed.

15 years agoAdd placeholder for new news
Frank Ch. Eigler [Sat, 7 Mar 2009 21:42:57 +0000 (16:42 -0500)]
Add placeholder for new news

15 years agoTweak tracepoint logic to run on tracepoint_synchronize_unregister()-less RHEL5
Frank Ch. Eigler [Sat, 7 Mar 2009 17:11:45 +0000 (12:11 -0500)]
Tweak tracepoint logic to run on tracepoint_synchronize_unregister()-less RHEL5

15 years agoMerge branch 'tracepoints'
Josh Stone [Sat, 7 Mar 2009 03:43:28 +0000 (19:43 -0800)]
Merge branch 'tracepoints'

15 years agoDocument TRACEPOINTS in stapprobes(5)
Josh Stone [Sat, 7 Mar 2009 03:36:05 +0000 (19:36 -0800)]
Document TRACEPOINTS in stapprobes(5)

15 years agoEnsure tracepoints are synchronized after unreg
Josh Stone [Sat, 7 Mar 2009 03:30:39 +0000 (19:30 -0800)]
Ensure tracepoints are synchronized after unreg

The tracepoint API provides tracepoint_synchronize_unregister() as a way
to guarantee that all tracepoint handlers are inactive.  This is
necessary after unregistering to allow the module to safely unload.

* tapsets.cxx (tracepoint_derived_probe_group::emit_module_init):
Call synchronize after unregistering tracepoints.
(tracepoint_derived_probe_group::emit_module_exit): Ditto.

15 years agoSupport older tracepoints using DEFINE_TRACE
Josh Stone [Fri, 6 Mar 2009 23:44:50 +0000 (15:44 -0800)]
Support older tracepoints using DEFINE_TRACE

At one point, the tracepoints API didn't have DECLARE_TRACE, and the
trace headers all used DEFINE_TRACE.  This is what got pulled into RHEL,
so we need to support this older usage.  The rest of the API stays the
same though.

* buildrun.cxx (make_tracequery): Redefine DEFINE_TRACE as well.

15 years agoEnable tracepoint target variables
Josh Stone [Thu, 5 Mar 2009 05:07:54 +0000 (21:07 -0800)]
Enable tracepoint target variables

This uses a similar mechanism as marker probes for storing target
variables in locals of the probe body.

* tapsets.cxx (tracepoint_arg): Add fields to help $target access.
(tracepoint_var_expanding_visitor): Expand code to access target
variables - a $target for each tracepoint parameter, as well as
the special $$name and $$vars.
(tracepoint_derived_probe::tracepoint_derived_probe): Expand targets
(resolve_tracepoint_arg_type): Determine if a parameter is a type
that we can dereference, and store the underlying type.
(tracepoint_derived_probe::build_args): Resolve the types.
(tracepoint_derived_probe::emit_probe_context_vars): Emit $target
placeholders into the locals of the probe body.
(tracepoint_derived_probe_group::emit_module_decls): Initialize
$targets from the entry point parameters.

15 years agoEmit code to hook up tracepoint probes
Josh Stone [Thu, 5 Mar 2009 04:32:22 +0000 (20:32 -0800)]
Emit code to hook up tracepoint probes

* tapsets.cxx (tracepoint_arg): New
(tracepoint_derived_probe): Add declaring header name and arg vector
(dwarf_type_name): Build a type string for a given type DIE
(tracepoint_derived_probe::build_args): Scan the function DIE for
the name and type of formal parameters required by the tracepoint.
(tracepoint_derived_probe::tracepoint_derived_probe): Call
build_args and determine the relevant header to include.
(tracepoint_derived_probe_group::emit_module_decls): For each
tracepoint, include its header and declare a probe entry point with
the right function signature.
(tracepoint_derived_probe_group::emit_module_init): Call the
registration for each tracepoint, and handle error unwinding.
(tracepoint_derived_probe_group::emit_module_exit): Unregister each.

15 years agoBuild skeleton tracepoint probes
Josh Stone [Thu, 5 Mar 2009 04:17:38 +0000 (20:17 -0800)]
Build skeleton tracepoint probes

* tapsets.cxx (tracepoint_derived_probe): Create a skeleton probe
(tracepoint_derived_probe_group): Create a skeleton group
(tracepoint_query::handle_query_func): build a probe

15 years agoScan tracequery.ko for tracepoints
Josh Stone [Thu, 5 Mar 2009 03:56:02 +0000 (19:56 -0800)]
Scan tracequery.ko for tracepoints

* tapsets.cxx (tracepoint_query): Iterate over the modules, CUs, and
functions in tracequery.ko looking for our hijacked tracepoint
declarations.
(tracepoint_builder::build): Run a tracepoint_query

15 years agoBuild tracequery to scan for tracepoints
Josh Stone [Thu, 5 Mar 2009 03:32:25 +0000 (19:32 -0800)]
Build tracequery to scan for tracepoints

* session.h (systemtap_session): add tracepoint_derived_probes
* buildrun.cxx (make_tracequery): New - builds a kernel module that
hijacks the tracepoint declarations, so we can query debuginfo.
* buildrun.h: declare above
* tapsets.cxx (tracepoint_builder): New builder for tracepoint
probes.  For now it just handles the initialization to build the
tracequery kernel module.

15 years agoMake iterate_over_functions work with base_querys
Josh Stone [Thu, 5 Mar 2009 02:51:28 +0000 (18:51 -0800)]
Make iterate_over_functions work with base_querys

* tapsets.cxx (dwflpp::iterate_over_functions): Change arg from
void* to base_query*, and add explicit function-search parameters.
(query_cu): update caller
(query_dwarf_func): update callback signature

(Note: instead of passing around callback functions, it might be nicer
to use a virtual method in base_query...)

15 years agoUpdate AUTHORS
Josh Stone [Sat, 7 Mar 2009 00:27:21 +0000 (16:27 -0800)]
Update AUTHORS

15 years agoSTAP_PROBE takes no extra arguments.
Mark Wielaard [Fri, 6 Mar 2009 18:21:44 +0000 (19:21 +0100)]
STAP_PROBE takes no extra arguments.

* includes/sys/sdt.h (STAP_PROBE): Don't add __VA_ARGS__.

15 years agoCreate unique named labels.
Stan Cox [Fri, 6 Mar 2009 12:37:56 +0000 (07:37 -0500)]
Create unique named labels.

* includes/sys/sdt.h (STAP_PROBEN_): New macros that take
advantage of __COUNTER__

15 years agoPR9871: use @cast in tapset
Wenji Huang [Fri, 6 Mar 2009 05:16:50 +0000 (00:16 -0500)]
PR9871: use @cast in tapset

Rewrite some functions using type casting to
get rid of embedded C code in nfs, scsi, signal,
socket, rpc, task and vfs tapset.

Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
15 years agoadded more content for tapset dev
ddomingo [Fri, 6 Mar 2009 04:57:12 +0000 (14:57 +1000)]
added more content for tapset dev

15 years agoadded markers, for publicanization purposes
ddomingo [Thu, 5 Mar 2009 05:21:29 +0000 (15:21 +1000)]
added markers, for publicanization purposes

15 years agonew intro, tapset dev guide
ddomingo [Thu, 5 Mar 2009 05:21:10 +0000 (15:21 +1000)]
new intro, tapset dev guide

15 years agoMake session.module_cache init more consistently
Josh Stone [Thu, 5 Mar 2009 02:32:54 +0000 (18:32 -0800)]
Make session.module_cache init more consistently

We used to check & init module_cache in a few inconsistent places.  Now
it is always handled in dwflpp::setup_user/setup_kernel.

* tapsets.cxx (dwflpp::setup_user): add module_cache check
(dwarf_builder::build): remove module_cache check
(dwarf_cast_expanding_visitor::visit_cast_op): ditto

15 years agoremoves marked range of strings (intro) and replaces with Intro and Tapset Dev Guide
ddomingo [Thu, 5 Mar 2009 05:20:24 +0000 (15:20 +1000)]
removes marked range of strings (intro) and replaces with Intro and Tapset Dev Guide

15 years agoadded invisible marker for publican
ddomingo [Thu, 5 Mar 2009 03:26:46 +0000 (13:26 +1000)]
added invisible marker for publican

15 years agochange to fedora, add README for more info
ddomingo [Thu, 5 Mar 2009 01:23:00 +0000 (11:23 +1000)]
change to fedora, add README for more info

15 years agochange to fedora
ddomingo [Thu, 5 Mar 2009 01:22:27 +0000 (11:22 +1000)]
change to fedora

15 years agoadd other required XMLs
ddomingo [Thu, 5 Mar 2009 00:58:01 +0000 (10:58 +1000)]
add other required XMLs

15 years agoadd images
ddomingo [Thu, 5 Mar 2009 00:56:39 +0000 (10:56 +1000)]
add images

15 years agoadd Makefile
ddomingo [Thu, 5 Mar 2009 00:54:46 +0000 (10:54 +1000)]
add Makefile

15 years agofunction instead of (sfunction)
ddomingo [Thu, 5 Mar 2009 00:53:35 +0000 (10:53 +1000)]
function instead of (sfunction)

15 years agoadded other required files
ddomingo [Wed, 4 Mar 2009 23:30:34 +0000 (09:30 +1000)]
added other required files

15 years agoFix typo in kernel version check 2.6.21 -> 2.6.11 in inet_sock.
Mark Wielaard [Wed, 4 Mar 2009 13:23:40 +0000 (14:23 +0100)]
Fix typo in kernel version check 2.6.21 -> 2.6.11 in inet_sock.

* tapset/inet_sock.stp (inet_get_local_port): Fix kernel version check.
  (inet_get_ip_source): Likewise.

15 years agostap autoconf test for kernel stack trace support
Tim Moore [Wed, 4 Mar 2009 10:56:45 +0000 (11:56 +0100)]
stap autoconf test for kernel stack trace support

* buildrun.cxx (compile_pass): Add autoconf line for stack trace
test, which defines STAPCONF_KERNEL_STACKTRACE.
* runtime/autoconf-save-stack-trace.c: New file.
* runtime/stack.c : Use STAPCONF_KERNEL_STACKTRACE instead of
tests for kernel configuration and versions.
* runtime/stack-i386.c : ditto
* runtime/stack-x86_64.c : ditto

15 years agoPR9919: Set last_stmt for array (scalar or statistical) assignments.
Mark Wielaard [Wed, 4 Mar 2009 10:55:56 +0000 (11:55 +0100)]
PR9919: Set last_stmt for array (scalar or statistical) assignments.

* translate.cxx (visit_arrayindex): Update last_stmt.

15 years agochange stap-report to a plain /bin/sh script; support dkpg in addition to rpm
Frank Ch. Eigler [Wed, 4 Mar 2009 01:48:20 +0000 (20:48 -0500)]
change stap-report to a plain /bin/sh script; support dkpg in addition to rpm

15 years agoSearch for a label instead of an address for .so static probes.
Stan Cox [Tue, 3 Mar 2009 22:55:37 +0000 (17:55 -0500)]
Search for a label instead of an address for .so static probes.

* tapsets.cxx (dwflpp::build): Use .label for .so instead of .statement(N)

15 years agoThis patch updates the itrace code to support the new utrace interface.
Maynard Johnson [Tue, 3 Mar 2009 22:41:48 +0000 (16:41 -0600)]
This patch updates the itrace code to support the new utrace interface.
It also adds a private copy of access_process_vm to runtime/itrace.c
since that function is not consistently exported by all distros.

15 years agoPR9875: Remove sduprobes
Wenji Huang [Tue, 3 Mar 2009 07:58:37 +0000 (02:58 -0500)]
PR9875: Remove sduprobes

Impact: cleanup
Since sdt.h is in git tree, sduprobes is no longer needed.

* Makefile.am: Remove sduprobes.
* Makefile.in: Regenerated.
* doc/Makefile.in: Ditto.
* runtime/sduprobes.c: Removed.

Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
15 years agoAllow the same static user probe to be used multiple times per line.
Stan Cox [Tue, 3 Mar 2009 02:38:26 +0000 (21:38 -0500)]
Allow the same static user probe to be used multiple times per line.

* dtrace (provider): Add STAP_PROBE10.
* includes/sys/sdt.h: Likewise.  Convert labels to __label__

15 years agoadded publicanizer for langref
ddomingo [Mon, 2 Mar 2009 01:54:01 +0000 (11:54 +1000)]
added publicanizer for langref

15 years agominor revision, added tag
ddomingo [Mon, 2 Mar 2009 01:40:44 +0000 (11:40 +1000)]
minor revision, added tag

15 years agoMerge branch 'master' of git+ssh://sources.redhat.com/git/systemtap
Eugeniy Meshcheryakov [Sat, 28 Feb 2009 19:15:39 +0000 (20:15 +0100)]
Merge branch 'master' of git+ssh://sources.redhat.com/git/systemtap

15 years agoUse @cast where possible for examining inet_sock.
Mark Wielaard [Fri, 27 Feb 2009 14:16:52 +0000 (15:16 +0100)]
Use @cast where possible for examining inet_sock.

* tapset/inet_sock.stp: Remove includes.
  (inet_get_local_port): No embedded C, use @cast.
  (inet_get_ip_source): Likewise.
  (daddr_to_string): New function, still some embedded C used.

15 years agoRemove unnecessary embedded C include.
Mark Wielaard [Fri, 27 Feb 2009 12:31:25 +0000 (13:31 +0100)]
Remove unnecessary embedded C include.

* tapset/networking.stp: Remove include.

15 years agoGuard _struct_sigaction32_u with ifdef CONFIG_COMPAT.
Mark Wielaard [Wed, 25 Feb 2009 16:11:51 +0000 (17:11 +0100)]
Guard _struct_sigaction32_u with ifdef CONFIG_COMPAT.

* tapset/aux_syscalls.stp (_struct_sigaction_u): Only needed and compiles
  when CONFIG_COMPAT defined.

15 years agoPR9896: Fix SystemTap build on Ubuntu Intrepid.
Ananth N Mavinakayanahalli [Wed, 25 Feb 2009 10:18:50 +0000 (15:48 +0530)]
PR9896: Fix SystemTap build on Ubuntu Intrepid.

The gcc on Ubuntu doesn't like fprintf() without format arguments

15 years agoSkip generating empty struct global
Wenji Huang [Wed, 25 Feb 2009 02:36:32 +0000 (21:36 -0500)]
Skip generating empty struct global

Impact: trivial cleanup.

Avoid emitting empty struct global code that is harmless.

Signed-off-by: Wenji Huang <wenji.huang@oracle.com>
15 years agoMerge branch 'master' of git+ssh://sources.redhat.com/git/systemtap
Eugeniy Meshcheryakov [Tue, 24 Feb 2009 14:48:31 +0000 (15:48 +0100)]
Merge branch 'master' of git+ssh://sources.redhat.com/git/systemtap

15 years agoAdjust extra_offset address against module base.
Mark Wielaard [Tue, 24 Feb 2009 10:04:00 +0000 (11:04 +0100)]
Adjust extra_offset address against module base.

* translate.cxx (dump_unwindsyms): Adjust extra_offset always
against module base as workaround for buggy elfutils < 0.138.

15 years agoFix the syscall tapset for architectures using SYSCALL_WRAPPERS
Ananth N Mavinakayanahalli [Tue, 24 Feb 2009 03:12:41 +0000 (08:42 +0530)]
Fix the syscall tapset for architectures using SYSCALL_WRAPPERS

15 years agoMerge branch 'gtod'
Josh Stone [Mon, 23 Feb 2009 23:10:13 +0000 (15:10 -0800)]
Merge branch 'gtod'

15 years agoAdd a testcase for gtod init/kill
Josh Stone [Mon, 23 Feb 2009 23:08:02 +0000 (15:08 -0800)]
Add a testcase for gtod init/kill

This test simply checks that _gettimeofday_init and _gettimeofday_kill
are pulled in when gettimeofday is used, and also that they are NOT
pulled in when gettimeofday is not used.

15 years agoAdd selective use of _stp_time_init/kill (PR9822)
Josh Stone [Mon, 23 Feb 2009 22:22:38 +0000 (14:22 -0800)]
Add selective use of _stp_time_init/kill (PR9822)

Our gettimeofday runtime has frequent wakeups to stay in sync with
kernel time, but this is wasted effort if gettimeofday is not used in
the script.  This patch moves the calls to _stp_time_init and
_stp_time_kill into begin and end/error probes, which only get pulled in
if one of the gettimeofday variants is called.

15 years agoImprove static probe: c++ navigation, -l output.
Stan Cox [Mon, 23 Feb 2009 22:14:52 +0000 (17:14 -0500)]
Improve static probe: c++ navigation, -l output.

* tapsets.cxx (dwflpp::build): Improve c+ method navigation.
Use .label for listing mode.
* systemtap.base/static_uprobes.exp: Test multiple invocations of the same
probe per block. (SW9770)

15 years agoCheck whether a die has any children before iterating over it.
Mark Wielaard [Mon, 23 Feb 2009 17:23:41 +0000 (18:23 +0100)]
Check whether a die has any children before iterating over it.

* tapsets.cxx (iterate_over_cu_labels): Check dwarf_child result.

15 years agoMade probe_start()/probe_exit() function definitions match their declarations.
David Smith [Mon, 23 Feb 2009 15:45:24 +0000 (09:45 -0600)]
Made probe_start()/probe_exit() function definitions match their declarations.
2009-02-23  David Smith  <dsmith@redhat.com>

        * translate.cxx (translate_pass): Made probe_start()/probe_exit()
        function definitions match their declarations.

15 years agodrop Core from Fedora name
Dan Horak [Mon, 23 Feb 2009 13:55:30 +0000 (14:55 +0100)]
drop Core from Fedora name

15 years agoDon't include unused libebl.h
Eugeniy Meshcheryakov [Mon, 23 Feb 2009 13:53:24 +0000 (14:53 +0100)]
Don't include unused libebl.h

15 years agomake all examples executable
Eugeniy Meshcheryakov [Sat, 21 Feb 2009 19:59:24 +0000 (20:59 +0100)]
make all examples executable

15 years agoRemove STAPCONF_CFLAGS from the generated Makefile
Josh Stone [Sat, 21 Feb 2009 01:23:02 +0000 (17:23 -0800)]
Remove STAPCONF_CFLAGS from the generated Makefile

This was leftover from my initial draft of autoconf caching.
It's not used at all anymore...

15 years agoAdjust ET_DYN symbol addresses against module base.
Mark Wielaard [Fri, 20 Feb 2009 23:40:23 +0000 (00:40 +0100)]
Adjust ET_DYN symbol addresses against module base.

* translate.cxx (dump_unwindsyms): Adjust sym_addr for ET_DYN always
 against module base as workaround for buggy elfutils < 0.138.

15 years agoMerge branch 'master' of git://sources.redhat.com/git/systemtap
Dave Brolley [Fri, 20 Feb 2009 21:59:54 +0000 (16:59 -0500)]
Merge branch 'master' of git://sources.redhat.com/git/systemtap

15 years agoCheck for required resources and tools before attempting tests using the client/server.
Dave Brolley [Fri, 20 Feb 2009 21:58:57 +0000 (16:58 -0500)]
Check for required resources and tools before attempting tests using the client/server.
Ensure that tests run with/without the server have unique names.

15 years agoBetter <linux/debugfs.h> header file inclusion.
David Smith [Fri, 20 Feb 2009 19:11:34 +0000 (13:11 -0600)]
Better <linux/debugfs.h> header file inclusion.
2009-02-20  David Smith  <dsmith@redhat.com>

        * debugfs.c: Added inclusion of linux/debugfs.h.
        * relayfs.h: Removed inclusion of linux/debugfs.h.

15 years agoMerge branch 'master' of git://sources.redhat.com/git/systemtap
Dave Brolley [Fri, 20 Feb 2009 17:30:28 +0000 (12:30 -0500)]
Merge branch 'master' of git://sources.redhat.com/git/systemtap

Conflicts:

ChangeLog
testsuite/ChangeLog

15 years agoNew basic tests for client/server.
Dave Brolley [Fri, 20 Feb 2009 17:25:59 +0000 (12:25 -0500)]
New basic tests for client/server.

15 years agoBetter testcase cleanup.
David Smith [Fri, 20 Feb 2009 17:09:13 +0000 (11:09 -0600)]
Better testcase cleanup.
2009-02-20  David Smith  <dsmith@redhat.com>

        * systemtap.base/cache.exp (stap_compile): Better cleanup.
        * static_uprobes.exp: Ditto.

15 years agoIgnore kernel functions with "absolute" addresses.
Mark Wielaard [Fri, 20 Feb 2009 13:12:19 +0000 (14:12 +0100)]
Ignore kernel functions with "absolute" addresses.

translate.cxx (dump_unwindsyms): Augment the test for creating the
stap-symbols to be STT_FUNC && !(SHN_UNDEF || SHN_ABS). The combination
STT_FUNC && SHN_ABS only seems to occur on older i386 kernels and covers
the vDSO "functions" we were seeing.

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
ddomingo [Fri, 20 Feb 2009 05:59:30 +0000 (15:59 +1000)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoadded Tracking System Call Volume Per Process section
ddomingo [Fri, 20 Feb 2009 05:59:01 +0000 (15:59 +1000)]
added Tracking System Call Volume Per Process section

15 years agoUpdate guidelines for the ChangeLog-less world
Josh Stone [Fri, 20 Feb 2009 04:00:31 +0000 (20:00 -0800)]
Update guidelines for the ChangeLog-less world

Getting rid of ChangeLogs doesn't mean that we get a free ticket -- we
now need to be more diligent about providing meaningful commit messages.
I've updated the HACKING file with a first draft of new guidelines, but
we may still revise what we feel is appropriate detail in the logs.

I removed the ChangeLog section from the tapset/DEVGIDE entirely, and
also fixed the path where examples are stored.

15 years agoKill all ChangeLogs
Josh Stone [Fri, 20 Feb 2009 03:06:43 +0000 (19:06 -0800)]
Kill all ChangeLogs

Mark Wielaard, a dear friend of the departed, will be performing a song
and dance at the funeral services to commemorate the joyous times that
they had together.

15 years agoClean up extraneous build warnings
Josh Stone [Fri, 20 Feb 2009 02:26:47 +0000 (18:26 -0800)]
Clean up extraneous build warnings

The testsuite Makefile doesn't have any useful targets except check and
installcheck, and those two are invoked directly by the top-level
Makefile.  So, I'm removing testsuite from automake's SUBDIRS, but
keeping it in DIST_SUBDIRS for cleanup.

I also renamed our top-level check target to check-local, so it
cooperates with automake's check instead of overriding it.

15 years agoAlias AUTHOR Prerna -> Prerna Saxena
Josh Stone [Thu, 19 Feb 2009 18:04:02 +0000 (10:04 -0800)]
Alias AUTHOR Prerna -> Prerna Saxena

15 years agostatic_uprobes test case cleanup
Frank Ch. Eigler [Fri, 20 Feb 2009 02:57:12 +0000 (21:57 -0500)]
static_uprobes test case cleanup

15 years agoIgnore symbols before module base address. release-0.9
Mark Wielaard [Thu, 19 Feb 2009 13:50:05 +0000 (14:50 +0100)]
Ignore symbols before module base address.

15 years agoPR9719: uninitialized variable fix
Frank Ch. Eigler [Thu, 19 Feb 2009 04:08:52 +0000 (23:08 -0500)]
PR9719: uninitialized variable fix

15 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
ddomingo [Thu, 19 Feb 2009 02:53:32 +0000 (12:53 +1000)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

15 years agoshort revisions to udp.stp
ddomingo [Thu, 19 Feb 2009 02:53:01 +0000 (12:53 +1000)]
short revisions to udp.stp

15 years agoAdd NEWS and manpage info about @cast()
Josh Stone [Thu, 19 Feb 2009 01:59:14 +0000 (17:59 -0800)]
Add NEWS and manpage info about @cast()

15 years agoAdding test case for PR9719 fix
Rajan Arora [Thu, 19 Feb 2009 01:24:35 +0000 (20:24 -0500)]
Adding test case for PR9719 fix

15 years agoBZ 9719: Improve type mismatch messages
Rajan Arora [Thu, 19 Feb 2009 01:16:03 +0000 (20:16 -0500)]
BZ 9719: Improve type mismatch messages

15 years agoPR9866 band-aid: deactivate new CONFIG_STACKTRACE code for older kernels
Frank Ch. Eigler [Thu, 19 Feb 2009 00:33:06 +0000 (19:33 -0500)]
PR9866 band-aid: deactivate new CONFIG_STACKTRACE code for older kernels

15 years agoSimplify AUTHORS.sh
Josh Stone [Wed, 18 Feb 2009 23:26:54 +0000 (15:26 -0800)]
Simplify AUTHORS.sh

Let git-shortlog do the hard work for us, with the user
mappings now listed in ".mailmap".

15 years agoAlways emit .probes section; use .label method as a backup strategy
Stan Cox [Wed, 18 Feb 2009 23:00:42 +0000 (18:00 -0500)]
Always emit .probes section; use .label method as a backup strategy

15 years agoMerge branch 'master' of sourceware.org:/git/systemtap
Josh Stone [Wed, 18 Feb 2009 21:37:04 +0000 (13:37 -0800)]
Merge branch 'master' of sourceware.org:/git/systemtap

15 years agoHandles errors better.
David Smith [Wed, 18 Feb 2009 21:35:53 +0000 (15:35 -0600)]
Handles errors better.
2009-02-18  David Smith  <dsmith@redhat.com>

* systemtap.base/static_uprobes.exp: Handles errors from running
'dtrace' python script better.

15 years agoEnable typecasting with @cast
Josh Stone [Wed, 18 Feb 2009 20:53:08 +0000 (12:53 -0800)]
Enable typecasting with @cast

    println(@cast(myptr, "task_struct")->pid)
    println(@cast(myptr, "task_struct", "kernel")->pid)

Merge branch 'typecast', bump ChangeLog entries to push date

15 years agoBump copyright years to 2009
Josh Stone [Wed, 18 Feb 2009 03:19:48 +0000 (19:19 -0800)]
Bump copyright years to 2009

15 years agoEnable dwarf expansion of @casts
Josh Stone [Wed, 18 Feb 2009 02:15:06 +0000 (18:15 -0800)]
Enable dwarf expansion of @casts

This will iterate over the module and its CUs looking for the type
definition, and then work with loc2c to dereference the pointer.

* loc2c.c (c_translate_argument): Create a dummy location to start
the address computation from a function parameter.
* translate.cxx (base_query, dwarf_query): Move some members from
base_query to dwarf_query, so the former can be more generic.  Also
add a constructor using a module string instead of probe parameters.
(dwflpp::query_modules, dwflpp::iterate_over_modules): Use a generic
base_query instead of a dwarf_query.
(dwarf_cast_query): New query to scan the modules and CUs for a
matching type definition, and then produce a code fragment to deref
each component.
(dwarf_cast_expanding_visitor): Tries to replace @casts with a function
call to the result of a dwarf_cast_query.
(dwflpp::declaration_resolve): Search by name instead of by die.
(dwflpp::translate_components): Use the incoming vardie as the first
type die, so we don't assume that attr_mem has a DW_AT_type already.
(dwflpp::literal_stmt_for_pointer): Construct a C fragment that starts
with a pointer argument (THIS->pointer) and dereferences each member
component from there.
(*_derived_probe::register_patterns): Take a session parameter instead
of a match_node, so we can manipulate session-wide data.
(dwarf_derived_probe::register_patterns): Add a session code filter to
expand @casts with a dwarf_cast_expanding_visitor.

15 years agoEnable session-wide code filtering
Josh Stone [Wed, 11 Feb 2009 23:28:41 +0000 (15:28 -0800)]
Enable session-wide code filtering

This will be used to hook to dwarf_builder to all functions and probes
so it can attempt @cast expansion.

* session.h (systemtap_session): Add a vector of update_visitors
that will act as filters for all probes and functions.
* elaborate.cxx (semantic_pass_symbols): Run probes and functions
through each registered code filter.

15 years agoProvide dwarf module names as defaults in @cast()s
Josh Stone [Wed, 11 Feb 2009 22:43:24 +0000 (14:43 -0800)]
Provide dwarf module names as defaults in @cast()s

* tapsets.cxx (dwarf_var_expanding_visitor::visit_cast_op):  While
expanding dwarf probes, provide the current module as a default to
@casts without a module name.

15 years agoAdd high-level support for @cast()ing
Josh Stone [Wed, 11 Feb 2009 22:34:32 +0000 (14:34 -0800)]
Add high-level support for @cast()ing

This handles all of the parsing, traversal, and optimization.  It
doesn't actually resolve the cast yet though.

* staptree.h (struct cast_op, visitor::visit_cast_op): New.
* staptree.cxx (cast_op::print/visit, various visitor::visit_cast_op's):
Incorporate cast_op into the basic tree operations.
* parse.cxx (parser::parse_symbol): Parse @cast operator with an
expression operand, type string, and optional module string.
* translate.cxx (c_unparser::visit_cast_op): Error out if a @cast
survives to translation.
* elaborate.cxx (typeresolution_info::visit_cast_op): Error out if a
@cast survives to type resolution.
(symbol_fetcher::visit_cast_op): treat @casts as a symbol target
(void_statement_reducer::visit_cast_op): unused @casts can be discarded,
but the operand should still be evaluated.

15 years agoBetter testcase cleanup.
David Smith [Wed, 18 Feb 2009 20:34:46 +0000 (14:34 -0600)]
Better testcase cleanup.
2009-02-18  David Smith  <dsmith@redhat.com>

* systemtap.base/labels.exp: Better cleanup.

15 years agoRemove context argument from _stp_stack_print_fallback (PR 9860).
William Cohen [Wed, 18 Feb 2009 15:48:20 +0000 (10:48 -0500)]
Remove context argument from _stp_stack_print_fallback (PR 9860).

15 years agoRemoved unused functions and variables.
David Smith [Wed, 18 Feb 2009 15:29:39 +0000 (09:29 -0600)]
Removed unused functions and variables.
2009-02-18  David Smith  <dsmith@redhat.com>

* io.c (_stp_log): Removed unused function.
* map.c (_stp_cmp): Replace _stp_log() with dbug().
* mempool.c (_stp_mempool_resize): Removed unused function.
* print.c (next_fmt): Removed unused function.
* procfs.c: Removed unused variable '_stp_num_procfs_files'.
* regs.c (_stp_ret_addr): Removed unused function.
* string.c (_stp_text_str): Removed unused variable 'len'.
* string.h: Removed unused variable '_stdout_' and function
declaration for deleted function '_stp_vsprintf'.
* sym.c: Removed unused variables.
* unwind.c (_stp_create_unwind_hdr): Removed unused function.

2009-02-18  David Smith  <dsmith@redhat.com>

* control.c: Removed unused variable '_stp_current_buffers'.
* procfs.c (_stp_set_buffers): Removed unused function.
(_stp_register_ctl_channel_fs): Removed unused variables and
label.
* symbols.c (u32_swap): Removed unused function.
(generic_swap): Ditto.
(_stp_sort): Ditto.
(_stp_section_is_interesting): Ditto.
* transport.c (_stp_transport_init): Removed unused variable
'ret'.

15 years ago485491, revised installation instructions, now uses yum install and debuginfo-install...
ddomingo [Wed, 18 Feb 2009 02:26:48 +0000 (12:26 +1000)]
485491, revised installation instructions, now uses yum install and debuginfo-install for kernel info pkgs

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