]> sourceware.org Git - systemtap.git/log
systemtap.git
13 years agoMove the stapgraph man page to the correct rpm.
David Smith [Fri, 15 Jul 2011 20:16:41 +0000 (15:16 -0500)]
Move the stapgraph man page to the correct rpm.

* systemtap.spec: Move the stapgraph man page to the systemtap-grapher
  sub-rpm.

13 years agoPR 13001 - !HAVE_NSS build failures
Dave Brolley [Fri, 15 Jul 2011 18:42:15 +0000 (14:42 -0400)]
PR 13001 - !HAVE_NSS build failures

Fix the immediate errors.

13 years agoserver_locale.exp: Fixed env setting
Chris Meek [Fri, 15 Jul 2011 15:59:07 +0000 (11:59 -0400)]
server_locale.exp: Fixed env setting

server_locale.exp no longer changes dejagnu's own env vars, only stap's

13 years agoPR12890 cont'd: Added 3 test cases
Chris Meek [Fri, 15 Jul 2011 15:23:09 +0000 (11:23 -0400)]
PR12890 cont'd: Added 3 test cases

1. Basic Stap call
2. Direct Staprun call without -R
3. Direct Staprun call with -R

13 years agotestsuite: more environment setup
Frank Ch. Eigler [Fri, 15 Jul 2011 15:24:27 +0000 (11:24 -0400)]
testsuite: more environment setup

Unload uprobes at beginning to make sure we exercise that
part too.  Set LANG=C for the runtest process hierarchy.

13 years agoCreate dropped file with mode 0400 in relay_v2.c to make it not world readable.
Mark Wielaard [Fri, 15 Jul 2011 15:06:52 +0000 (17:06 +0200)]
Create dropped file with mode 0400 in relay_v2.c to make it not world readable.

13 years agoDocument stp control channel command values under runtime/transport.
Mark Wielaard [Fri, 15 Jul 2011 13:11:41 +0000 (15:11 +0200)]
Document stp control channel command values under runtime/transport.

13 years agostaprun: Only rename the script module, not uprobes
Josh Stone [Thu, 14 Jul 2011 21:03:55 +0000 (14:03 -0700)]
staprun: Only rename the script module, not uprobes

* runtime/staprun/staprun_funcs.c (insert_module): Compare the current
  module to the global modpath to decide if this is one to rename.

13 years agoMerge branch 'master' of git://sourceware.org/git/systemtap
Lukas Berk [Thu, 14 Jul 2011 16:18:07 +0000 (12:18 -0400)]
Merge branch 'master' of git://sourceware.org/git/systemtap

13 years agoAdd cast to function to avoid return check error
Lukas Berk [Thu, 14 Jul 2011 16:14:42 +0000 (12:14 -0400)]
Add cast to function to avoid return check error

* runtime/staprun/staprun.c : add (void) cast

13 years agoUpdate server_locale.exp with newly expected messages.
Dave Brolley [Thu, 14 Jul 2011 15:16:56 +0000 (11:16 -0400)]
Update server_locale.exp with newly expected messages.

13 years agoMerge branch 'master' of git://sourceware.org/git/systemtap
Lukas Berk [Thu, 14 Jul 2011 14:13:45 +0000 (10:13 -0400)]
Merge branch 'master' of git://sourceware.org/git/systemtap

13 years agoRemove unused variable shdr
Lukas Berk [Thu, 14 Jul 2011 14:08:22 +0000 (10:08 -0400)]
Remove unused variable shdr

* runtime/staprun/staprun_funcs.c : removed shdr variable

13 years agoruntime: correct reference to undefined i18n text variable
Frank Ch. Eigler [Thu, 14 Jul 2011 13:37:24 +0000 (09:37 -0400)]
runtime: correct reference to undefined i18n text variable

13 years agoMove non-common items out of nsscommon.cxx and into cscommon.cxx, csclient.cxx and...
Dave Brolley [Wed, 13 Jul 2011 18:46:09 +0000 (14:46 -0400)]
Move non-common items out of nsscommon.cxx and into cscommon.cxx, csclient.cxx and stap-serverd.cxx.

13 years agoupdate-po
Frank Ch. Eigler [Wed, 13 Jul 2011 21:16:46 +0000 (17:16 -0400)]
update-po

13 years agousage message: fix missing \n before --tmpdir=FOO
Frank Ch. Eigler [Wed, 13 Jul 2011 21:16:02 +0000 (17:16 -0400)]
usage message: fix missing \n before --tmpdir=FOO

13 years agostap-serverd.cxx: fix memory and resource leaks
Petr Muller [Wed, 13 Jul 2011 16:41:47 +0000 (18:41 +0200)]
stap-serverd.cxx: fix memory and resource leaks

While playing with cppcheck tool, I found few resource leaks in stap-serverd.cxx:
- handleRequest: arg was not freed if opening/reading argfile failed
- handleRequest: argfile was not fclosed when reading from it failed
- spawn_and_wait: dotfd was not closed if chdir fails (macro expanded to accomodate resource release)
- spawn_and_wait: cleaned some whitespace up around the fix itself

13 years agoPR12890 remote: Heed the capabilities of the other side
Josh Stone [Wed, 13 Jul 2011 20:46:29 +0000 (13:46 -0700)]
PR12890 remote: Heed the capabilities of the other side

If the remote side is < 1.6, then it won't know staprun -R, so we'll
have to live without module renaming on that host.

* buildrun.cxx (make_run_command): Add a version parameter, defaulted to
  the current VERSION.  Don't add -R unless >= 1.6.
* remote.cxx (stapsh::set_child_fds): Save the handshake version.
  (stapsh::start): Pass the remote's version to make_run_command.
  (ssh_legacy_remote::start): Pass version 1.3 to make_run_command,
  treating all "legacy" hosts as somewhat old.

13 years agoPR12998: improve error messages for stapusr-only invocations
Frank Ch. Eigler [Wed, 13 Jul 2011 17:59:37 +0000 (13:59 -0400)]
PR12998: improve error messages for stapusr-only invocations

* session.h (automatic_server_mode): New field.
* session.cxx (check_options): Set it.
* main.cxx (passes_0_4): Give better error messages.
* csclient.cxx (passes_0_4): Ditto.

13 years agoPR12890 con't: Added news and man page entry
Chris Meek [Wed, 13 Jul 2011 17:26:35 +0000 (13:26 -0400)]
PR12890 con't: Added news and man page entry

13 years agoconfigury: Regenerate under F15 tools. Add AC_LANG_SOURCE().
Frank Ch. Eigler [Wed, 13 Jul 2011 17:12:57 +0000 (13:12 -0400)]
configury: Regenerate under F15 tools.  Add AC_LANG_SOURCE().

13 years agoPR12890 cont'd: autoconf elfutils usage in staprun
Frank Ch. Eigler [Wed, 13 Jul 2011 17:07:52 +0000 (13:07 -0400)]
PR12890 cont'd: autoconf elfutils usage in staprun

* configure.ac, Makefile.am: Look for system elfutils.
  Check for modern enough version (0.142+), set HAVE_ELF_GETSHDRSTRNDX.
* staprun_funcs.c (rename_module): Conditionally stub out.
* common.c (usage): Conditionally bury -R flag.
* staprun.cxx (init_staprun): Avoid advising people who can't to use -R.
* configure, config.in, aclocal.m4, Makefile.in: Regenerated on F15.

13 years agotweak comment in get_rawdata usage
Frank Ch. Eigler [Wed, 13 Jul 2011 15:07:03 +0000 (11:07 -0400)]
tweak comment in get_rawdata usage

13 years agoPR12890: Renaming modules in Staprun
Chris Meek [Wed, 13 Jul 2011 14:31:47 +0000 (10:31 -0400)]
PR12890: Renaming modules in Staprun

common.c
    Added '-R' option to staprun. This will instruct
    staprun to automatically rename the module.

buildrun.cxx
    Added '-R' to the options passed to staprun.

staprun_funcs.c
    Added rename_module() function to rename the module,
    When requested. This is called in insert_module().

staprun.c
    Replaced the module name in the arguments list
    passed to stapio with the renamed module name,
    if renamed.

session.cxx
    Added modname_given variable to keep track of whether
    stap was called with '-m'.

13 years agostapsh: Check staprun X_OK and increase error verbosity
Josh Stone [Tue, 12 Jul 2011 19:08:46 +0000 (12:08 -0700)]
stapsh: Check staprun X_OK and increase error verbosity

* runtime/staprun/stapsh.c (do_run): Explicitly check that we have
  execute permissions on staprun before spawning, so we can give a
  better error message than just a non-zero status code.
* remote.cxx (stapsh::send_file): Report errors with any verbosity.
  (stapsh::start): Report errors with any verbosity, and close handles
  on failure so we don't try to wait for further activity.

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.

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