]> sourceware.org Git - systemtap.git/log
systemtap.git
8 years agoDon't use cleanup_and_exit() to exit monitor mode.
Felix Lu [Thu, 17 Mar 2016 20:39:00 +0000 (16:39 -0400)]
Don't use cleanup_and_exit() to exit monitor mode.

This usage was causing a kernel crash so we are forced
to use SIGINT in the meantime.

8 years agoDon't signal warning if script is exited immediately in monitor mode.
Felix Lu [Wed, 16 Mar 2016 13:44:35 +0000 (09:44 -0400)]
Don't signal warning if script is exited immediately in monitor mode.

8 years agoFix PR19812 by translating vpid to host namespace pid.
Martin Cermak [Wed, 16 Mar 2016 13:26:10 +0000 (14:26 +0100)]
Fix PR19812 by translating vpid to host namespace pid.

Docker containers can use virtual pids, which need to get mapped to
host namespace pid in order to get the userspace probing working.

If the container is run with docker run --pid=host, then it uses
the host namespace pids and this translation is unnecessary.

8 years agoPR13608: poll checking if the stap server started
Abegail Jakop [Tue, 15 Mar 2016 20:08:20 +0000 (16:08 -0400)]
PR13608: poll checking if the stap server started

systemtap.exp: in proc setup_server, instead of sleeping for 1 second
between starting the server and checking if it started, which
sometimes fails on rhel7, wait and poll whether the stap server has
started.

8 years agoPR13608: test compile server request size options
Abegail Jakop [Tue, 8 Mar 2016 22:50:34 +0000 (17:50 -0500)]
PR13608: test compile server request size options

test --max-request-size and --max-compressed-request options

8 years agoPR13608: fixed comments and docs to make more sense
Abegail Jakop [Tue, 8 Mar 2016 19:11:43 +0000 (14:11 -0500)]
PR13608: fixed comments and docs to make more sense

8 years agoPR13608: --max-compressed-request documentation
Abegail Jakop [Thu, 3 Mar 2016 17:52:18 +0000 (12:52 -0500)]
PR13608:  --max-compressed-request documentation

updated the man page and the stap-server command to list the
--max-compress-request size option.

8 years agoPR13608: remove extra log message
Abegail Jakop [Tue, 1 Mar 2016 23:01:49 +0000 (18:01 -0500)]
PR13608: remove extra log message

don't need to log the result of the unzip -Zt command anymore.

8 years agoPR13608: --max-compressed-request ## server option
Abegail Jakop [Tue, 1 Mar 2016 21:14:27 +0000 (16:14 -0500)]
PR13608: --max-compressed-request ## server option

add --max-compressed-request compile server option that takes a value
for the maximum compressed client request size allowed in bytes. The
default, if this option is not used is 5000 bytes.

8 years agoPR13608: perform client request size check earlier
Abegail Jakop [Tue, 1 Mar 2016 18:30:51 +0000 (13:30 -0500)]
PR13608: perform client request size check earlier

move the compressed client request size check from check_request_size()
to readDataFromSocket() which will check the expected request size
before the request transmits. Then rename check_request_size()
to be more specific, so check_uncompressed_request_size(). Default
max compressed request size if 5000 bytes.

8 years agoPR13608: add documentation for --max-request-size
Abegail Jakop [Thu, 25 Feb 2016 21:09:39 +0000 (16:09 -0500)]
PR13608: add documentation for --max-request-size

Update the stap-server man page and the stap-server command to
include information on the --max-request-size option.

8 years agoPR13608: add --max-request-size ## option for server
Abegail Jakop [Thu, 25 Feb 2016 20:28:33 +0000 (15:28 -0500)]
PR13608: add --max-request-size ## option for server

Add an option in the stap server to set the max (uncompressed)
request size in bytesreceived from the client. If it's not set,
the default max request size is 50KB. Then the max compressed
request size is set to be 10% of the max uncompressed size, making
the default 5KB.

8 years agoPR13608: check size of uncompressed client request
Abegail Jakop [Tue, 23 Feb 2016 23:13:37 +0000 (18:13 -0500)]
PR13608: check size of uncompressed client request

stap-serverd.cxx: using unzip, check if the client's request size is
reasonable, so between 0B and 100KB.

8 years agoPR13608: check client's zipped request size
Abegail Jakop [Tue, 23 Feb 2016 19:30:10 +0000 (14:30 -0500)]
PR13608: check client's zipped request size

stap-serverd.cxx: on the compile server, when receiving a client
request, check that the zipped request size is not too large (>5KB).

8 years agoRun update-syscalls-docs before update-docs
Felix Lu [Mon, 14 Mar 2016 18:12:37 +0000 (14:12 -0400)]
Run update-syscalls-docs before update-docs

8 years agoRename documentation update scripts for clarity
Felix Lu [Mon, 14 Mar 2016 17:46:58 +0000 (13:46 -0400)]
Rename documentation update scripts for clarity

The script names were confusing before this rename.

8 years agoAdd 32-bit compile fix in interactive.cxx.
David Smith [Mon, 14 Mar 2016 14:54:29 +0000 (09:54 -0500)]
Add 32-bit compile fix in interactive.cxx.

8 years agoPreserve the working directory within the test.
Martin Cermak [Mon, 14 Mar 2016 07:39:22 +0000 (08:39 +0100)]
Preserve the working directory within the test.

Test must not change the working directory.  Without this update,
when target_compile() failed, test finished with working directory
set to $tmpdir instead of $curdir breaking all subsequent tests:

=====
Running ./systemtap.base/utrace_syscall_args.exp ...
UNTESTED: 64_BIT_UTRACE_SYSCALL_ARGS
Running ./systemtap.base/valid_pid.exp ...
ERROR: ./systemtap.base/valid_pid.exp does not exist.
...
=====

8 years agoExit documentation generator script early on error.
Felix Lu [Fri, 11 Mar 2016 19:26:10 +0000 (14:26 -0500)]
Exit documentation generator script early on error.

8 years agoUpdate tapset documentation
Felix Lu [Fri, 11 Mar 2016 19:06:55 +0000 (14:06 -0500)]
Update tapset documentation

Some man pages are replaced by the function overloading changes.

8 years agoFixed PR19799 by making deleting from aggregate arrays more reliable.
David Smith [Fri, 11 Mar 2016 18:36:18 +0000 (12:36 -0600)]
Fixed PR19799 by making deleting from aggregate arrays more reliable.

* runtime/pmap-gen.c (_stp_pmap_del): Be sure to delete keys from all
  cpu's maps.
* runtime/map-gen.c (_stp_map_del_hash): New function.
* testsuite/systemtap.maps/agg_delete.exp: New test case.
* testsuite/systemtap.maps/agg_delete1.stp: Ditto.
* testsuite/systemtap.maps/agg_delete2.stp: Ditto.

8 years agoRemove duplicate entries for generated tapset cross references
Felix Lu [Fri, 11 Mar 2016 15:49:46 +0000 (10:49 -0500)]
Remove duplicate entries for generated tapset cross references

8 years agoFix some copy paste typos
Felix Lu [Fri, 11 Mar 2016 15:27:52 +0000 (10:27 -0500)]
Fix some copy paste typos

8 years agoThe -g flag was not added so the testcase failed
Felix Lu [Fri, 11 Mar 2016 14:20:32 +0000 (09:20 -0500)]
The -g flag was not added so the testcase failed

8 years agoAdd backwards compatible tapset functions following function overloading
Felix Lu [Thu, 10 Mar 2016 21:58:26 +0000 (16:58 -0500)]
Add backwards compatible tapset functions following function overloading
changes.

8 years agoUse function overloading in some tapset functions
Felix Lu [Wed, 9 Mar 2016 14:22:40 +0000 (09:22 -0500)]
Use function overloading in some tapset functions

Documentation for overloaded functions are now merged into
one entry. Some tapset functions are now simplified through
overloading. Instead of having new function names with suffixes
such as "2" or "pid" to indicate extra arguments, the functions
now seem to have optional arguments.

* doc/SystemTap_Tapset_Reference/overload.py: New script to resolve
documentation for overloaded functions.
* tapset/*: Rename some functions.
* testsuite/*: Rename functions in tests.

8 years agoexamples: tweak .meta files
Frank Ch. Eigler [Sat, 5 Mar 2016 01:03:14 +0000 (20:03 -0500)]
examples: tweak .meta files

Added some overlooked fun .meta's for jistone's old key*.stp examples;
removed unnecessarily-unique organizational keywords from other examples.

8 years agotapset: use @cast() with "kernel<...>" part for tcphdr
Frank Ch. Eigler [Fri, 4 Mar 2016 23:43:11 +0000 (18:43 -0500)]
tapset: use @cast() with "kernel<...>" part for tcphdr

This allows netfilter tcp probes to use the tcp.stp tapset functions
without debuginfo.

8 years agonew sample: network/who_sent_it
Frank Ch. Eigler [Fri, 4 Mar 2016 16:51:35 +0000 (11:51 -0500)]
new sample: network/who_sent_it

This traces threads sending out ip network traffic to given hosts and/or ports.

8 years agoPermit stap -G parameter values to contain .
Frank Ch. Eigler [Fri, 4 Mar 2016 16:49:59 +0000 (11:49 -0500)]
Permit stap -G parameter values to contain .

The kernel doesn't mind, and has no security implications,
so extend the -G var=value regexp slightly.

8 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
David Smith [Fri, 4 Mar 2016 15:44:00 +0000 (09:44 -0600)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

8 years agoFix PR19764: stap --tmpdir leaves useless tempdirs behind
Martin Cermak [Fri, 4 Mar 2016 15:43:10 +0000 (16:43 +0100)]
Fix PR19764: stap --tmpdir leaves useless tempdirs behind

Remove call to create_tmp_dir() from the main systemtap_session
constructor and call it slightly later, after the cmdline parsing
is finished.  Plus modify create_tmp_dir() so that it only creates
the tmpdir if --tmpdir has not been set on the cmdline.

8 years agoMake "monitor" mode working with "interactive" mode.
David Smith [Fri, 4 Mar 2016 15:42:34 +0000 (09:42 -0600)]
Make "monitor" mode working with "interactive" mode.

* interactive.cxx (forked_parse_pass): Make sure "monitor" mode is off
  while running the parser. Otherwise we can end up with multiple copies
  of the monitor synthetic probes.
  (forked_semantic_pass): Ditto.
  (interactive_mode): Make sure "monitor" mode is off while dumping probe
  types.

8 years agoMake utrace_syscall_args.exp pass when run on an NFS filesystem.
David Smith [Thu, 3 Mar 2016 19:58:56 +0000 (13:58 -0600)]
Make utrace_syscall_args.exp pass when run on an NFS filesystem.

* testsuite/systemtap.base/utrace_syscall_args.exp: Put all temporary
  files in a temporary directory and run the script from there. This makes
  the test pass when run from an NFS filesystem.

8 years agoMake sure the "dump" options can't be used with -i or --monitor.
David Smith [Thu, 3 Mar 2016 19:56:39 +0000 (13:56 -0600)]
Make sure the "dump" options can't be used with -i or --monitor.

* session.cxx (check_options): Make sure the dump options (-l/-L/--dump-*)
  can't be used with interactive mode (-i) or monitor mode (--monitor).
* testsuite/parseko/cmdline25.stp: New test.
* testsuite/parseko/cmdline26.stp: Ditto.

8 years agoUpdated testsuite/semok/thirtythree.stp for newer kernels.
David Smith [Thu, 3 Mar 2016 14:43:49 +0000 (08:43 -0600)]
Updated testsuite/semok/thirtythree.stp for newer kernels.

* testsuite/semok/thirtythree.stp: Updated for newer kernels. Kernel
  commit 1d798ca3f16437 removed the 'first_page' member of the 'page'
  struct.

8 years agoFixed PR19756 by updating tapset/linux/proc_mem.stp.
David Smith [Thu, 3 Mar 2016 14:35:55 +0000 (08:35 -0600)]
Fixed PR19756 by updating tapset/linux/proc_mem.stp.

* tapset/linux/proc_mem.stp (proc_mem_data): Updated for kernel commit
  8463833590, which reworked virtual memory accounting.
  (proc_mem_data_pid): Ditto.

8 years agotestsuite pyexample.py: make python2.6 compatible
Martin Cermak [Thu, 3 Mar 2016 07:46:43 +0000 (08:46 +0100)]
testsuite pyexample.py: make python2.6 compatible

8 years agoImprove test for STAP_NEXT macro
Felix Lu [Wed, 2 Mar 2016 17:38:22 +0000 (12:38 -0500)]
Improve test for STAP_NEXT macro

Check to make sure that STAP_NEXT returns immediately from function.

8 years agoIn interactive mode, run the user's script through -p2 after each change.
David Smith [Wed, 2 Mar 2016 19:27:53 +0000 (13:27 -0600)]
In interactive mode, run the user's script through -p2 after each change.

* interactive.cxx (auto_analyze_opt): Added new class to handle the
  "auto_analyze" option. If non-zero, the user's script is run through
  pass 2 after every command that modifies the script.
  (add_cmd::handler): Added logic to call forked_semantic_pass() if the
  auto_analyze option is set.
  (edit_cmd::handler): Ditto.
  (delete_cmd::handler): Ditto.
  (forked_semantic_pass): New function to run the user's script through
  pass 2.
  (interactive_mode): Add new "auto_analyze" option.

8 years agotestsuite celsius.py: make python2.6 compatible
Frank Ch. Eigler [Wed, 2 Mar 2016 18:52:59 +0000 (13:52 -0500)]
testsuite celsius.py: make python2.6 compatible

8 years agoFunction overloading embedded-C macro fix
Felix Lu [Wed, 2 Mar 2016 15:03:32 +0000 (10:03 -0500)]
Function overloading embedded-C macro fix

Branch to end label after setting next flag.
Add vim syntax highlighting for macro.

8 years agoPR18431: Add some tests and final fixes
Felix Lu [Tue, 1 Mar 2016 14:06:04 +0000 (09:06 -0500)]
PR18431: Add some tests and final fixes

* elaborate.cxx: typeresolution_info::visit_functioncall: Restore
  type variable on overload, prefix monitor mode function.
* parse.cxx: parser::do_parse_functiondecl: Improve exception message.
* translate.cxx: c_unparser::visit_functioncall:
  - Remove __label__
  - Emit gotos only if overloads present
* testsuite/systemtap.base/func_overload.exp: Test it.

8 years agoPR18431: Function overloading
Felix Lu [Tue, 23 Feb 2016 20:38:00 +0000 (15:38 -0500)]
PR18431: Function overloading

A functioncall may now have a variety of implementations
and have the selection happen during runtime. Overloading
by number of parameters during compile time is also
available.

* elaborate.cxx:
  - no_var_mutation_during_iteration_check::visit_functioncall:
    Adapt to referents list.
  - symresolution_info::visit_functioncall: Likewise + sort functioncalls.
  - symresolution_info::find_function -> find_functions: Likewise.
  - void_statement_reducer::visit_functioncall: Likewise.
  - duplicate_function_remover::visit_functioncall: Likewise.
  - autocast_expanding_visitor::resolve_functioncall: Likewise.
  - typeresolution_info::visit_arrindex: Likewise.
  - get_functionsig: Use unmangled name.
* elaborate.h: find_function -> find_functions.
* main.cxx: Set parser user_file indicator flag.
* parse.cxx: Parser user_file flag, accept function declaration
  priority label syntax, remove duplicate function name checking,
  allow next in functions.
* parse.h: pf_user_file flag.
* common_probe_context.h: New "next" flag.
* session.h: New overload_count map for overload name resolution.
* staptree.cxx:
  - functioncall::functioncall: Remove referent initializer list.
  - functiondecl::functiondecl: Initialize default function priority.
  - functioncall_traversing_visitor::visit_functioncall:
    Adapt to referents list.
  - deep_copy_visitor::visit_functioncall: Likewise.
* staptree.h:
  - functioncall: Now holds list of referents.
  - functiondecl: New priority value.
  - function_priority_order: New functor for sorting.
* tapset-method.cxx: Adapt to referents list.
* tapsets.cxx: Adapt to referents list.
* parseko/eleven.stp: Invalidated.
* parseko/nineteen.stp: Invalidated.
* parseko/private02.stp: Invalidated.
* semko/fifty.stpL Invalidated.
* systemtap.base/optim_arridx.exp: Make compatible with overloading.
* translate.cxx:
  - c_unparser: New fc_counter to generate functioncall end labels.
  - c_unparser::emit_function: Reset context next flag, output STAP_NEXT
    macro.
  - c_unparser::visit_next_statement: Set context next flag, allow next
    in functions.
  - c_unparser::visit_functioncall: Main overloading logic.
  - recursion_info::visit_functioncall: Adapt to referents list.

8 years agoThe interactive mode "delete" command now deletes line ranges.
David Smith [Tue, 1 Mar 2016 22:08:49 +0000 (16:08 -0600)]
The interactive mode "delete" command now deletes line ranges.

* interactive.cxx (delete_cmd::handler): Add the capability of deleting a
  range of script lines.

8 years agoIf we receive a Ctrl-d in interactive mode, ask if we should quit.
David Smith [Tue, 1 Mar 2016 21:17:13 +0000 (15:17 -0600)]
If we receive a Ctrl-d in interactive mode, ask if we should quit.

* interactive.cxx (interactive_mode): Treat Ctrl-d at the prompt like a
  "quit" command (but ask first).

8 years agoImprove the interactive mode "add" command by prompting for more input.
David Smith [Tue, 1 Mar 2016 19:34:59 +0000 (13:34 -0600)]
Improve the interactive mode "add" command by prompting for more input.

* interactive.cxx (add_cmd::handler): If the user doesn't enter a complete
  function or probe definition on the command line, keep prompting him to
  do so. We know he's finished when the definition can be parsed without
  an error.
  (forked_parse_pass): New function.

8 years agoHandle imbedded spaces in the interactive mode command "add".
David Smith [Tue, 1 Mar 2016 16:23:16 +0000 (10:23 -0600)]
Handle imbedded spaces in the interactive mode command "add".

* interactive.cxx (add_cmd::handler): Use the raw input instead of the
  tokenized input, to preserve embedded spaces.

8 years agoKeep the "add" interactive command from crashing when passed no input.
David Smith [Mon, 29 Feb 2016 22:08:38 +0000 (16:08 -0600)]
Keep the "add" interactive command from crashing when passed no input.

* interactive.cxx (add_cmd::handler): Don't try to add empty string to the
  script.

8 years agotapset: prints* macros for printing stats arrays
Frank Ch. Eigler [Mon, 29 Feb 2016 20:25:09 +0000 (15:25 -0500)]
tapset: prints* macros for printing stats arrays

Extend commit bb4c40b8ddce to arrays.

* tapset/print_stats.stpm: Add prints[1-9] macros.
* parse.cxx (parser::slurp_pp1_param): Also track [ ] nesting
  when slurping macro parameters, as commas might appear in there
  that need to be relayed rather than interpreted as macro-param
  separators.
* testsuite/systemtap.printf/printf_stats.*: New test.

8 years agonew macro @prints
Orivej Desh [Tue, 23 Feb 2016 16:16:39 +0000 (11:16 -0500)]
new macro @prints

8 years agoAdd a note about the new interactive mode to NEWS.
David Smith [Mon, 29 Feb 2016 17:32:06 +0000 (11:32 -0600)]
Add a note about the new interactive mode to NEWS.

8 years agoBZ1312458: report missing debuginfo rpms
Frank Ch. Eigler [Mon, 29 Feb 2016 17:04:26 +0000 (12:04 -0500)]
BZ1312458: report missing debuginfo rpms

At some point (commit 1f35f4db), we lost the call to the rpm_finder
missing_rpm_list_print() call at the end of pass2.  It's baa-aack.

8 years agoAdd multiarch testing to testsuite/systemtap.base/callee.exp.
David Smith [Fri, 26 Feb 2016 19:32:27 +0000 (13:32 -0600)]
Add multiarch testing to testsuite/systemtap.base/callee.exp.

* testsuite/systemtap.base/callee.exp: Revamp test case to test all
  supported executable sizes on multiarch systems. Standardize on a
  4-character indent.

8 years agoAdd some better process cleanup in the testsuite.
David Smith [Thu, 25 Feb 2016 16:57:44 +0000 (10:57 -0600)]
Add some better process cleanup in the testsuite.

* testsuite/systemtap.base/stmtvars.exp: Make sure each "spawn" is
  followed by "catch {close}; catch {wait}".
* testsuite/systemtap.context/args.tcl: Ditto.
* testsuite/systemtap.context/backtrace.tcl: Ditto.
* testsuite/systemtap.context/num_args.tcl: Ditto.
* testsuite/systemtap.context/pid.tcl: Ditto.
* testsuite/systemtap.context/symfileline.tcl: Ditto.

8 years agoFix the caller.exp testcase for ppc64.
David Smith [Thu, 25 Feb 2016 14:58:36 +0000 (08:58 -0600)]
Fix the caller.exp testcase for ppc64.

* testsuite/systemtap.base/caller.exp: On ppc64, expect system_call() as
  the caller, since vfs_write() can get inlined.

8 years agoFix the threadstacks.stp example and testcase for ppc64.
David Smith [Wed, 24 Feb 2016 22:10:16 +0000 (16:10 -0600)]
Fix the threadstacks.stp example and testcase for ppc64.

* testsuite/systemtap.examples/process/threadstacks.stp: Add ppc64 support
  by also probing "/lib*/*/libpthread.so.*", since RHEL7 ppc64 puts the
  pthread library in /lib64/power8/.
* testsuite/systemtap.base/pthread_stacks.exp: Choose the new stack size
  based on architecture, since 0x10000 is invalid for ppc64.

8 years agoUpdate 2 test cases to work on ppc64, which can inline vfs_{read,write}.
David Smith [Wed, 24 Feb 2016 19:02:55 +0000 (13:02 -0600)]
Update 2 test cases to work on ppc64, which can inline vfs_{read,write}.

* testsuite/systemtap.base/onoffprobe.stp: Switch from probing the return
  of vfs_write() (which can be inlined) to probing the return of
  syscall.write.
* testsuite/systemtap.base/listing_mode_sanity.exp: Make sure we use
  '.call' when listing kernel.function("vfs_read"), since on some kernels
  that function can be inlined.

8 years agoGet more passes in semok.exp and semko.exp on ppc64.
David Smith [Wed, 24 Feb 2016 17:14:41 +0000 (11:14 -0600)]
Get more passes in semok.exp and semko.exp on ppc64.

* dwflpp.cxx (build_kernel_blacklist): Add ppc64-specific
  include/asm/io-defs.h file to the blacklist.
* testsuite/systemtap.pass1-4/semko.exp: Make sure vfs_read() doesn't have
  an inlined version before running twentytwo.stp.
* testsuite/systemtap.pass1-4/semok.exp (dyninst_kfails): Check for plt
  probe support before running plt[12].stp.

8 years agoAlign man/cs content to commit 3d7e77590 (PR15775).
Martin Cermak [Wed, 24 Feb 2016 10:27:38 +0000 (11:27 +0100)]
Align man/cs content to commit 3d7e77590 (PR15775).

* man/cs/stap.1.in: Removed RELAY_{HOST,GUEST} mention.
* man/cs/systemtap.8.in: Ditto.

8 years agoPR19700: build fix on gentoo
Orivej Desh [Tue, 23 Feb 2016 19:57:28 +0000 (14:57 -0500)]
PR19700: build fix on gentoo

... where modified /bin/dash doesn't speak 'echo -n'.

8 years agoFix rawhide compile problems in aux_syscalls.stp.
David Smith [Tue, 23 Feb 2016 19:23:14 +0000 (13:23 -0600)]
Fix rawhide compile problems in aux_syscalls.stp.

* tapset/linux/aux_syscalls.stp (_stp_siginfo_u): Removed extra "break"
  statements that gcc version 6 complains about on rawhide.
  (_stp_compat_siginfo_u): Ditto.

8 years agoFix PR15775 by removing old relay host/guest functionality.
David Smith [Tue, 23 Feb 2016 18:58:16 +0000 (12:58 -0600)]
Fix PR15775 by removing old relay host/guest functionality.

* runtime/dyninst/print.c: Remove RELAY_{HOST,GUEST} functionality.
* runtime/linux/print.c: Ditto.
* runtime/print_flush.c: Ditto.
* runtime/transport/transport.c: Ditto.
* testsuite/systemtap.printf/sharedbuf.exp: Removed.
* man/stap.1.in: Removed RELAY_{HOST,GUEST} mention.
* man/systemtap.8.in: Ditto.

8 years agoAccept other error codes returned by socket syscall in socket.c syscall test
William Cohen [Thu, 18 Feb 2016 22:08:12 +0000 (17:08 -0500)]
Accept other error codes returned by socket syscall in socket.c syscall test

On aarch64 the last socket syscall in socket.c return EINVAL rather
than EPROTONOSUPPORT.  Adjust the test to be a bit more flexible.  An
error is an error.

8 years agoImprove perf example and perf read error messages.
David Smith [Wed, 17 Feb 2016 18:57:42 +0000 (12:57 -0600)]
Improve perf example and perf read error messages.

* runtime/linux/perf.c (_stp_perf_read): Improve perf read error messages.
* testsuite/systemtap.examples/profiling/perf.stp: Avoid divide by zero
  errors.

8 years agoMake some small improvements to systemtap.base/callee.exp.
David Smith [Tue, 16 Feb 2016 20:54:49 +0000 (14:54 -0600)]
Make some small improvements to systemtap.base/callee.exp.

* testsuite/systemtap.base/callee.exp: Made the test more verbose for
  debugging purposes. Reports the desired output and shows the compile
  commands used.
* testsuite/systemtap.base/callee.inlined.c: Has a better return status so
  stap doesn't complain about the target exiting with a non-zero status.

8 years agoRevert callee.exp change in commit 83dec8abfc7f35e.
Felix Lu [Tue, 16 Feb 2016 17:48:58 +0000 (12:48 -0500)]
Revert callee.exp change in commit 83dec8abfc7f35e.
This causes a fail on rhel7.2 for the .callee(foo).call testcase.

8 years agoadd CVE-2015-7547 (glibc getaddrinfo) security band-aid
Frank Ch. Eigler [Tue, 16 Feb 2016 17:36:49 +0000 (12:36 -0500)]
add CVE-2015-7547 (glibc getaddrinfo) security band-aid

8 years agoFix PR19644 by updating the runtime to handle linux 4.5 commit 8244062ef1.
David Smith [Tue, 16 Feb 2016 17:06:58 +0000 (11:06 -0600)]
Fix PR19644 by updating the runtime to handle linux 4.5 commit 8244062ef1.

* runtime/transport/symbols.c (_stp_module_update_self): Handle kernel
  change moving module symbol table information into a 'struct
  mod_kallsyms'.
* runtime/linux/autoconf-mod_kallsyms.c: New autoconf test.
* buildrun.cxx (compile_pass): Add autoconf test for 'struct
  mod_kallsyms'.

8 years agoAdd testcase for PR19525 (script doesn't finish in bulk mode).
Martin Cermak [Tue, 16 Feb 2016 09:54:21 +0000 (10:54 +0100)]
Add testcase for PR19525 (script doesn't finish in bulk mode).

8 years agoFix PR19639 by updating the parallel_exec.exp testcase.
Martin Cermak [Mon, 15 Feb 2016 22:37:04 +0000 (23:37 +0100)]
Fix PR19639 by updating the parallel_exec.exp testcase.

8 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
David Smith [Fri, 12 Feb 2016 20:31:06 +0000 (14:31 -0600)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

8 years agoMerge branch 'dsmith/interactive'
David Smith [Fri, 12 Feb 2016 20:30:33 +0000 (14:30 -0600)]
Merge branch 'dsmith/interactive'

8 years agotestsuite: a buildok-level test for -DSTP_NO_VERREL_CHECK
Frank Ch. Eigler [Fri, 12 Feb 2016 14:49:23 +0000 (09:49 -0500)]
testsuite: a buildok-level test for -DSTP_NO_VERREL_CHECK

8 years agoAdd ability to override kernel release check
Nikolay Borisov [Thu, 11 Feb 2016 15:34:50 +0000 (17:34 +0200)]
Add ability to override kernel release check

In some situation it might be useful to disable checking the
kernel release. This happens when a kernel module is being rebuilt
and then probed. Without this override one has to reboot the machine
with the new kernel (and module) and then use systemtap.

To rectify the situation add a new define STP_NO_VERREL_CHECK,
which disables the relevant code in the resulting systemtap module.

This can be used with the following syntax:
stap -DSTP_NO_VERREL_CHECK script.stp

Signed-off-by: Nikolay Borisov <n.borisov@siteground.com>
8 years agoAdd a couple of dyninsg KFAILs to buildok-dyninst.exp and semok.exp.
David Smith [Fri, 12 Feb 2016 14:42:58 +0000 (08:42 -0600)]
Add a couple of dyninsg KFAILs to buildok-dyninst.exp and semok.exp.

* testsuite/systemtap.pass1-4/buildok-dyninst.exp: Add
  buildok/profiletimer.stp as a dyninst KFAIL.
* testsuite/systemtap.pass1-4/semok.exp (dyninst_kfails): Add
  semok/transko.stp as a dyninst KFAIL.

8 years agoImprove tracepoint support on systems with self-built kernels.
David Smith [Fri, 12 Feb 2016 14:21:53 +0000 (08:21 -0600)]
Improve tracepoint support on systems with self-built kernels.

* tapsets.cxx (header_exists): New function
  (tracepoint_extra_decls): Look for headers in the kernel build tree and
  kernel source tree (instead of just the kernel source tree). On systems
  with self-built kernels, we were failing to find tracepoint headers.
* buildrun.cxx (compile_pass): Add kernel build tree directory to include
  path.
  (make_tracequeries): Ditto.

8 years agoFix testcase backtrace.exp by aligning it to commit 54d87c8ffc.
Martin Cermak [Thu, 11 Feb 2016 15:36:14 +0000 (16:36 +0100)]
Fix testcase backtrace.exp by aligning it to commit 54d87c8ffc.

8 years agoAdd RELAY_HOST/RELAY_GUEST example to stap.1.
Martin Cermak [Thu, 11 Feb 2016 12:16:35 +0000 (13:16 +0100)]
Add RELAY_HOST/RELAY_GUEST example to stap.1.

8 years agoFix PR19560 by improving the relay code.
David Smith [Wed, 10 Feb 2016 19:06:51 +0000 (13:06 -0600)]
Fix PR19560 by improving the relay code.

* staprun/relay.c (reader_thread): Use mutex when accessing state
  variable.
  (switchfile_handler): Ditto. Also don't send the USR2 signal to the same
  thread running the signal handler.
  (init_relayfs): Initialize the mutexes.
  (close_relayfs): Destroy the mutexes.

8 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
David Smith [Wed, 10 Feb 2016 18:49:54 +0000 (12:49 -0600)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

8 years agoBetter test for hardware breakpoint support in the examples.
David Smith [Wed, 10 Feb 2016 18:49:09 +0000 (12:49 -0600)]
Better test for hardware breakpoint support in the examples.

* testsuite/systemtap.examples/memory/hw_watch_addr.meta: Move the
  hardware breakpoint test to the associated tcl file.
* testsuite/systemtap.examples/memory/hw_watch_sym.meta: Ditto.
* testsuite/systemtap.examples/memory/hw_watch_addr.tcl: New file.
* testsuite/systemtap.examples/memory/hw_watch_sym.tcl: New file.

8 years agoAutoreconf following commit 24ef0e886 (automake-1.15-4.fc23).
Martin Cermak [Wed, 10 Feb 2016 18:46:58 +0000 (19:46 +0100)]
Autoreconf following commit 24ef0e886 (automake-1.15-4.fc23).

8 years agoAdd more czech localized manpages.
Martin Cermak [Wed, 10 Feb 2016 18:35:27 +0000 (19:35 +0100)]
Add more czech localized manpages.

configure.ac: Process man/cs/{stappaths.7,systemtap.8} with automake.
man/cs/Makefile.am: Put individual manpages into correcponding folders.
man/dtrace.1: Add BUGS section.
man/error::dwarf.7stap: Fix typos.
man/cs/*: New manpages.
NEWS: An advertisement.

8 years agoerror::pass4 - emphasize building stap from git for fresh kernels
Frank Ch. Eigler [Tue, 9 Feb 2016 15:31:22 +0000 (10:31 -0500)]
error::pass4 - emphasize building stap from git for fresh kernels

8 years agoPR13643: log client options passed to compile server
Abegail Jakop [Thu, 28 Jan 2016 20:33:49 +0000 (15:33 -0500)]
PR13643: log client options passed to compile server

Log the options that a stap client passes to the stap compile server.
This will include logging the script file name or the -e script,
depending on what is used by the client.

8 years agoUse unmangled_name in a couple more places.
Felix Lu [Thu, 4 Feb 2016 20:17:11 +0000 (15:17 -0500)]
Use unmangled_name in a couple more places.

Some code for the embedded-C global variable sharing was
using tok->content to unmangle the variable names.

* elaborate.cxx: monitor_mode_read
* staptree.cxx: varuse_collecting_visitor::visit_embedded{code, _expr}
* translate.cxx: global variable sharing functions

8 years agoFix PR19536 by making more synthetic functions "private".
David Smith [Tue, 2 Feb 2016 19:46:25 +0000 (13:46 -0600)]
Fix PR19536 by making more synthetic functions "private".

* tapsets.cxx (dwarf_pretty_print::expand): Treat internal synthetic
  functions as private.
  (sdt_uprobe_var_expanding_visitor::try_parse_arg_varname): Set
  'unmangled_name' when creating a synthetic function.
* elaborate.cxx (create_monitor_function): Set 'unmangled_name' when
  creating a synthetic function.
* tapset-procfs.cxx (procfs_var_expanding_visitor::visit_target_symbol):
  Ditto.
* testsuite/semok/kretprobe-data.stp: Fix typo.

8 years agostapdyn: -fstd=c++11 compatibility
Frank Ch. Eigler [Tue, 2 Feb 2016 15:45:41 +0000 (10:45 -0500)]
stapdyn: -fstd=c++11 compatibility

typeof() and auto_ptr() needed some #ifdef love so that the code
compiles with
     CXXFLAGS="-std=c++11 -O2 -g -Wextra -Wall -Werror"
and  CXXFLAGS="-O2 -g -Wextra -Wall -Werror"

8 years agoFixed PR19537 by writing a new parse semko test.
David Smith [Mon, 1 Feb 2016 19:58:02 +0000 (13:58 -0600)]
Fixed PR19537 by writing a new parse semko test.

* testsuite/systemtap.pass1-4/parse-semko.exp: New test case, similar to
  the old parseok/semko.stp case, that makes sure that we can parse all
  the semko test cases.
* testsuite/parseok/semko.stp: Deleted.
* testsuite/semko/netfilter09.stp: Corrected pass number to '-p2'.
* testsuite/semko/netfilter10.stp: Ditto.
* testsuite/semko/netfilter11.stp: Ditto.

8 years agoFix configure.ac enable htmldocs logic
Felix Lu [Mon, 1 Feb 2016 15:28:37 +0000 (10:28 -0500)]
Fix configure.ac enable htmldocs logic

8 years agoDisable building html documentation in specfile
Felix Lu [Fri, 29 Jan 2016 18:59:26 +0000 (13:59 -0500)]
Disable building html documentation in specfile

8 years agoMove semko/perf01.stp to transko/perf01.stp.
David Smith [Fri, 29 Jan 2016 18:03:39 +0000 (12:03 -0600)]
Move semko/perf01.stp to transko/perf01.stp.

* testsuite/transko/perf01.stp: Moved from semko/perf01.stp (since this
  test fails in pass 3, not pass 2) and added a comment.

8 years agoMove semko/perf01.stp to transko/perf01.stp.
David Smith [Fri, 29 Jan 2016 18:03:39 +0000 (12:03 -0600)]
Move semko/perf01.stp to transko/perf01.stp.

* testsuite/transko/perf01.stp: Moved from semko/perf01.stp (since this
  test fails in pass 3, not pass 2) and added a comment.

8 years agoAllow explicit disable htmldocs flag
Felix Lu [Fri, 29 Jan 2016 14:29:44 +0000 (09:29 -0500)]
Allow explicit disable htmldocs flag

8 years agoClarify the interactive "delete" command's purpose.
David Smith [Thu, 28 Jan 2016 20:36:54 +0000 (14:36 -0600)]
Clarify the interactive "delete" command's purpose.

* interactive.cxx (delete_cmd): Clarify that the interactive "delete"
  command deletes script lines, not necessarily an entire probe.

8 years agoChange the way the interactive mode reads scripts.
David Smith [Thu, 28 Jan 2016 20:21:37 +0000 (14:21 -0600)]
Change the way the interactive mode reads scripts.

* interactive.cxx (load_cmd:handler): Instead of using stap's parser to
  read in the script, just read in the script as a series of
  strings. Using the parser discards comments, preprocessor directives,
  and rearranges the script.

8 years agoMerge remote-tracking branch 'origin/master' into dsmith/interactive
David Smith [Thu, 28 Jan 2016 18:37:39 +0000 (12:37 -0600)]
Merge remote-tracking branch 'origin/master' into dsmith/interactive

8 years agoRemove the 'compatible_version' interactive mode option.
David Smith [Thu, 28 Jan 2016 18:36:32 +0000 (12:36 -0600)]
Remove the 'compatible_version' interactive mode option.

* interactive.cxx: Remove the "compatible_version" option, since
  implementing it would require re-reading the tapset library.
* testsuite/systemtap.pass1-4/buildok-interactive.exp: Remove
  "compatible_version" option support. If a script uses "--compatible",
  just skip the script.

8 years agoFix build
Felix Lu [Thu, 28 Jan 2016 16:31:26 +0000 (11:31 -0500)]
Fix build

The new documentation changes were causing the build to fail when
build directory is the same as the source directory.
The documents are now copied from source to install directory only.

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