]> sourceware.org Git - systemtap.git/log
systemtap.git
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.

13 years agodatestamp release
Stan Cox [Mon, 23 May 2011 18:51:31 +0000 (14:51 -0400)]
datestamp release

13 years agoPR12770: In loc2c, discontiguify based on total_bytes
Josh Stone [Sat, 21 May 2011 01:41:39 +0000 (18:41 -0700)]
PR12770: In loc2c, discontiguify based on total_bytes

The total_bytes number is the part that really matters in determining
whether a given dereference is greater than native size.  In particular,
using loc->byte_size from a loc_address was telling us that 4 bytes is
ok (sizeof pointer), even though the pointee was 8 total_bytes.

* loc2c.c (discontiguify::pieces_small_enough): Compare total_bytes to
  the platform word size to decide whether to split into pieces.
  (discontiguify): For loc_constant, we have nothing to do as they're
  always copied byte-wise, but we should truncate the constant block to
  total_bytes.

13 years agoAUTHORS bump
Josh Stone [Fri, 20 May 2011 23:41:17 +0000 (16:41 -0700)]
AUTHORS bump

13 years agoLet the @sum of an empty aggregate be 0
Josh Stone [Fri, 20 May 2011 23:29:21 +0000 (16:29 -0700)]
Let the @sum of an empty aggregate be 0

It's handy to have a defined meaning for the @sum of empty aggregate, so
one doesn't need to check for @count > 0 every time.  For example, now a
pattern like "x += y; ... println(x)" can be more directly converted to
aggregates with "x <<< y; ... println(@sum(x))".

* translate.cxx (c_unparser::visit_stat_op): Let the @sum be read even
  on empty aggregates, but leaving the old behavior for compatibility.
* testsuite/systemtap.maps/absentstats.exp: Check that both @count and
  @sum are allowed by default, and only @count for stap <= 1.4.
* testsuite/systemtap.maps/ix_clear*.stp: Use @min for empty failure.

13 years agoFixed source_context.stp test.
David Smith [Fri, 20 May 2011 22:17:58 +0000 (17:17 -0500)]
Fixed source_context.stp test.

* testsuite/semko/source_context.stp: Moved from parseko, since this is a
  pass 2 test, not a pass 1 test.  It was sucessfully failing before, but
  only because the shell was trying to execute it instead of systemtap.

13 years agoFix 'non-executable-script' and 'script-without-shebang' rpmlint errors.
David Smith [Fri, 20 May 2011 22:12:48 +0000 (17:12 -0500)]
Fix 'non-executable-script' and 'script-without-shebang' rpmlint errors.

* testsuite/systemtap.base/bz5274.exp: Fixed 'script-without-shebang'
  rpmlint error by making the file non-executable.
* testsuite/systemtap.base/foreach_value.stp: Ditto.
* testsuite/systemtap.maps/elision.exp: Ditto.
* testsuite/systemtap.maps/exists.exp: Ditto.
* testsuite/systemtap.maps/foreach_fail.stp: Ditto.
* testsuite/systemtap.maps/foreach_foreach.stp: Ditto.
* testsuite/systemtap.maps/foreach_limit2.stp: Ditto.
* testsuite/systemtap.maps/ii.stp: Ditto.
* testsuite/systemtap.maps/iiiiii.stp: Ditto.
* testsuite/systemtap.maps/is.stp: Ditto.
* testsuite/systemtap.maps/ix.stp: Ditto.
* testsuite/systemtap.maps/ix_clear.stp: Ditto.
* testsuite/systemtap.maps/ix_clear2.stp: Ditto.
* testsuite/systemtap.maps/ix_clear3.stp: Ditto.
* testsuite/systemtap.maps/ix_hist.stp: Ditto.
* testsuite/systemtap.maps/pmap_agg_overflow.stp: Ditto.
* testsuite/systemtap.maps/si.stp: Ditto.
* testsuite/systemtap.maps/ss.stp: Ditto.
* testsuite/systemtap.samples/examples.exp: Ditto.
* testsuite/systemtap.syscall/nd_sys.stp: Ditto.
* testsuite/systemtap.syscall/sys.stp: Ditto.
* testsuite/systemtap.syscall/test.stp: Ditto.
* testsuite/systemtap.apps/stap-tcl.sh: Fix 'non-executable-script'
  rpmlint error by making the script exectuable.
* testsuite/systemtap.base/bz10294.stp: Ditto.
* testsuite/systemtap.base/bz6905.stp: Ditto.
* testsuite/systemtap.base/optionalprobe.stp: Ditto.
* testsuite/systemtap.base/system_func.stp: Ditto.
* testsuite/systemtap.base/x86_gs.stp: Ditto.
* testsuite/systemtap.context/symbols.stp: Ditto.
* testsuite/systemtap.examples/examples-index-gen.pl: Ditto.
* testsuite/systemtap.examples/general/eventcount.stp: Ditto.
* testsuite/systemtap.examples/memory/overcommit.stp: Ditto.
* testsuite/systemtap.examples/memory/vm.tracepoints.stp: Ditto.
* testsuite/systemtap.examples/network/tcp_init_cwnd.stp: Ditto.
* testsuite/systemtap.examples/profiling/graphcall.stp: Ditto.
* testsuite/systemtap.samples/tcptest.stp: Ditto.
* testsuite/systemtap.stress/conversions.stp: Ditto.

13 years agoFix 'version-control-internal-file' rpmlint errors in the testsuite.
David Smith [Fri, 20 May 2011 21:35:26 +0000 (16:35 -0500)]
Fix 'version-control-internal-file' rpmlint errors in the testsuite.

* systemtap.spec: Remove all '.gitignore' files from the testsuite
  directory.

13 years agoFix 'version-control-internal-file' rpmlint error by removing .cvsignore files.
David Smith [Fri, 20 May 2011 18:12:41 +0000 (13:12 -0500)]
Fix 'version-control-internal-file' rpmlint error by removing .cvsignore files.

* man/.cvsignore: Remove old cvs file.
* testsuite/.cvsignore: Ditto.
* testsuite/systemtap.syscall/.cvsignore: Ditto.

13 years agoFix 'spurious-executable-perm' rpmlint warning.
David Smith [Fri, 20 May 2011 18:02:48 +0000 (13:02 -0500)]
Fix 'spurious-executable-perm' rpmlint warning.

* testsuite/systemtap.examples/io/inodewatch.meta: Make non-executable.
* testsuite/systemtap.examples/io/inodewatch2.meta: Ditto.

13 years agoFix 'invalid-license' rpmlint error on sdt-devel subpackage.
David Smith [Fri, 20 May 2011 17:48:39 +0000 (12:48 -0500)]
Fix 'invalid-license' rpmlint error on sdt-devel subpackage.

* systemtap.spec: Fixed multiple license text on sdt-devel subpackage.

13 years agospec/initscripts: fix some rpmlint (fedora autoqa) warnings
Frank Ch. Eigler [Fri, 20 May 2011 17:44:54 +0000 (13:44 -0400)]
spec/initscripts: fix some rpmlint (fedora autoqa) warnings

* initscript/stap-server.in, systemtap.in: Add some LSB comments.
  Standardize spellings, specify description.
* systemtap.spec: Add (noreplace) to /var/log/stap-server/log.

13 years agoFix 'incorrect-fsf-address' rpmlint errors.
David Smith [Fri, 20 May 2011 14:10:14 +0000 (09:10 -0500)]
Fix 'incorrect-fsf-address' rpmlint errors.

* COPYING: Updated to latest FSF version with updated address.
* doc/SystemTap_Beginners_Guide/en-US/Legal_Notice.xml: Updated FSF
  address.
* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Ditto.
* doc/Tapset_Reference_Guide/en-US/Legal_Notice.xml: Ditto.
* doc/Tapset_Reference_Guide/publicanize.sh: Ditto.
* aclocal.m4: Instead of using the FSF's address, just reference
  <http://www.gnu.org/licenses/> (which is the FSF's latest
  recommendation).
* config.guess: Ditto.
* config.sub: Ditto.
* hash.cxx: Ditto.
* mdfour.c: Ditto.
* mdfour.h: Ditto.
* nsscommon.cxx: Ditto.
* pcp/GNUmakefile.in: Ditto.
* pcp/config.guess: Ditto.
* pcp/config.sub: Ditto.
* pcp/install-sh: Ditto.
* pcp/src/GNUmakefile.in: Ditto.
* pcp/src/include/builddefs.in: Ditto.
* pcp/src/pmdas/logger/GNUmakefile.in: Ditto.
* pcp/src/pmdas/logger/Install: Ditto.
* pcp/src/pmdas/logger/Remove: Ditto.
* pcp/src/pmdas/logger/event.c: Ditto.
* pcp/src/pmdas/logger/event.h: Ditto.
* pcp/src/pmdas/logger/help: Ditto.
* pcp/src/pmdas/logger/logger.c: Ditto.
* pcp/src/pmdas/logger/pmns: Ditto.
* pcp/src/pmdas/logger/util.c: Ditto.
* pcp/src/pmdas/logger/util.h: Ditto.
* runtime/staprun/aclocal.m4: Ditto.
* runtime/staprun/modverify.c: Ditto.
* runtime/staprun/stap_merge.c: Ditto.
* runtime/staprun/stap_merge.tcl: Ditto.
* runtime/staprun/stapio.c: Ditto.
* runtime/staprun/staprun.c: Ditto.
* runtime/transport/relay_v2.c: Ditto.
* runtime/uprobes/uprobes.c: Ditto.
* runtime/uprobes/uprobes.h: Ditto.
* runtime/uprobes/uprobes_i386.c: Ditto.
* runtime/uprobes/uprobes_i386.h: Ditto.
* runtime/uprobes/uprobes_ppc.c: Ditto.
* runtime/uprobes/uprobes_ppc.h: Ditto.
* runtime/uprobes/uprobes_s390.c: Ditto.
* runtime/uprobes/uprobes_s390.h: Ditto.
* runtime/uprobes/uprobes_x86.c: Ditto.
* runtime/uprobes/uprobes_x86.h: Ditto.
* runtime/uprobes/uprobes_x86_64.c: Ditto.
* runtime/uprobes/uprobes_x86_64.h: Ditto.
* runtime/uprobes2/uprobes.c: Ditto.
* runtime/uprobes2/uprobes.h: Ditto.
* runtime/uprobes2/uprobes_x86.c: Ditto.
* runtime/uprobes2/uprobes_x86.h: Ditto.
* stap-authorize-cert.cxx: Ditto.
* stap-gen-cert.cxx: Ditto.
* stap-serverd.cxx: Ditto.
* stap-sign-module.cxx: Ditto.
* staplog.c: Ditto.
* testsuite/systemtap.examples/io/iotime.stp: Ditto.
* testsuite/systemtap.examples/locks/bkl.stp: Ditto.
* testsuite/systemtap.examples/locks/bkl_stats.stp: Ditto.
* testsuite/systemtap.examples/process/sleeptime.stp: Ditto.
* testsuite/systemtap.examples/process/wait4time.stp: Ditto.
* testsuite/systemtap.printf/stap_merge.tcl: Ditto.
* util.cxx: Ditto.

13 years agoFix PR12781 by speeding up __stp_utrace_task_finder_target_syscall_entry().
David Smith [Thu, 19 May 2011 22:06:02 +0000 (17:06 -0500)]
Fix PR12781 by speeding up __stp_utrace_task_finder_target_syscall_entry().

* runtime/task_finder.c (__stp_utrace_task_finder_target_syscall_entry):
  Only call the {MMAP,MMAP2,MPROTECT,MUNMAP}_SYSCALL_NO() macros once.

13 years agoFix PR12785 by allowing init/systemd (pid 1) to be traced.
David Smith [Thu, 19 May 2011 21:58:16 +0000 (16:58 -0500)]
Fix PR12785 by allowing init/systemd (pid 1) to be traced.

* runtime/task_finder.c (stap_utrace_detach): Allow init (pid 1) to be
  traced.
  (__stp_utrace_attach): Ditto.
  (__stp_utrace_attach_match_tsk): Ditto.
  (__stp_utrace_task_finder_report_exec): Ditto.

13 years agoRHBZ706185: port softirq.* probe points back to rhel5 tracepoints
Bryn Reeves [Thu, 19 May 2011 17:56:05 +0000 (13:56 -0400)]
RHBZ706185: port softirq.* probe points back to rhel5 tracepoints

13 years agoFix pipe paths in the logger PMDA.
David Smith [Wed, 18 May 2011 15:32:56 +0000 (10:32 -0500)]
Fix pipe paths in the logger PMDA.

* pcp/src/pmdas/logger/event.c (event_create): Handle non-blocking reads.
* pcp/src/pmdas/logger/util.c (start_cmd): Close the correct side of the
  pipe in the parent process.

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
David Smith [Wed, 18 May 2011 15:27:47 +0000 (10:27 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

13 years agoMerge remote-tracking branch 'nathans/master'
David Smith [Wed, 18 May 2011 15:23:02 +0000 (10:23 -0500)]
Merge remote-tracking branch 'nathans/master'

13 years agoMake sure that sigaction always starts zeroed
Josh Stone [Tue, 17 May 2011 20:38:49 +0000 (13:38 -0700)]
Make sure that sigaction always starts zeroed

On some systems, stapsh's child process was getting automatically
reaped, which caused an error when we tried to waitpid().  This was
because we weren't fully zeroing the sigaction, so sa_flags was
uninitialized (and happened to contain SA_NOCLDWAIT).

This patch sprinkles memset-0 on sigactions throughout.

13 years agoEnsure client-side certificate database files are readable by all.
Dave Brolley [Tue, 17 May 2011 17:57:26 +0000 (13:57 -0400)]
Ensure client-side certificate database files are readable by all.

13 years agoPR12211: fix badname demo with read-only mounts
Frank Ch. Eigler [Tue, 17 May 2011 13:31:43 +0000 (09:31 -0400)]
PR12211: fix badname demo with read-only mounts

* testsuite/systemtap.examples/general/badname.meta: Use a /tmp file again.

13 years agoPR12211: rework testsuite with failed-subtask tolerance
Frank Ch. Eigler [Tue, 17 May 2011 10:53:34 +0000 (06:53 -0400)]
PR12211: rework testsuite with failed-subtask tolerance

After PR12211, a "stap -c CMD" run where the CMD fails (rc != 0)
now results in an overall stap failure.  This is undesirable with
some of the example scripts that use failed CMDs.

* systemtap.examples/general/para-callgraph-verbose.meta (test_installcheck):
  Add a "|| true" to the sh -c command string to ensure CMD is deemed to
  succeed.
* systemtap.examples/general/para-callgraph.meta: Ditto.
* systemtap.examples/process/noptrace.meta: Ditto.

13 years agoexample: make badname demo work with euid=0
Frank Ch. Eigler [Tue, 17 May 2011 10:50:45 +0000 (06:50 -0400)]
example: make badname demo work with euid=0

The stap testsuite may be run under euid=0, so make sure the
test triggers the name filtering.

* sysadmin.examples/general/badname.stp: Drop euid()==0 filtering.
  Use a more specific file name substring, to prevent accidental
  interference with host system during testsuite.
* sysadmin.examples/general/badname.meta: Adjust accordingly.

13 years agoSTP_USE_RING_BUFFER: #include <asm/local.h>
Frank Ch. Eigler [Tue, 17 May 2011 10:37:20 +0000 (06:37 -0400)]
STP_USE_RING_BUFFER: #include <asm/local.h>

At some point, this became necessary on modern kernels to
build the transport/ring_buffer.c code.  Tested on 2.6.34 f13.

* runtime/transport/ring_buffer.c: #include <asm/local.h>

13 years agoGuard avahi in stap_serverd_LDADD with HAVE_AVAHI
Josh Stone [Sat, 14 May 2011 17:37:46 +0000 (10:37 -0700)]
Guard avahi in stap_serverd_LDADD with HAVE_AVAHI

Don't include avahi libs in the stap_serverd link line if we're not
actually building with avahi.  Also, autoreconf everything with F14.

13 years agoPR12729: make childprocess spawning/waitpid both -vv verbose
Frank Ch. Eigler [Sat, 14 May 2011 15:26:17 +0000 (11:26 -0400)]
PR12729: make childprocess spawning/waitpid both -vv verbose

With recent code, -vv was enough to get a "Running ...." message for
child processes of the translator, but not their "Spawn waitpid ..."
return codes.  That required -vvv.  Make them consistent.

* util.cxx (stap_waitpid): Report at verbosity > 1.

13 years ago--ldd: turn bad-interpreter findings into warnings
Frank Ch. Eigler [Sat, 14 May 2011 14:50:54 +0000 (10:50 -0400)]
--ldd: turn bad-interpreter findings into warnings

A semantic_error is too heavy.  We can just skip the --ldd processing
for these binaries and move on.

* dwflpp.cxx (iterate_over_libraries): Print (suppressible) warning
  instead of throwing a semantic_error if the module interpreter is
  not in our whitelist.

13 years ago--ldd: improve error handling
Frank Ch. Eigler [Sat, 14 May 2011 14:49:43 +0000 (10:49 -0400)]
--ldd: improve error handling

* translate.cxx (add_unwindsym_ldd): Use delete, not free() on c++ object.
  (prepare_translate_pss): Add an exception catch around prepare_symbol_data()

13 years agoshutdown hangs: offer option -DSTAP_OVERRIDE_STUCK_CONTEXT
Frank Ch. Eigler [Fri, 13 May 2011 17:17:02 +0000 (13:17 -0400)]
shutdown hangs: offer option -DSTAP_OVERRIDE_STUCK_CONTEXT

Sometimes stuff happens to probe handlers, and they refuse to clean up
cleanly (resetting their contexts to non-busy state).  This can cause
module shutdowns to hang with a busy-waiting stapio.  This patch lets
a user override the infinite loop with -DSTAP_OVERRIDE_STUCK_CONTEXT
to let the module be cleaned up.  Without that set, at least the
infinite loop is made to spin less tightly.

* translate.cxx (c_unparser::emit_module_exit): Hang looser
  upon stuck contexts.

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Stan Cox [Fri, 13 May 2011 15:03:54 +0000 (11:03 -0400)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

13 years agodwflpp::translate_final_fetch_or_store enumeration_types are always scalar.
Mark Wielaard [Fri, 13 May 2011 14:59:08 +0000 (16:59 +0200)]
dwflpp::translate_final_fetch_or_store enumeration_types are always scalar.

No need to check DW_AT_encoding for DW_TAG_enumeration_type
(they don't have any).

13 years agoBuild PPC Postgres sdt with 'nr' constraint
Stan Cox [Fri, 13 May 2011 14:58:23 +0000 (10:58 -0400)]
Build PPC Postgres sdt with 'nr' constraint

* postgres.exp (stap-postgres.sh):  Add -DSTAP_SDT_ARG_CONSTRAINT=nr

13 years agoPPC requires prepare_section_rejection mod parameter.
Stan Cox [Fri, 13 May 2011 13:40:19 +0000 (09:40 -0400)]
PPC requires prepare_section_rejection mod parameter.

* tapsets.cxx (symbol_table::read_from_text_file): Keep mod but mark it unused.

13 years agoRevert "pmwebapi: prototype pcp web api daemon"
Frank Ch. Eigler [Fri, 13 May 2011 11:36:33 +0000 (07:36 -0400)]
Revert "pmwebapi: prototype pcp web api daemon"

Removing the pmwebapi prototype from stap git; it's moved to
git://oss.sgi.com/fche/pcp.git

13 years agoruntime/autoconf: gcc 4.6 fix false -Werror positives
Frank Ch. Eigler [Thu, 12 May 2011 23:53:30 +0000 (19:53 -0400)]
runtime/autoconf: gcc 4.6 fix false -Werror positives

gcc 4.6 generates more warnings, which made some runtime/autoconf
tests falsely fail.  The worst example of this was a crash in the
context.exp test case (due to false negative STAPCONF_WALK_STACK).
This patch adds some dummy code to the tests to make the warnings
go away, and thus let the tests pass even with -Werror.

13 years agoSilence stap's signal handler
Josh Stone [Thu, 12 May 2011 21:40:08 +0000 (14:40 -0700)]
Silence stap's signal handler

It might be nice to print a signal diagnostic in more verbose modes, but
we don't know the session's verbose flag at that point.  So, keep quiet.

* main.cxx (handle_interrupt): Don't brag about signals.

13 years agoInclude the date & time in all compile server log messages.
Dave Brolley [Thu, 12 May 2011 20:39:02 +0000 (16:39 -0400)]
Include the date & time in all compile server log messages.

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