]> sourceware.org Git - systemtap.git/log
systemtap.git
13 years agoAdded news for pr12729
Lukas Berk [Tue, 12 Jul 2011 19:13:09 +0000 (15:13 -0400)]
Added news for pr12729

13 years agoPR12729: Improve stap error message
Lukas Berk [Tue, 12 Jul 2011 19:06:09 +0000 (15:06 -0400)]
PR12729: Improve stap error message

Now report when the user doesn't have permission to run staprun
or if posix_spawnp is unable to launch the process

remote.cxx - finish now reports failure to launch
trycatch.exp - account for the new warning
util.cxx - report if staprun isn't executable or if stap_waitpid failed

13 years agoPR6954 Add a used variables set for use by automatic global printing.
Stan Cox [Tue, 12 Jul 2011 02:25:42 +0000 (22:25 -0400)]
PR6954 Add a used variables set for use by automatic global printing.

* staptree.h (varuse_collecting_visitor::used): New.
* staptree.cxx (varuse_collecting_visitor::visit_symbol): Use previous
  method for setting read and write sets.  Also set used set.
* elaborate.cxx (add_global_var_display): Use the used set.
* global_end.exp (global_end_var): Initialize to non-zero values.
* global_end.stp (global_end_var): Likewise.

13 years agoFix a kernel 2ism in the testsuite
Josh Stone [Tue, 12 Jul 2011 00:11:19 +0000 (17:11 -0700)]
Fix a kernel 2ism in the testsuite

13 years agoPR12729: remove one unneded stap_system invocation
Frank Ch. Eigler [Mon, 11 Jul 2011 21:59:34 +0000 (17:59 -0400)]
PR12729: remove one unneded stap_system invocation

lberk found that this function normally produces failing stap_system
calls, which are not going to be silent for much longer.

* buildrun.cxx (kernel_built_uprobes): Simplify.

13 years ago"const int" should just be "int".
William Cohen [Fri, 8 Jul 2011 15:43:37 +0000 (11:43 -0400)]
"const int" should just be "int".

13 years agoBZ719966: spec file: require matching rpm v-r amongst runtime/server/etc.
Frank Ch. Eigler [Fri, 8 Jul 2011 15:38:06 +0000 (11:38 -0400)]
BZ719966: spec file: require matching rpm v-r amongst runtime/server/etc.

13 years agoPR 12917 - Implement Compile-Server/Client Versioning - Rework
Dave Brolley [Fri, 8 Jul 2011 14:54:38 +0000 (10:54 -0400)]
PR 12917 - Implement Compile-Server/Client Versioning - Rework

- Prefer newer servers when selecting servers from a list.

13 years agoPR 12917 - Implement Compile-Server/Client Versioning - Rework
Dave Brolley [Fri, 8 Jul 2011 14:53:49 +0000 (10:53 -0400)]
PR 12917 - Implement Compile-Server/Client Versioning - Rework

- cscommon.cxx: New file for common function used by client and server.

13 years agoPR 12917 - Implement Compile-Server/Client Versioning - Rework
Dave Brolley [Thu, 7 Jul 2011 16:22:04 +0000 (12:22 -0400)]
PR 12917 - Implement Compile-Server/Client Versioning - Rework

- Use systemtap version number as the client/server protocol version
  number.
- Client and Server will both be backward compaible with the other
  by policy. i.e. both will adapt when connecting to a down-level
  version of the other.

13 years agounwind.c consolidate sanity checking and cie/fde parsing.
Mark Wielaard [Fri, 8 Jul 2011 14:53:10 +0000 (16:53 +0200)]
unwind.c consolidate sanity checking and cie/fde parsing.

Checking and parsing of FDE and CIE data was done in multiple places in
the code, some things were checked/parsed multiple times. Now is_fde()
and cie_for_fde() do the structural/id/version checking of FDEs
and CIEs. parse_fde_cie() parses the content of and checks the internal
consistency the CIEs and FDEs.

unwind.h: Removed now unused fields of struct unwind_state.
And removed unnecessary static function prototype declarations.

13 years agospec: include README.unprivileged and README.security someplace
Frank Ch. Eigler [Fri, 8 Jul 2011 01:36:52 +0000 (21:36 -0400)]
spec: include README.unprivileged and README.security someplace

13 years agoserverd: Fix the locale regex to allow '-' and not a range
Josh Stone [Fri, 8 Jul 2011 01:26:28 +0000 (18:26 -0700)]
serverd: Fix the locale regex to allow '-' and not a range

[.-=] allows all characters from '.' to '=', 0x2E-0x3D
[.=-] allows exactly the characters '.' '=' '-'

The server_locale.exp test is supposed to check that '-' is allowed,
but its failure was incorrectly masked in commit 16560657.  Added a
different disallowed character ';' to test as well.

13 years agotestsuite: CLONE_FOO flags need _GNU_SOURCE
Josh Stone [Fri, 8 Jul 2011 00:44:34 +0000 (17:44 -0700)]
testsuite: CLONE_FOO flags need _GNU_SOURCE

13 years agoPR5163: Cache uprobes.ko as we do with everything else
Josh Stone [Tue, 21 Jun 2011 18:12:36 +0000 (11:12 -0700)]
PR5163: Cache uprobes.ko as we do with everything else

We now build uprobes in our writable tmpdir (rather than directly in
SYSTEMTAP_RUNTIME), and cache the result for reuse.  This relieves the
pain of having to rebuild uprobes after every kernel change, and also
makes it possible to provide uprobes for multiple unique targets, as
needed for the compiler server and for remoting.

* buildrun.cxx (make_make_cmd): New, consolidate repeated code.
  (compile_pass, make_tracequery, make_typequery_kmod): Use it.
  (make_uprobes): Rewrite to build uprobes.ko under the tmpdir, just
  using a #include to the main uprobes.c in the runtime.
  (get_cached_uprobes, set_cached_uprobes): Read/write uprobes cache.
  (uprobes_pass): Try to cache, then build if necessary.
  (may_build_uprobes, verify_uprobes_uptodate, copy_uprobes_symbols):
  Removed.
* hash.cxx (find_uprobes_hash): Prepare a hashed name for uprobes.
* main.cxx (passes_0_4): If the script was cached, make sure we still
  find or build uprobes if needed too.
* stap-serverd.cxx (handleRequest): Get uprobes from the tmpdir rather
  than from the runtime path, and sign it directly if needed.
* testsuite/lib/systemtap.exp (uprobes_p): Don't build uprobes here.
* testsuite/systemtap.base/buildid.exp: Launch a dummy pass-5 run, so we
  don't have to worry about providing a path to staprun -u.

13 years agoPR6954 Do automatic global printing for RMW operands.
Stan Cox [Fri, 8 Jul 2011 01:41:14 +0000 (21:41 -0400)]
PR6954 Do automatic global printing for RMW operands.

* staptree.h (current_lvalue_read):  New.
* staptree.cxx (varuse_collecting_visitor::visit_symbol): Do not
   treat an RMW symbol as read if the value is not a real rvalue.
  (varuse_collecting_visitor::visit_print_format): Handle current_lvalue_read.
  (varuse_collecting_visitor::visit_assignment): Likewise.
  (varuse_collecting_visitor::visit_delete_statement): Likewise.

* global_end.exp (global_end_var): Test RMW cases.
* global_end.stp (global_end_var): Likewise.

13 years agounwind.h remove unused struct unwind_table root_table.
Mark Wielaard [Thu, 7 Jul 2011 12:02:23 +0000 (14:02 +0200)]
unwind.h remove unused struct unwind_table root_table.

13 years agounwind.c remove unused structs and code.
Mark Wielaard [Thu, 7 Jul 2011 11:46:18 +0000 (13:46 +0200)]
unwind.c remove unused structs and code.

Removed struct eh_frame_hdr_table_entry, cmp_eh_frame_hdr_table_entries
and swap_eh_frame_hdr_table_entries.

13 years agoFixed BZ709190 to avoid crashes during NFS tracing.
David Smith [Thu, 7 Jul 2011 16:39:44 +0000 (11:39 -0500)]
Fixed BZ709190 to avoid crashes during NFS tracing.

* runtime/addr-map.c: Changed 'addr_map_lock' from a spinlock to a rwlock
  to allow more simultaneous readers.

13 years agoMake the messages clearer for hw_watch_sym.stp and hw_watch_addr.stp.
William Cohen [Thu, 7 Jul 2011 14:15:12 +0000 (10:15 -0400)]
Make the messages clearer for hw_watch_sym.stp and hw_watch_addr.stp.

13 years agoSilence sys/sdt.h comparison of unsigned expression < 0 is always false.
Mark Wielaard [Wed, 6 Jul 2011 21:07:51 +0000 (23:07 +0200)]
Silence sys/sdt.h comparison of unsigned expression < 0 is always false.

Some arm g++ setups would complain about the wchar_t "signedness detection":
sys/sdt.h:102: error: comparison of unsigned expression < 0 is always false

jistone said: "((T)(-1) < 1)" would still get the right boolean value,
and shouldn't trigger range errors like "unsigned is never < 0".

13 years agoUpdate the examples list
William Cohen [Wed, 6 Jul 2011 15:56:15 +0000 (11:56 -0400)]
Update the examples list

13 years agoPR12947 - Add some examples to execise the probes for hardware breakpoints
William Cohen [Wed, 6 Jul 2011 15:52:33 +0000 (11:52 -0400)]
PR12947 - Add some examples to execise the probes for hardware breakpoints

13 years agoPR 12955 - unprivileged mode elaboration in man pages etc
Dave Brolley [Wed, 6 Jul 2011 14:26:52 +0000 (10:26 -0400)]
PR 12955 - unprivileged mode elaboration in man pages etc

Document the actual restrictions enforced at translation time and at
run time for unprivileged users.

13 years agoPR12947 Properly track the creation of probes using hardware breakpoints
William Cohen [Wed, 6 Jul 2011 14:06:42 +0000 (10:06 -0400)]
PR12947 Properly track the creation of probes using hardware breakpoints

The logic for creation of probes using hardware breakpoints was incorrect.
The register_wide_hw_breakpoint() can return error codes in place of the
pointer. The value of the pointer needs to be checked to determine
whether it is the range of values indicating an error. The setup
code also needs to properly track whether the registration was completed
on a probe, so the shutdown code only calls unregister_wide_breakpoint()
for the probes that are actually registered.

13 years agounwind.c fde_pointer_type fix (fake) 'P' encoding type value reading.
Mark Wielaard [Wed, 6 Jul 2011 10:56:46 +0000 (12:56 +0200)]
unwind.c fde_pointer_type fix (fake) 'P' encoding type value reading.

We are not actually interested in the personality routine value,
so don't try to deref (which will usually fail). Mask off DW_EH_PE_indirect.

13 years agoruntime/unwind split fde/cie parsing.
Mark Wielaard [Tue, 5 Jul 2011 21:06:52 +0000 (23:06 +0200)]
runtime/unwind split fde/cie parsing.

Split parsing/sanity checking of fde and cie. This removes the bad_cie
and not_fde statics. is_fde will just return NULL and produce a warning.

13 years agounwind.c Only do a linear search if there isn't a search header.
Mark Wielaard [Tue, 5 Jul 2011 15:25:23 +0000 (17:25 +0200)]
unwind.c Only do a linear search if there isn't a search header.

There always should be one, we create it in the translator
if it didn't exist. Only if we are using elfutils < 0.142
should these ever be missing. If the binary search fails,
either because the unwind data is bad, or the address isn't
covered, don't fall back to linear searching. Add extra
checks and warning about bad debug frame header.

13 years agoREADME updates
Frank Ch. Eigler [Tue, 5 Jul 2011 21:01:05 +0000 (17:01 -0400)]
README updates

include new utrace URL, switch away from sudo, clarify stapusr/unprivileged mode

13 years agosome README additions
Daniel Migault [Tue, 5 Jul 2011 20:58:35 +0000 (16:58 -0400)]
some README additions

13 years agoPR13419: update rep_ret test case
Frank Ch. Eigler [Mon, 4 Jul 2011 20:41:42 +0000 (16:41 -0400)]
PR13419: update rep_ret test case

repnz;ret has been accepted since commit 9ee518c4d

13 years agounwind.c fix CIE augmentation parsing.
Mark Wielaard [Fri, 1 Jul 2011 17:33:02 +0000 (19:33 +0200)]
unwind.c fix CIE augmentation parsing.

fde_pointer_type and unwind_frame didn't handle the "S" augmentation
properly. This augmentation doesn't cary any extra data and so does
not need to be preceded by "z". Also added more sanity checking,
plus _stp_warn explanations when things go wrong/doesn't parse.

13 years agoHandle CIE and FDE CFI sequentially in unwind.c instead of recursively.
Mark Wielaard [Thu, 30 Jun 2011 12:14:14 +0000 (14:14 +0200)]
Handle CIE and FDE CFI sequentially in unwind.c instead of recursively.

Another simple unwind.c cleanup to make reasoning about the unwind state
easier, and to remove another (useless) recursive call. Also fixes CIE/FDE
comment mixup.

13 years agoRefactor DW_CFA_remember/restore_state handling in unwind.c.
Mark Wielaard [Wed, 29 Jun 2011 15:20:30 +0000 (17:20 +0200)]
Refactor DW_CFA_remember/restore_state handling in unwind.c.

The old way of handling DW_CFA_restore_state involved recursively
calling processCFI() to replay the whole CFI stream up till the last
DW_CFA_remember_state instruction. This made it hard to reason about
the actual unwind state and could lead to processing the CFI stream
multiple times. In exchange for a little extra memory allocated upfront
to keep a small stack of register states we now just process all CFI in
one go. This change also splits out the unwind_reg_state from the
general unwind_state struct.

13 years agoSlightly improved runtime/unwind.c debug output.
Mark Wielaard [Mon, 27 Jun 2011 13:12:04 +0000 (15:12 +0200)]
Slightly improved runtime/unwind.c debug output.

13 years agoProperly report the return code (rc) for registered hw breakpoint (PR12947)
William Cohen [Wed, 29 Jun 2011 19:32:41 +0000 (15:32 -0400)]
Properly report the return code (rc) for registered hw breakpoint (PR12947)

In the case of an error, the return code (rc) was not set when
registering a hw breakpoint. This lead to the the SystemTap instrumentation
module trying to unregister a non-existant hw breakpoint and causing a
kernel oops.  This patch ensure that the return code (rc) is set
and errors in hw breakpoint registration are handled correctly.

13 years agocheck_groups cleanup in staprun.
Dave Brolley [Tue, 28 Jun 2011 21:33:48 +0000 (17:33 -0400)]
check_groups cleanup in staprun.

- Remove unused extern "unprivileged_user'
- Correct error messages about which group memberships are necessary.
  - Messages did not specify that stapusr is required if not root.

13 years agoUpdate client/server actions for protocol version 1.1.
Dave Brolley [Tue, 28 Jun 2011 18:21:07 +0000 (14:21 -0400)]
Update client/server actions for protocol version 1.1.

13 years agoPR 12917 - Implement Compile-Server/Client Versioning: Part 2
Dave Brolley [Tue, 28 Jun 2011 18:10:26 +0000 (14:10 -0400)]
PR 12917 - Implement Compile-Server/Client Versioning: Part 2

- Compile server advertises its protocol version using avahi.
- Client will not automatically choose an incompatible server.

13 years agoAllow the compile-server server to return error messages to the client.
Dave Brolley [Mon, 27 Jun 2011 21:01:28 +0000 (17:01 -0400)]
Allow the compile-server server to return error messages to the client.

- Update affacted test cases.

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Dave Brolley [Mon, 27 Jun 2011 16:34:52 +0000 (12:34 -0400)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

Conflicts:
stap-serverd.cxx

13 years agoPR 12917 - Implement Compile-Server/Client Versioning: Part 1
Dave Brolley [Mon, 27 Jun 2011 16:18:58 +0000 (12:18 -0400)]
PR 12917 - Implement Compile-Server/Client Versioning: Part 1

- Client and server both include 'version' file as part of their
  request/response.
- Client and server both check that they can deal with the other.
  - Currently both the client and the server can deal with all
    previous versions of the the other.
  - Both will reject an up level request/response from the other.

13 years agoRemoved useless calls to umask in create_temp_dir.
Dave Brolley [Fri, 24 Jun 2011 17:43:59 +0000 (13:43 -0400)]
Removed useless calls to umask in create_temp_dir.

13 years agoFixed NSS object leak causeing failed shutdown
Chris Meek [Wed, 22 Jun 2011 20:04:40 +0000 (16:04 -0400)]
Fixed NSS object leak causeing failed shutdown

csclient.cxx
    If the user's domain name did not match the DNS
    name(s) on the server certificate, serverCert
    was not being properly destroyed. This resaulted
    in an object leak causing NSS to fail in shutting
    down properly. Now it is properly destroyed, and NSS
    properly shuts down, in this special case.

13 years agoAdded .autotools to the .gitignore file
Chris Meek [Wed, 22 Jun 2011 15:22:34 +0000 (11:22 -0400)]
Added .autotools to the .gitignore file

13 years agoAdded preliminary tests for server localization
Chris Meek [Wed, 22 Jun 2011 13:13:48 +0000 (09:13 -0400)]
Added preliminary tests for server localization

testsuite/systemtap.server/server_locale.exp
    Added tests for:
        Embedded '\n' in Environment Variables
        Use of "_.-@=" in Environment Variables
        LANG Proper Syntax (english)
        LANG Proper Syntax (french)
        LANG Bad Syntax (english)
        LANG Bad Syntax (french)
        LANG Proper Syntax (english, -k)
        LANG Proper Syntax (french, -k)
        LANG Bad Syntax (english, -k)
        LANG Bad Syntax (french, -k)
        LC_ALL Proper Syntax (english)
        LC_ALL Proper Syntax (french)
        LC_ALL Bad Syntax (english)
        LC_ALL Bad Syntax (french)
        LC_ALL Proper Syntax (english, -k)
        LC_ALL Proper Syntax (french, -k)
        LC_ALL Bad Syntax (english, -k)
        LC_ALL Bad Syntax (french, -k)

Note: Did not add tests yet for other locale variables
because they do not seem to have any effect on the output

13 years agoAdded more French translations
Chris Meek [Wed, 22 Jun 2011 13:06:32 +0000 (09:06 -0400)]
Added more French translations

parse.cxx
    Made message "1 parse error(s)." dynamically detect plural form.
    Also made it be recognized by translation files.

13 years agoFixed env regex properly
Chris Meek [Mon, 20 Jun 2011 21:25:25 +0000 (17:25 -0400)]
Fixed env regex properly

Changed "^[a-zA-Z0-9@_.=\\-]*$" to "^[a-zA-Z0-9@_.=-]*$"

13 years agoMerge branch 'master' of http://sourceware.org/git/systemtap
Lukas Berk [Mon, 20 Jun 2011 18:45:04 +0000 (14:45 -0400)]
Merge branch 'master' of http://sourceware.org/git/systemtap

13 years agoFixed bug in env variable parsing regex
Chris Meek [Mon, 20 Jun 2011 18:01:54 +0000 (14:01 -0400)]
Fixed bug in env variable parsing regex

Changed "^[a-zA-Z0-9@_.-=]*$" to "^[a-zA-Z0-9@_.=\\-]*$"
because "-" must be escaped.

13 years agoMerge branch 'PR12033'
Lukas Berk [Fri, 17 Jun 2011 20:03:07 +0000 (16:03 -0400)]
Merge branch 'PR12033'

13 years agoPR12033 stap -vvL now reports errors with invalid syntax
Lukas Berk [Fri, 17 Jun 2011 20:00:54 +0000 (16:00 -0400)]
PR12033 stap -vvL now reports errors with invalid syntax

elaborate.cxx - add conditional to output error message

13 years agoRework testing of allowed/not-allowed probes for unprivileged users.
Dave Brolley [Fri, 17 Jun 2011 14:39:35 +0000 (10:39 -0400)]
Rework testing of allowed/not-allowed probes for unprivileged users.

Use lists of probes instead of test cases in individual files.

13 years agoFixed PR12877 by handling exec properly in the task_finder.
David Smith [Fri, 17 Jun 2011 16:04:48 +0000 (11:04 -0500)]
Fixed PR12877 by handling exec properly in the task_finder.

* runtime/task_finder.c (stap_register_task_finder_target): For
  "interesting" tasks, add an exec handler.
  (__stp_utrace_task_finder_report_exec): When exec happens, let
  __stp_utrace_task_finder_target_exec() handle callbacks for the
  "original" task.
  (__stp_utrace_task_finder_target_exec): Call callbacks for this
  "interesting" task.
* testsuite/systemtap.base/proc_exec.exp: New test.
* testsuite/systemtap.base/proc_exec.c: New file.
* testsuite/systemtap.base/proc_fork_exec.c: Ditto.
* testsuite/systemtap.base/proc_thread_exec.c: Ditto.

13 years agoAdded --tmpdir=DIRECTORY option to stap
Chris Meek [Fri, 17 Jun 2011 13:26:04 +0000 (09:26 -0400)]
Added --tmpdir=DIRECTORY option to stap

main.cxx
    In remove_temp_dir(), added a check whether the --tmpdir has
    been used. If so, it will not remove the directory, and it
    will not print out "Keeping temporary directory..".

session.h
    Added tmpdir_opt_set boolean value to the session, to keep
    track of the use of --tmpdir

session.cxx
    Added --tmpdir option, and added tmpdir_opt_set to the
    constructor and copy constructor

stap-serverd.cxx
    Made the server create the stap tmp directory and pass it to
    stap using the --tmpdir option. The server now knows the name,
    so there is no need to search through it for the "Keeping
    temporary directory..." message, or move the directory to the
    server's tmp directory.

13 years agoPR12580 Added localization functionality to client-server exchange
Chris Meek [Mon, 13 Jun 2011 18:06:46 +0000 (14:06 -0400)]
PR12580 Added localization functionality to client-server exchange

NOTE: currently only works with English due to "keeping-temporary-directory"
limitation (relies on parsing English message). This will be fixed in a future
update.

csclient.cxx
    Wrote add_localization_variables() function to include the client's localization
    information in a file sent to the server.

stap-serverd.cxx
    Wrote functionality in handleRequest() to unpackage and verify localization
    information retrieved from the client.

util.cxx
    Wrote localization_variables() function to maintain and return a set of all
    the localization variables to transfer between client and server.

13 years agoCleanup the performance testing script.
Stan Cox [Thu, 16 Jun 2011 20:17:43 +0000 (16:17 -0400)]
Cleanup the performance testing script.

bench.c (main): Add main status code.
bench.sh (main): Change to STAP_SDT_V1, improve explanation.

13 years agoDo status setting and exit at the top level.
Stan Cox [Wed, 15 Jun 2011 19:52:38 +0000 (15:52 -0400)]
Do status setting and exit at the top level.

* dtrace.in (main): Use return instead of sys.exit; move sys.exit to top.

13 years agoSplit command line pieces with shlex
Stan Cox [Tue, 14 Jun 2011 21:36:23 +0000 (17:36 -0400)]
Split command line pieces with shlex

dtrace.in (main):  Use shlex.split for CPP, CC, and CFLAGS

13 years agoImprove dtrace handling of CC environment variable.
Stan Cox [Tue, 14 Jun 2011 20:16:59 +0000 (16:16 -0400)]
Improve dtrace handling of CC environment variable.

* dtrace.in (main): Split CC to allow for application Makefile abuse.

13 years agoPR12008 map module("foo-bar") to module("foo_bar")
Lukas Berk [Fri, 10 Jun 2011 20:06:01 +0000 (16:06 -0400)]
PR12008 map module("foo-bar") to module("foo_bar")

NEWS - updated blurb, also added example to previous commit for
       clarity.
tapsets.cxx - remapping done here
num_args.stp - modify some of the module names to account for change
               and create testcase

13 years agoPR12876: let cmdline_str() tolerate empty strings in argv[]
Marc Milgram [Fri, 10 Jun 2011 19:06:33 +0000 (15:06 -0400)]
PR12876: let cmdline_str() tolerate empty strings in argv[]

* context.stp (cmdline_str): Insert "" for empty string, don't
  abort copying loop.

13 years agoDon't process the dtrace -o FILENAME.
Stan Cox [Fri, 10 Jun 2011 13:42:43 +0000 (09:42 -0400)]
Don't process the dtrace -o FILENAME.

dtrace.in (main):  Use suffix for both -h and -G.  Check gcc return code.
dtrace.exp:  Massage results accordingly.

13 years agoAlso allow library wildcards for sdt probes.
Stan Cox [Wed, 8 Jun 2011 20:34:36 +0000 (16:34 -0400)]
Also allow library wildcards for sdt probes.

tapsets.cxx (query_one_library):  Renamed from dwarf_query::query_library.
 (dwarf_query::query_library):  Call it from here...
 (sdt_query::query_library):  and here.
library.exp:  Also test .mark
library.stp:  Likewise.

13 years agoPR12427 implied process("...") target for stap -c CMD invocation
Lukas Berk [Wed, 8 Jun 2011 15:23:20 +0000 (11:23 -0400)]
PR12427 implied process("...") target for stap -c CMD invocation

NEWS - news blurb
stapprobes.3stap - updated and noted change in functionality
tapsets.cxx - add new probe points to bind to, parse probe point
              and assign to parameters and location->components->arg
process_by_cmd.* - test program for testsuite

13 years agoFixed BZ711757 to remove debugfs directory when out of memory.
Yoshihide Sonoda [Wed, 8 Jun 2011 14:41:17 +0000 (09:41 -0500)]
Fixed BZ711757 to remove debugfs directory when out of memory.

* runtime/transport/transport.c (_stp_lock_transport_dir): Be sure to
  clean up if _stp_transport_data_fs_init() fails.

13 years agoMake library.exp work on RHEL5.
David Smith [Tue, 7 Jun 2011 21:48:26 +0000 (16:48 -0500)]
Make library.exp work on RHEL5.

* testsuite/systemtap.base/library.exp: Check for line endings to keep
  RHEL5 dejagnu happy.

13 years agoFix PR12787 by making __tcp_skb_dport() return value in host order.
Alfred Landrum [Tue, 7 Jun 2011 19:37:11 +0000 (14:37 -0500)]
Fix PR12787 by making __tcp_skb_dport() return value in host order.

* tapset/tcp.stp (__tcp_skb_dport): Make __tcp_skb_dport() consistent with
  __tcp_skb_sport() by returning value in host order.

13 years agostapconf: Conditionalize stacktrace_ops.warning{,_symbol}
Josh Stone [Tue, 7 Jun 2011 18:23:13 +0000 (11:23 -0700)]
stapconf: Conditionalize stacktrace_ops.warning{,_symbol}

Kernel commit 449a66f removed these fields.

* buildrun.cxx: Include the new test.
* runtime/autoconf-stacktrace_ops-warning.c: Check the warning field.
* runtime/stack.c: Conditionalize the warning initialization.

13 years agoFix itrace to not leak utrace engine structures (PR12834).
David Smith [Tue, 7 Jun 2011 18:05:41 +0000 (13:05 -0500)]
Fix itrace to not leak utrace engine structures (PR12834).

* runtime/itrace.c (create_itrace_info): Be sure to call
  utrace_engine_put() to avoid memory leaks.

13 years agoChange .library test to be self contained.
Stan Cox [Mon, 6 Jun 2011 20:35:48 +0000 (16:35 -0400)]
Change .library test to be self contained.

* library.exp:  Remove libc.so tests.  Use libsdt.so for glob and --ldd tests.

13 years agoPCP: remove remaining materials
Frank Ch. Eigler [Fri, 3 Jun 2011 18:52:17 +0000 (14:52 -0400)]
PCP: remove remaining materials

dsmith's pcp/src/pmda has found a home within upstream pcp 3.5.2,
so there is no need to develop it within the stap tree any more.

13 years agoBeter itrace fix for BZ699342.
David Smith [Fri, 3 Jun 2011 14:03:06 +0000 (09:03 -0500)]
Beter itrace fix for BZ699342.

* tapset-itrace.cxx (itrace_derived_probe_group::emit_module_decls): Pass
  the task pointer to find_itrace_info() instead of pid.
* runtime/itrace.c (find_intrace_info): Look up itrace_info structures by
  task pointers, instead of by pid.
  (remove_usr_itrace_info): Update debug message.

13 years agoImprove error handling in __stp_utrace_attach().
Atsushi Tsuji [Thu, 2 Jun 2011 16:22:12 +0000 (11:22 -0500)]
Improve error handling in __stp_utrace_attach().

utrace_attach_task() returns ESRCH (in current versions of utrace) in
the UTRACE_ATTACH_CREATE case if an error occurs.  This patch improves
error checking to correctly ignore processes in "mortally wounded"
state.

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
David Smith [Wed, 1 Jun 2011 20:03:43 +0000 (15:03 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

13 years agoFixed BZ699342 by fixing itrace on RHEL5.
David Smith [Wed, 1 Jun 2011 20:03:30 +0000 (15:03 -0500)]
Fixed BZ699342 by fixing itrace on RHEL5.

* tapset-itrace.cxx (itrace_derived_probe_group::emit_module_decls): Pass
  the correct pid field to find_itrace_info() to avoid panics on RHEL5.

13 years agoPR12829: prevent unclean exit due to extra signals when run under sudo
Frank Ch. Eigler [Wed, 1 Jun 2011 01:37:48 +0000 (21:37 -0400)]
PR12829: prevent unclean exit due to extra signals when run under sudo

* main.cxx (handle_interrupt): Accept two freebie signals for a
  clean shutdown before doing a hard exit on the third.

13 years agodtrace: Init semaphores_def as a member of the instance, not class
Josh Stone [Wed, 1 Jun 2011 01:17:58 +0000 (18:17 -0700)]
dtrace: Init semaphores_def as a member of the instance, not class

13 years agodtrace: Clean up gettext initialization
Josh Stone [Wed, 1 Jun 2011 00:52:02 +0000 (17:52 -0700)]
dtrace: Clean up gettext initialization

- Provide something callable for the !USE_NLS case
- Use "...".replace directly instead of string.replace()
- Do initialization in a function, so globals aren't polluted.

13 years agostaprun: Discriminate errors before retrying module insertion
Josh Stone [Tue, 31 May 2011 21:49:16 +0000 (14:49 -0700)]
staprun: Discriminate errors before retrying module insertion

* runtime/staprun/staprun_funcs.c(insert_module): Copy the saved_errno
  back into errno when insertion fails.
* runtime/staprun/staprun.c(init_staprun): When the first insertion
  attempt fails, check for EEXIST and then successful module removal
  before trying module insertion again.

13 years agoDon't include sdt-types.h in testsuite/sdt.h
Stan Cox [Tue, 31 May 2011 21:16:57 +0000 (17:16 -0400)]
Don't include sdt-types.h in testsuite/sdt.h

* testsuite/sdt.h: systemtap-testsuite cannot find SOURCE/sdt-types.h
  so duplicate the needed constants.

13 years agostap.1: remote i18n needs all-caps LANG
Josh Stone [Tue, 31 May 2011 20:10:35 +0000 (13:10 -0700)]
stap.1: remote i18n needs all-caps LANG

13 years agoMerge branch 'master' of http://sourceware.org/git/systemtap
Lukas Berk [Tue, 31 May 2011 18:45:42 +0000 (14:45 -0400)]
Merge branch 'master' of http://sourceware.org/git/systemtap

13 years agoMention LANG env variable for remote usage in stap.1 man page
Lukas Berk [Tue, 31 May 2011 18:43:14 +0000 (14:43 -0400)]
Mention LANG env variable for remote usage in stap.1 man page

13 years agoprepare for linux 2.6->3.0 naming evolution
Frank Ch. Eigler [Mon, 30 May 2011 13:30:28 +0000 (09:30 -0400)]
prepare for linux 2.6->3.0 naming evolution

We mention linux 2.6 in a few places, but that's about
to become obsolete.

13 years agovta-test.exp: Check for default, not -default.
Mark Wielaard [Mon, 30 May 2011 10:16:57 +0000 (12:16 +0200)]
vta-test.exp: Check for default, not -default.

13 years agoImprove the chances of using the same port when the compile server is restarted.
Dave Brolley [Fri, 27 May 2011 19:29:26 +0000 (15:29 -0400)]
Improve the chances of using the same port when the compile server is restarted.

1) Keep the socket open when the server takes itself down internally in order
   to regenerate its certificate.
2) Use PR_SocketOpt_reuseaddr so that a specified port can be reused when the
   server is externally halted and restarted.

13 years agoSuppress informational message about empty certificate database unless verbose > 1.
Dave Brolley [Fri, 27 May 2011 15:53:23 +0000 (11:53 -0400)]
Suppress informational message about empty certificate database unless verbose > 1.

13 years agoFix executable path to postgres controller.
Stan Cox [Thu, 26 May 2011 19:06:40 +0000 (15:06 -0400)]
Fix executable path to postgres controller.

* postgres.exp (stap-postgres.sh):  Fix pg_ctl path.

13 years agoComment why timer.profile isn't unprivileged
Josh Stone [Wed, 25 May 2011 22:20:29 +0000 (15:20 -0700)]
Comment why timer.profile isn't unprivileged

13 years agoPR12743 stap -L 'process("PATH").syscall' now reports context variables
Lukas Berk [Wed, 25 May 2011 20:51:17 +0000 (16:51 -0400)]
PR12743 stap -L 'process("PATH").syscall' now reports context variables
NEWS - added news comment
tapset-utrace.cxx - added utrace_derived_probe::getargs to push
                    back the context variables to be listed

13 years agoalso bump version for staprun autoconf
Frank Ch. Eigler [Wed, 25 May 2011 12:56:38 +0000 (08:56 -0400)]
also bump version for staprun autoconf

13 years agoregen example indexes
Frank Ch. Eigler [Tue, 24 May 2011 20:19:43 +0000 (16:19 -0400)]
regen example indexes

13 years agoprepare for sources.redhat.com retirement
Frank Ch. Eigler [Tue, 24 May 2011 20:17:04 +0000 (16:17 -0400)]
prepare for sources.redhat.com retirement

Replace it with sourceware.org throughout docs.

13 years agobump version numbers to 1.6, for future release cycle
Stan Cox [Tue, 24 May 2011 19:49:48 +0000 (15:49 -0400)]
bump version numbers to 1.6, for future release cycle

13 years agostap-serverd: Manage avahi client more gracefully.
Dave Brolley [Fri, 20 May 2011 19:30:11 +0000 (15:30 -0400)]
stap-serverd: Manage avahi client more gracefully.

- Use avahi_threaded_poll instead of our own ahavi thread.
- Easier to start/stop/restart using avahi API functions.

13 years agodocument function::system()
Frank Ch. Eigler [Tue, 24 May 2011 14:55:29 +0000 (10:55 -0400)]
document function::system()

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
David Smith [Mon, 23 May 2011 21:24:59 +0000 (16:24 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

13 years agoAvoid some bad testsuite fails becase of unhandled child exit status warnings.
David Smith [Mon, 23 May 2011 21:24:17 +0000 (16:24 -0500)]
Avoid some bad testsuite fails becase of unhandled child exit status warnings.

* testsuite/systemtap.base/target_set.exp: Handle warning about child
  process exiting with a bad status.
* testsuite/systemtap.context/uprobe_stmt_num.exp: Ditto.
* testsuite/systemtap.context/uprobe_uaddr.exp: Ditto.
* testsuite/systemtap.context/usymbols.c: Explicitly exit with a status of
  0 (to avoid warnings about bad child exit status).

13 years agoFix typo. release-1.5
Stan Cox [Mon, 23 May 2011 19:21:36 +0000 (15:21 -0400)]
Fix typo.

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