]> sourceware.org Git - systemtap.git/log
systemtap.git
15 years agoFirst working version that actually produces output.
David Smith [Mon, 9 Mar 2009 15:06:20 +0000 (10:06 -0500)]
First working version that actually produces output.
2009-03-09  David Smith  <dsmith@redhat.com>

* print_new.c (stp_print_flush): Calls _stp_data_write_reserve()
and _stp_data_write_commit().
* transport/ring_buffer.c (__stp_alloc_ring_buffer): Sets up a
default buffer size of STP_BUFFER_SIZE;
(trace_seq_reset): New function.
(peek_next_entry): New function.
(__find_next_entry): New function.
(find_next_entry_inc): New function.
(_stp_data_read_trace): Uses find_next_entry_inc() to get the next
entry, then calls _stp_entry_to_user() to copy it to the user's
buffer, then calls ring_buffer_consume() to consume it.
(_stp_data_write_reserve): New function.
(_stp_data_write_commit): New function.
* transport/transport.c (_stp_transport_close): Calls functions
that were ifdef'ed out.
* transport/transport.h (struct _stp_entry): Added _stp_entry
definition and _stp_data_write_reserve()/_stp_data_write_commit()
prototypes.

15 years agoStart of new ring_buffer transport.
David Smith [Wed, 4 Mar 2009 18:51:29 +0000 (12:51 -0600)]
Start of new ring_buffer transport.
2009-03-04  David Smith  <dsmith@redhat.com>

        * runtime.h: Added _stp_exit() prototype.
        * transport/ring_buffer.c: New file.
        * transport/transport.c: Removed unneeded utt_trace lines.
        Includes transport/ring_buffer.c.
        (_stp_transport_fs_init): Calls _stp_transport_data_fs_init().
        (_stp_transport_fs_close): Calls _stp_transport_data_fs_close().
        * transport/transport.h: Added prototypes.

15 years agoMore cleanup.
David Smith [Wed, 25 Feb 2009 15:04:19 +0000 (09:04 -0600)]
More cleanup.
2009-02-25  David Smith  <dsmith@redhat.com>

        * debug.h: Removed unused variable '_stp_transport_state'.
        * print_new.c (stp_print_flush): Ifdef'ed out call to
        utt_reserve().
        * runtime.h: Added _stp_warn() prototype.
        * transport/control.c: Includes control.h, mempool.c, and
        symbols.c.  Renamed '_stp_attached' to '_stp_ctl_attached'.
        * transport/control.h: Removed _stp_pool_q declaration.
        * transport/debugfs.c (_stp_register_ctl_channel_fs): Uses
        _stp_get_module_dir().
        * transport/transport.c: Cleanup.
        * transport/transport.h: Ditto.

15 years agoMajor hacking to minimal config.
David Smith [Tue, 24 Feb 2009 17:54:16 +0000 (11:54 -0600)]
Major hacking to minimal config.
2009-02-24  David Smith  <dsmith@redhat.com>

* print.h: New file.
* print.c: Includes new print.h file.
* print_new.c (stp_print_flush): Commented out some code that
needs replacing.
* sym.c: Includes sym.h.
* transport/debugfs.c: Includes transport.h.
* transport/relayfs.c: Updated _stp_get_root_dir() call.
* transport/transport.c: Ifdef'ed out most setup.
* transport/transport.h: Ifdef'ed out all but basics.
* transport/utt.c (utt_create_tree): Updated _stp_get_root_dir()
call.
* transport/utt.h: Commented out 'rchan' in struct utt_trace.
(utt_reserve): Ifdef'ed out guts.

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 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

15 years agoadded legal notice to override Publican default, doc source is now GPL2
ddomingo [Wed, 18 Feb 2009 00:18:07 +0000 (10:18 +1000)]
added legal notice to override Publican default, doc source is now GPL2

15 years agoauthor name tweak
Frank Ch. Eigler [Tue, 17 Feb 2009 23:13:44 +0000 (18:13 -0500)]
author name tweak

15 years agoversion bump to 0.9 throughout
Frank Ch. Eigler [Tue, 17 Feb 2009 21:41:48 +0000 (16:41 -0500)]
version bump to 0.9 throughout

15 years agoautogenerate AUTHORS
Frank Ch. Eigler [Tue, 17 Feb 2009 21:19:45 +0000 (16:19 -0500)]
autogenerate AUTHORS

15 years agofixing configury version drift
Frank Ch. Eigler [Tue, 17 Feb 2009 19:20:35 +0000 (14:20 -0500)]
fixing configury version drift

15 years agofix sdt.h test case for $srcdir != $builddir
Frank Ch. Eigler [Tue, 17 Feb 2009 19:19:53 +0000 (14:19 -0500)]
fix sdt.h test case for $srcdir != $builddir

15 years agouse "X" asm constraint for user-space marker parms
Frank Ch. Eigler [Tue, 17 Feb 2009 19:13:16 +0000 (14:13 -0500)]
use "X" asm constraint for user-space marker parms

15 years agoMove sdt.h to includes/sys and use in tests.
Mark Wielaard [Tue, 17 Feb 2009 15:49:12 +0000 (16:49 +0100)]
Move sdt.h to includes/sys and use in tests.

15 years agoPR 9716, replaced pkgconfig checks with AC macros in configure.ac for server deps.
Elliott Baron [Tue, 17 Feb 2009 15:04:15 +0000 (10:04 -0500)]
PR 9716, replaced pkgconfig checks with AC macros in configure.ac for server deps.

15 years agoReduced control channel code duplication.
David Smith [Tue, 17 Feb 2009 14:32:43 +0000 (08:32 -0600)]
Reduced control channel code duplication.
2009-02-17  David Smith  <dsmith@redhat.com>

* control.c: Contains generic control channel functions.
* procfs.c: Specific procfs control channel functions.  All generic
control channel functions moved to control.c.
* debugfs.c: New file containing debugfs specific control channel
functions.
* control.h: New file.
* transport.c: Updated file inclusion.

15 years agoImproved cleanup in tests.
David Smith [Mon, 16 Feb 2009 20:58:40 +0000 (14:58 -0600)]
Improved cleanup in tests.

15 years agosdt.h (STAP_PROBE): Take provider and probe as arguments.
Mark Wielaard [Mon, 16 Feb 2009 14:10:50 +0000 (15:10 +0100)]
sdt.h (STAP_PROBE): Take provider and probe as arguments.

15 years agoPR 9850, use a list of arguments for call.
Mark Wielaard [Mon, 16 Feb 2009 13:50:02 +0000 (14:50 +0100)]
PR 9850, use a list of arguments for call.

15 years agoPR 9851, use os.path.splitext instead of string.replace.
Mark Wielaard [Mon, 16 Feb 2009 12:30:18 +0000 (13:30 +0100)]
PR 9851, use os.path.splitext instead of string.replace.

15 years agoPR 9849, use mkstemp.
Mark Wielaard [Mon, 16 Feb 2009 12:14:47 +0000 (13:14 +0100)]
PR 9849, use mkstemp.

15 years agoFix )( typo in sdt.h STAP_PROBE9 parm9.
Mark Wielaard [Mon, 16 Feb 2009 10:55:02 +0000 (11:55 +0100)]
Fix )( typo in sdt.h STAP_PROBE9 parm9.

15 years agoHandle c++ static user probes via .probe, c via .label.
Stan Cox [Mon, 16 Feb 2009 03:23:54 +0000 (22:23 -0500)]
Handle c++ static user probes via .probe, c via .label.

15 years agoconvert remaining translator-output code from <<endl to \n
Frank Ch. Eigler [Fri, 13 Feb 2009 20:33:47 +0000 (15:33 -0500)]
convert remaining translator-output code from <<endl to \n

15 years agoUpdate Documentation section and include URLs.
William Cohen [Fri, 13 Feb 2009 20:01:41 +0000 (15:01 -0500)]
Update Documentation section and include URLs.

15 years agoFixed stack.c compile problems on systems with older kernels (like RHEL4).
David Smith [Fri, 13 Feb 2009 18:51:05 +0000 (12:51 -0600)]
Fixed stack.c compile problems on systems with older kernels (like RHEL4).
2009-02-13  David Smith  <dsmith@redhat.com>

        * stack.c: Fixed compile problems on systems with older kernels
        (like RHEL4).

15 years agoFixed transport/procfs.c for systems that use the old transport (RHEL4).
David Smith [Fri, 13 Feb 2009 18:08:56 +0000 (12:08 -0600)]
Fixed transport/procfs.c for systems that use the old transport (RHEL4).
2009-02-13  David Smith  <dsmith@redhat.com>

        * procfs.c: Added macros to guard against multiple inclusion.

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

        * procfs.c: Added inclusion of ../procfs.c for
        _stp_mkdir_proc_module().

15 years agoCorrect entries for test_check and test_installcheck.
William Cohen [Fri, 13 Feb 2009 04:08:21 +0000 (23:08 -0500)]
Correct entries for test_check and test_installcheck.

15 years agoMoved inclusion of runtime/procfs.c to a better place.
David Smith [Thu, 12 Feb 2009 22:32:41 +0000 (16:32 -0600)]
Moved inclusion of runtime/procfs.c to a better place.
2009-02-12  David Smith  <dsmith@redhat.com>

* tapsets.cxx (procfs_derived_probe_group::emit_module_decls):
Moved inclusion of procfs.c here from runtime/transport.c

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

* transport.c: Moved inclusion of procfs.c to
procfs_derived_probe_group::emit_module_decls() in tapsets.cxx.

15 years agoFunction to determine page fault type and have pfaults.stp exercise it.
William Cohen [Thu, 12 Feb 2009 20:58:24 +0000 (15:58 -0500)]
Function to determine page fault type and have pfaults.stp exercise it.

15 years agoCleanup. Renamed _stp_{un}lock_debugfs() to _stp_{un}lock_transport_dir().
David Smith [Thu, 12 Feb 2009 20:52:40 +0000 (14:52 -0600)]
Cleanup.  Renamed _stp_{un}lock_debugfs() to _stp_{un}lock_transport_dir().
2009-02-12  David Smith  <dsmith@redhat.com>

* transport.c (_stp_lock_transport_dir): Renamed from
_stp_lock_debugfs(), since on older kernels this actually uses
procfs.
(_stp_unlock_transport_dir): Renamed from _stp_unlock_debugfs(),
since on older kernels this actually uses procfs.
(_stp_lock_transport_dir): Changed
_stp_lock_debugfs()/_stp_unlock_debugfs() to
_stp_lock_transport_dir()/_stp_unlock_transport_dir().
* transport.h: Ditto.  Also added _stp_transport_init()
prototype.
* utt.c (utt_remove_root): Changed
_stp_lock_debugfs()/_stp_unlock_debugfs() to
_stp_lock_transport_dir()/_stp_unlock_transport_dir().
* relayfs.c (_stp_remove_relay_root): Ditto.

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

* procfs.c (_stp_rmdir_proc_module):  Changed
_stp_lock_debugfs()/_stp_unlock_debugfs() to
_stp_lock_transport_dir()/_stp_unlock_transport_dir().
(_stp_mkdir_proc_module): Ditto.

15 years agoUse "\n" instead of endl in inner loops.
Mark Wielaard [Thu, 12 Feb 2009 14:51:35 +0000 (15:51 +0100)]
Use "\n" instead of endl in inner loops.

15 years agoExtend blacklist to cover bitops.h. While there, fixup paths for existing blacklisted...
Ananth N Mavinakayanahalli [Thu, 12 Feb 2009 14:30:27 +0000 (20:00 +0530)]
Extend blacklist to cover bitops.h. While there, fixup paths for existing blacklisted files

15 years agoadded topsys.stp to examples (profiling)
ddomingo [Thu, 12 Feb 2009 01:36:55 +0000 (11:36 +1000)]
added topsys.stp to examples (profiling)

15 years agoUse kernel stack backtrace support when available
Tim Moore [Mon, 2 Feb 2009 14:58:53 +0000 (15:58 +0100)]
Use kernel stack backtrace support when available

Define new functions that use the kernel support to do a backtrace of other
tasks than current.

15 years agoServer response is no longer signed. Passed as a zip archive instead.
Dave Brolley [Wed, 11 Feb 2009 17:00:13 +0000 (12:00 -0500)]
Server response is no longer signed. Passed as a zip archive instead.

15 years agoFixed __stp_utrace_attach by always checking for mm.
David Smith [Wed, 11 Feb 2009 15:29:22 +0000 (09:29 -0600)]
Fixed __stp_utrace_attach by always checking for mm.
2009-02-11  David Smith  <dsmith@redhat.com>

        * task_finder.c (__stp_utrace_attach): Still checks for mm after
        checking task's flags for PF_KTHREAD.

15 years agoProbe only calls and not inlines in functioncallcount.stp
Ananth N Mavinakayanahalli [Wed, 11 Feb 2009 05:51:46 +0000 (11:21 +0530)]
Probe only calls and not inlines in functioncallcount.stp

15 years agoMerge branch 'update_visitor'
Josh Stone [Wed, 11 Feb 2009 04:10:33 +0000 (20:10 -0800)]
Merge branch 'update_visitor'

This brings a new update_visitor that makes it easier to traverse the
parse tree and modify parts of it as necessary.  I wrote this as part of
my in-progress work to allow @cast() expansion, but I was able to apply
it to the dwarf/etc. target variable expanders and to the optimization
stages.  I think the resulting code is more predictable and easier to
follow...

Conflicts:
ChangeLog (bumped my commit dates to push dates...)

15 years agoSimplify void_statement_reducer
Josh Stone [Wed, 11 Feb 2009 03:51:12 +0000 (19:51 -0800)]
Simplify void_statement_reducer

* elaborate.cxx (void_statement_reducer): Convert to an update_visitor.

15 years agoSimplify dead_stmtexpr_remover
Josh Stone [Wed, 11 Feb 2009 02:29:55 +0000 (18:29 -0800)]
Simplify dead_stmtexpr_remover

* staptree.h (update_visitor::require): Add a clearok parameter for
optimizing traversers to signal that they're ready for NULL back.
* elaborate.cxx (dead_stmtexpr_remover): Convert to an update_visitor.

15 years agoSimplify dead_assignment_remover
Josh Stone [Tue, 10 Feb 2009 23:31:50 +0000 (15:31 -0800)]
Simplify dead_assignment_remover

By converting to an update_visitor, we now get full statement coverage
in this optimizer for free.

* elaborate.cxx (dead_assignment_remover): Convert into an
update_visitor and remove its now-redundant traversal methods.

15 years agoadded section on how to monitor polling (testsuite/profiling/timeout.stp)
ddomingo [Wed, 11 Feb 2009 00:52:28 +0000 (10:52 +1000)]
added section on how to monitor polling (testsuite/profiling/timeout.stp)

15 years agocorrected author name
ddomingo [Wed, 11 Feb 2009 00:51:13 +0000 (10:51 +1000)]
corrected author name

15 years agocorrected author name
ddomingo [Wed, 11 Feb 2009 00:51:07 +0000 (10:51 +1000)]
corrected author name

15 years agoExpand probe variables without a deep copy
Josh Stone [Fri, 6 Feb 2009 04:04:56 +0000 (20:04 -0800)]
Expand probe variables without a deep copy

* tapsets.cxx (var_expanding_copy_visitor): This struct becomes
var_expanding_visitor and inherits from update_visitor instead of
deep_copy_visitor.  Each of the probe-type variants of this are also no
longer copiers.

15 years agoCreate update_visitor for modifying trees
Josh Stone [Fri, 6 Feb 2009 04:02:35 +0000 (20:02 -0800)]
Create update_visitor for modifying trees

* staptree.h (update_visitor): A new visitor to make it easier to
rewrite parts of a probe or function without making a full copy.
* staptree.cxx (update_visitor::*): Each child is recursed with a
require() call, and then the parent returns itself with provide().
* staptree.h (deep_copy_visitor): Inherit from update_visitor to get
the recursive descent while updating nodes.
* staptree.cxx (deep_copy_visitor::*): Use the implicit copy
constructors to copy all fields, then defer to update_visitor for the
recursion.  Referents are still cleared from the copies of symbols and
function calls.

15 years agoSimplify require() and provide()
Josh Stone [Thu, 5 Feb 2009 21:08:44 +0000 (13:08 -0800)]
Simplify require() and provide()

* staptree.h (require, provide): Simplify stack operations with less
pointer magic, and move to be deep_copy_visitor members.
* staptree.h (deep_copy_visitor::deep_copy): Templatize
* staptree.cxx, tapsets.cxx: Refactor require/provide callers

15 years agoRemove profile.exp and profile.stp.
William Cohen [Tue, 10 Feb 2009 21:42:15 +0000 (16:42 -0500)]
Remove profile.exp and profile.stp.

15 years agoMove crash.exp and crash.sh to systemtap.base directory.
William Cohen [Tue, 10 Feb 2009 21:18:29 +0000 (16:18 -0500)]
Move crash.exp and crash.sh to systemtap.base directory.

15 years agofix segv that sometimes occurs on buildok/nfs-all-probes.stp on 2.6.29ish kernels
Frank Ch. Eigler [Tue, 10 Feb 2009 20:05:22 +0000 (15:05 -0500)]
fix segv that sometimes occurs on buildok/nfs-all-probes.stp on 2.6.29ish kernels

15 years agoFixed typo in last change.
David Smith [Tue, 10 Feb 2009 15:11:50 +0000 (09:11 -0600)]
Fixed typo in last change.
2009-02-10  David Smith  <dsmith@redhat.com>

* task_finder.c (stap_utrace_detach_ops): Fixed typo.
(__stp_utrace_attach): Ditto.

15 years agoIgnores kernel threads (by checking for PF_KTHREAD).
David Smith [Tue, 10 Feb 2009 12:54:12 +0000 (06:54 -0600)]
Ignores kernel threads (by checking for PF_KTHREAD).
2009-02-10  David Smith  <dsmith@redhat.com>

* task_finder.c (stap_utrace_detach): Ignores kernel threads by
checking task's flags for PF_KTHREAD.
(stap_utrace_detach_ops): Ditto.
(__stp_utrace_attach): Ditto.

15 years agoBZ484506, added yum setup instructions for RHEL
ddomingo [Tue, 10 Feb 2009 03:58:17 +0000 (13:58 +1000)]
BZ484506, added yum setup instructions for RHEL

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