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

8 years agoPR19525: always use a SIGUSR2 handler in stapio
Josh Stone [Wed, 27 Jan 2016 22:20:06 +0000 (14:20 -0800)]
PR19525: always use a SIGUSR2 handler in stapio

It was conditionally ignored by commit 62d2a73ee995, to avoid confusing
error messages about file rotation when there's no output file.

But bulk-mode close_relayfs() still needs the signal to cause EINTR on
the waiting threads, so SIG_IGN is too much.  Now we just return from
the handler immediately if there's no output file to rotate.

Also add a SIGUSR2 test for the original error and with bulk mode.

8 years agoImprove systemtap.base/stmt_rel.exp for rawhide systems.
David Smith [Wed, 27 Jan 2016 22:29:01 +0000 (16:29 -0600)]
Improve systemtap.base/stmt_rel.exp for rawhide systems.

* testsuite/systemtap.base/stmt_rel.exp: Improve testcase by handling move
  of fs/bio.c to block/bio.c on rawhide kernels. Actually fail if we can't
  get line numbers for a function.

8 years agoUpdate tracepoint support for rawhide kernels.
David Smith [Wed, 27 Jan 2016 22:26:09 +0000 (16:26 -0600)]
Update tracepoint support for rawhide kernels.

* tapsets.cxx (tracepoint_extra_decls): Get more tracepoints working on
  rawhide kernels (4.5.0-0.rc0.git9.1.fc24.x86_64).
  (tracepoint_builder::init_dw): Ditto.

8 years agoGet tapset/linux/socket.stp working on rawhide.
David Smith [Wed, 27 Jan 2016 19:16:59 +0000 (13:16 -0600)]
Get tapset/linux/socket.stp working on rawhide.

* tapset/linux/socket.stp (sock_flags_num2str): Handle kernel commit
  9cd3e07 which renamed SOCK_ASYNC_NOSPACE and SOCK_ASYNC_WAITDATA.

8 years agoMake timers.exp less random by improving its test script.
David Smith [Wed, 27 Jan 2016 17:16:17 +0000 (11:16 -0600)]
Make timers.exp less random by improving its test script.

* testsuite/systemtap.base/timers.stp: Improve test case by lowering the
  value of randomized jiffies probe. On systems (such as s390x) with
  CONFIG_HZ of 100 (a jiffies value of 0.01 seconds), the probe could
  reasonably not fire in 10 seconds.

8 years agoMake pthread_stacks.exp less random by improving its test program.
David Smith [Wed, 27 Jan 2016 16:52:44 +0000 (10:52 -0600)]
Make pthread_stacks.exp less random by improving its test program.

* testsuite/systemtap.base/pthread_stacks.c: Improve the test program by
  no longer calling 'sleep()' (whose behavior is undefined in a pthreads
  program). Also, be sure to wait on all the threads to finish, so we can
  be sure a thread has the chance to print the stack size before we exit.

8 years agoMerge remote-tracking branch 'origin/master' into dsmith/interactive
David Smith [Wed, 27 Jan 2016 15:26:58 +0000 (09:26 -0600)]
Merge remote-tracking branch 'origin/master' into dsmith/interactive

8 years agoPR19346: Remove html from source tree
Felix Lu [Tue, 26 Jan 2016 21:37:49 +0000 (16:37 -0500)]
PR19346: Remove html from source tree

autoreconf 2.69, Fedora 22

HTML pages for the SystemTap_Beginners_Guide and Tapset_Reference
are only built when provided with the --enable-htmldocs configure
flag.

* configure.ac: new configure option --enable-htmldocs to build
  HTML docs. xmlto check restored for --enable-htmldocs condition
* doc/SystemTap_Beginners_Guide/en-US/Useful_Scripts*: restored
  href link to allow building from both the generate-docs script
  and Makefile.
* doc/SystemTap_Beginners_Guide/en-US/html/: deleted
* doc/SystemTap_Tapset_Reference/tapsets/: deleted
* scripts/generate-docs: remove building of HTML docs
* scripts/update-docs: pass --enable-htmldocs flag to build HTML docs
* doc/SystemTap_Tapset_Reference/Makefile.am: only build HTML
  if BUILD_HTMLDOCS macro defined
* doc/beginners/Makefile.am: only build HTML if BUILD_HTMLDOCS macro
  defined
* doc/SystemTap_Beginners_Guide/testsuite: new symlink to allow
  building from both Makefile and generate-docs

8 years agoPR19346: escape xml documentation
Felix Lu [Tue, 19 Jan 2016 20:07:13 +0000 (15:07 -0500)]
PR19346: escape xml documentation

SystemTap_Beginners_Guide and SystemTap_Tapset_Reference docs are
now prebuilt in the source tree to avoid xmlto at build time.

The prebuilt SystemTap_Beginners_Guide docs are stored in
doc/SystemTap_Beginners_Guide/en-US/.

The prebuilt tapset reference docs are stored in
doc/SystemTap_Tapset_Reference.

* configure.ac: Skip symlinking examples directory, remove checking
  for xmlto when building reference docs, remove BUILD_PDFREFDOCS
  condition.
* scripts/generate-docs: new script to update the prebuilt documentation.
* doc/beginners/Makefile.am: updated to copy prebuilt docs from
  source tree.
* doc/SystemTap_Reference/Makefile.am: updated to copy prebuilt
* doc/SystemTap_Beginners_Guide/en-US/Useful_scripts*: updated href links
  for generation in source tree.
* doc/SystemTap_Beginners_Guide/en-US/html: prebuilt html pages
* doc/SystemTap_Beginners_Guide/en-US/SystemTap_Beginners_Guide.pdf:
  prebuilt pdf
* doc/SystemTap_Reference_guide/{man3, man_pages}: prebuilt man
  pages
* doc/SystemTap_Reference_guide/tapsets: prebuilt html pages
* doc/SystemTap_Reference_guide/tapsets.pdf: prebuilt pdf

8 years agoFix PR19521 by updating messages to use the unmangled variable/function name.
David Smith [Wed, 27 Jan 2016 15:12:23 +0000 (09:12 -0600)]
Fix PR19521 by updating messages to use the unmangled variable/function name.

* elaborate.cxx (no_var_mutation_during_iteration_check::visit_arrayindex):
  Error/warning messages now print the unmangled variable/function name.
  (semantic_pass_stats): Ditto.
  (embeddedcode_info::visit_embeddedcode): Ditto.
  (symresolution_info::collect_functions): Ditto.
  (semantic_pass_opt1): Ditto.
  (semantic_pass_opt2): Ditto.
  (dead_assignment_remover::visit_try_block): Ditto.
  (semantic_pass_opt4): Ditto.
  (duplicate_function_remover::visit_functioncall): Ditto.
  (autocast_expanding_visitor::resolve_functioncall): Ditto.
  (semantic_pass_types): Ditto.
* translate.cxx (c_tmpcounter::emit_function): Ditto.

8 years agoAdded some test case cleanups.
David Smith [Wed, 27 Jan 2016 15:01:34 +0000 (09:01 -0600)]
Added some test case cleanups.

* testsuite/systemtap.base/expansion.exp: Added "close;wait" to clean up
  spawned processes.
* testsuite/systemtap.base/global_access.exp: Ditto.
* testsuite/systemtap.base/stable_function.exp: Ditto.
* testsuite/systemtap.base/temp-directory.exp: Minor cleanups.

8 years agoFix build issue with --without-rpm in rpm_finder.cxx
Mark Wielaard [Wed, 27 Jan 2016 11:58:49 +0000 (12:58 +0100)]
Fix build issue with --without-rpm in rpm_finder.cxx

* rpm_finder.cxx: Provide full dummy functions if HAVE_LIBRPM
is not set.

8 years agoAlign cs/stap.1.in to stap.1.in (doc overview).
Martin Cermak [Wed, 27 Jan 2016 07:28:12 +0000 (08:28 +0100)]
Align cs/stap.1.in to stap.1.in (doc overview).

8 years agoexamples index: drop non-test_installcheck # usage lines
Frank Ch. Eigler [Tue, 26 Jan 2016 19:42:55 +0000 (14:42 -0500)]
examples index: drop non-test_installcheck # usage lines

8 years agotestsuite examples README: relax requirements
Frank Ch. Eigler [Tue, 26 Jan 2016 19:36:26 +0000 (14:36 -0500)]
testsuite examples README: relax requirements

Our only real requirements of meta files is what's demanded by the
index generator perl script & the testsuite.

8 years agoexamples: add historical security band-aids
Frank Ch. Eigler [Tue, 26 Jan 2016 19:31:19 +0000 (14:31 -0500)]
examples: add historical security band-aids

8 years agoFix my PR19497 commit by fixing some ifdef logic in runtime/linux/alloc.c.
David Smith [Tue, 26 Jan 2016 19:29:36 +0000 (13:29 -0600)]
Fix my PR19497 commit by fixing some ifdef logic in runtime/linux/alloc.c.

* runtime/linux/alloc.c: Correct #ifdef logic, the STAPCONF_GRSECURITY
  section was accidently reversed.

8 years agoDon't test hardware breakpoint examples where they aren't supported.
David Smith [Tue, 26 Jan 2016 19:06:55 +0000 (13:06 -0600)]
Don't test hardware breakpoint examples where they aren't supported.

* testsuite/systemtap.examples/memory/hw_watch_addr.meta: Make sure the
  kernel supports hardware breakpoints before trying the test case.
* hw_watch_sym.meta: Ditto.

8 years agoMake some interactive mode test case improvements.
David Smith [Tue, 26 Jan 2016 16:37:17 +0000 (10:37 -0600)]
Make some interactive mode test case improvements.

* testsuite/systemtap.pass1-4/buildok-interactive.exp: Only run the test
  if stap was compiled with the readline library. Add support for the
  "compatible_version" option.
* session.cxx (systemtap_session::version): Report whether stap was
  compiled with the readline library.
* testsuite/lib/systemtap.exp (readline_p): Add a new function that
  reports if systemtap was compiled with the readline library.

8 years agoAdd an 'compatible_version' interactive mode option.
David Smith [Tue, 26 Jan 2016 16:31:56 +0000 (10:31 -0600)]
Add an 'compatible_version' interactive mode option.

* interactive.cxx: Mark all unused parameters with '__attribute
  ((unused))' to make gcc 5 happy. Add a 'compatible_version' option.

8 years agoPR19502 cont'd: tighten the documentation-overview section
Frank Ch. Eigler [Tue, 26 Jan 2016 15:10:34 +0000 (10:10 -0500)]
PR19502 cont'd: tighten the documentation-overview section

tbl & fewer words to the rescue

8 years agoRegenerate localization data.
Martin Cermak [Tue, 26 Jan 2016 15:08:45 +0000 (16:08 +0100)]
Regenerate localization data.

This is a regeneration of the localization data (`make update-po`)
after commits 9f7523e678efd8, and 9c91553.

8 years agoLocalize normal stap -v and stap --help output to czech language.
Martin Cermak [Tue, 26 Jan 2016 15:07:09 +0000 (16:07 +0100)]
Localize normal stap -v and stap --help output to czech language.

8 years agoUse correct plural forms in the stap -v output.
Martin Cermak [Tue, 26 Jan 2016 15:06:33 +0000 (16:06 +0100)]
Use correct plural forms in the stap -v output.

8 years agoMake xgettext scan for all the NLS macros we use.
Martin Cermak [Tue, 26 Jan 2016 14:55:25 +0000 (15:55 +0100)]
Make xgettext scan for all the NLS macros we use.

Before this update, xgettext, which is run as a part of `make update-po`
was only scanning for the '_()' macro (the other one mentioned in there,
'N_()', was not really used in our sources, it's probably some unused
relict). So now we scan for '_()', '_N()', '_F()', and '_NF()' as defined
in util.h.

From now on, the '_N()' and '_NF()' macros are correctly processing the
plural forms too. Relevant documentation is: https://www.gnu.org/softwa-
re/gettext/manual/html_node/xgettext-Invocation.html#Language-specific-options

8 years agoMerge remote-tracking branch 'origin/master' into dsmith/interactive
David Smith [Mon, 25 Jan 2016 20:26:13 +0000 (14:26 -0600)]
Merge remote-tracking branch 'origin/master' into dsmith/interactive

8 years agoImprove mlock2 tapset support and add testsuite support.
David Smith [Mon, 25 Jan 2016 20:24:56 +0000 (14:24 -0600)]
Improve mlock2 tapset support and add testsuite support.

* tapset/linux/nd_syscalls.stp (nd_syscall.mlock2): Fix argument handling
  and add missing comma between arguments in 'argstr'.
* tapset/linux/syscalls.stp (syscall.mlock2): Add missing comma between
  arguments in 'argstr'.
* testsuite/buildok/aux_syscalls-embedded.stp: Add _stp_mlock2_str()
  compile test.
* testsuite/buildok/nd_syscalls-detailed.stp: Add 'mlock2' compile test.
* testsuite/buildok/syscalls-detailed.stp: Ditto.
* testsuite/systemtap.syscall/mmap.c: Add mlock2 support to test case.

8 years agoAutoreconf following commit 0b03204.
Martin Cermak [Mon, 25 Jan 2016 10:29:27 +0000 (11:29 +0100)]
Autoreconf following commit 0b03204.

8 years agoFix PR19502 by adding the "GETTING HELP" section to the stap.1 manpage.
Martin Cermak [Mon, 25 Jan 2016 10:25:56 +0000 (11:25 +0100)]
Fix PR19502 by adding the "GETTING HELP" section to the stap.1 manpage.

Move stap.1 to stap.1.in so that it can contain autoconf macros.  Add
the "GETTING HELP" section to it.  Do the same with the czech version
of the manpage.

8 years agoUse -Wextra. Fix some warnings.
Mark Wielaard [Sun, 24 Jan 2016 19:59:13 +0000 (20:59 +0100)]
Use -Wextra. Fix some warnings.

Fix some warnings (mostly -Wunused-parameter) so that we can enable -Wextra.
Tested against GCC5 and GCC6.

Regenerate auto* and po files.

8 years agoexamples-index-gen.pl: Remove duplicate my $usage definition.
Mark Wielaard [Sun, 24 Jan 2016 14:31:39 +0000 (15:31 +0100)]
examples-index-gen.pl: Remove duplicate my $usage definition.

"my" variable $usage masks earlier declaration in same scope at
  examples-index-gen.pl line 106.

8 years agoAdd tapset support for mlock2 syscall in 4.4
Lukas Berk [Fri, 22 Jan 2016 23:40:33 +0000 (18:40 -0500)]
Add tapset support for mlock2 syscall in 4.4

aux_syscalls.stp - flags to str function
nd_syscalls.stp - add kprobe based syscall probe point
syscalls.stp - add kernel function based syscall probe point

8 years agoPR19510 partial fix - more '-p1' output improvements.
David Smith [Fri, 22 Jan 2016 20:10:19 +0000 (14:10 -0600)]
PR19510 partial fix - more '-p1' output improvements.

* elaborate.cxx (create_monitor_function): Initialize 'unmangled_name'
  when a vardecl gets created.
  (monitor_mode_init): Ditto.
  (monitor_mode_write): Ditto.
  (symresolution_info::visit_symbol): Ditto.
  (stable_functioncall_visitor::visit_functioncall): Ditto.

8 years agoOutput semi-colons between statements when printing a script.
David Smith [Fri, 22 Jan 2016 20:05:30 +0000 (14:05 -0600)]
Output semi-colons between statements when printing a script.

* staptree.cxx (print): Add a semi-colon after every statement in a
  block. This helps when using parser output as input back to systemtap
  by separating statements appropriately.
* testsuite/systemtap.base/optim_arridx.exp: Update test to expect a
  semi-colon after statements in parser output.
* testsuite/systemtap.server/client_args.exp: Ditto.

8 years agoMerge remote-tracking branch 'origin/master' into dsmith/interactive
David Smith [Fri, 22 Jan 2016 17:28:45 +0000 (11:28 -0600)]
Merge remote-tracking branch 'origin/master' into dsmith/interactive

8 years agoFix systemtap.examples/memory/hw_watch_{addr,sym}.stp.
David Smith [Fri, 22 Jan 2016 17:20:06 +0000 (11:20 -0600)]
Fix systemtap.examples/memory/hw_watch_{addr,sym}.stp.

* testsuite/systemtap.examples/memory/hw_watch_addr.stp: Only try hardware
  breakpoints (i.e. 'kernel.data') probes if CONFIG_HAVE_HW_BREAKPOINT is
  on.
* testsuite/systemtap.examples/memory/hw_watch_sym.stp: Ditto.

8 years agoAlign czech program strings terminology to reviewed manpages.
Martin Cermak [Fri, 22 Jan 2016 14:05:52 +0000 (15:05 +0100)]
Align czech program strings terminology to reviewed manpages.

8 years agoLocalize a few basic main.cxx strings.
Martin Cermak [Fri, 22 Jan 2016 13:52:45 +0000 (14:52 +0100)]
Localize a few basic main.cxx strings.

8 years agotapset documentation: standardize
Frank Ch. Eigler [Fri, 22 Jan 2016 00:49:46 +0000 (19:49 -0500)]
tapset documentation: standardize

Some generated man pages had an erroneous "IBM" in the footer, and
inconsistent datestamping or capitalization.  The man pages look more
uniform now.

8 years agoadd generated po/cs.gmo
Frank Ch. Eigler [Thu, 21 Jan 2016 21:54:17 +0000 (16:54 -0500)]
add generated po/cs.gmo

8 years agostrace.stp sample tweak
Frank Ch. Eigler [Thu, 21 Jan 2016 21:29:22 +0000 (16:29 -0500)]
strace.stp sample tweak

A small fixed lookup array only needs a few entries allocated.

8 years agoFix systemtap.base/utrace_syscall_args.stp for s390x kernels >= 2.6.33.
David Smith [Thu, 21 Jan 2016 22:13:39 +0000 (16:13 -0600)]
Fix systemtap.base/utrace_syscall_args.stp for s390x kernels >= 2.6.33.

8 years agoPR19510 partial fix - improve '-p1' output.
David Smith [Thu, 21 Jan 2016 19:54:50 +0000 (13:54 -0600)]
PR19510 partial fix - improve '-p1' output.

* testsuite/systemtap.pass1-4/parse-semok.exp: New testcase.
* staptree.h: Add the 'unmangled_name' field to the 'symboldecl' class.
* staptree.cxx (vardecl::print): Print the 'unmangled_name' field, instead
  of the 'name' field (which could have been mangled).
  (vardecl::printsig): Ditto.
  (functiondecl::print): Ditto.
  (functiondecl::printsig): Ditto.
* parse.cxx (do_parse_global): Set the new 'unmangled_name' field.
  (do_parse_functiondecl): Ditto.
* elaborate.cxx (add_global_var_display): Use the 'unmangled_name' field
  instead of 'tok->content'.

8 years agoAutoreconf after adding czech manpages.
Martin Cermak [Thu, 21 Jan 2016 16:03:53 +0000 (17:03 +0100)]
Autoreconf after adding czech manpages.

8 years agoAdd czech version of stap.1 and stapprobes.3stap manpages.
Martin Cermak [Thu, 21 Jan 2016 16:02:52 +0000 (17:02 +0100)]
Add czech version of stap.1 and stapprobes.3stap manpages.

8 years agoPreparation for the czech localization of manpages.
Martin Cermak [Thu, 21 Jan 2016 15:57:25 +0000 (16:57 +0100)]
Preparation for the czech localization of manpages.

Following changes were inspired by the shadow utils project:
https://github.com/shadow-maint/shadow

configure.ac: Add man/cs/Makefile to AC_CONFIG_FILES.
man/Makefile.am: Include processing the cs folder with automake.
man/cs/Makefile.am: Add the cs folder to the mandir.
systemtap.spec: Include localized manpages in the expected file list.

The specfile change aims to also cover possible future
localizations that might include the "region" specification.

8 years agotapsets.cxx: fix indentation to appease GCC 6
Jonathan Lebon [Thu, 21 Jan 2016 01:10:44 +0000 (20:10 -0500)]
tapsets.cxx: fix indentation to appease GCC 6

The new -Wmisleading-indentation complains about the indentation of
these braces because of the if-statement right before. We can squash
that warning by simply unindenting the braces.

Whether this scoping should even exist is another question. I like it
there because that whole scope is related to variable expansion. It
should probably be moved to a function.

8 years agoFix PR9497 by updating the runtime to handle linux 4.4 commit 7523e4dc50.
David Smith [Wed, 20 Jan 2016 21:13:44 +0000 (15:13 -0600)]
Fix PR9497 by updating the runtime to handle linux 4.4 commit 7523e4dc50.

* runtime/linux/autoconf-module_layout.c: New autoconf test.
* buildrun.cxx (compile_pass): Add 'module_layout' autoconf test for new
  module_layout structure.
* runtime/linux/alloc.c: Handle module struct changes in rawhide.
* runtime/linux/print.c (_stp_print_kernel_info): Ditto.
* runtime/transport/symbols.c (_stp_module_update_self): Ditto.
* tapset/linux/context.stp (module_size): Ditto.

8 years agoGet systemtap.base/at_var.exp to pass on s390x.
David Smith [Wed, 20 Jan 2016 16:48:55 +0000 (10:48 -0600)]
Get systemtap.base/at_var.exp to pass on s390x.

* testsuite/systemtap.base/at_var.exp: Make changes needed to get test to
  pass on s390x. On s390x all syscalls args are longs, so you can't print
  them as a struct.
* testsuite/systemtap.base/at_var.stp: Ditto.

8 years agoPR17741: expand try_assign macro description
Abegail Jakop [Tue, 19 Jan 2016 22:43:56 +0000 (17:43 -0500)]
PR17741: expand try_assign macro description

8 years agoPR17741: add a try_assign macro
Abegail Jakop [Tue, 19 Jan 2016 20:35:09 +0000 (15:35 -0500)]
PR17741: add a try_assign macro

add a try_assign macro that stores in a provided variable the value
from evaluating the body of the try or catch statement.

tapset/try_assign.stpm:    define a try_assign macro
testsuite/../try_assign.*: basic testcase checking that the try_assign
macro's functionality works as expected.

8 years agoImprove interactive mode script display.
David Smith [Mon, 18 Jan 2016 17:15:28 +0000 (11:15 -0600)]
Improve interactive mode script display.

* interactive.cxx (list_cmd): Display scripts so that the colon following
  the line numbers line up no matter how many lines are in the script.

8 years agostap.1: highlight %.*M formatting tip
Frank Ch. Eigler [Mon, 18 Jan 2016 14:29:16 +0000 (09:29 -0500)]
stap.1: highlight %.*M formatting tip

It's common enough, and easy enough to get wrong.

8 years agoAdd the interactive "edit" command.
David Smith [Fri, 15 Jan 2016 20:29:43 +0000 (14:29 -0600)]
Add the interactive "edit" command.

* interactive.cxx (edit_cmd): New class.
  (interactive_mode): Add 'edit_cmd' to the command vector.

8 years agoUpdated optim_arridx.exp for the interactive branch.
David Smith [Fri, 15 Jan 2016 17:57:22 +0000 (11:57 -0600)]
Updated optim_arridx.exp for the interactive branch.

8 years agoMerge remote-tracking branch 'origin/master' into dsmith/interactive
David Smith [Fri, 15 Jan 2016 17:34:07 +0000 (11:34 -0600)]
Merge remote-tracking branch 'origin/master' into dsmith/interactive

8 years agoFix warning message typo in runtime/unwind.c.
David Smith [Thu, 14 Jan 2016 22:53:34 +0000 (16:53 -0600)]
Fix warning message typo in runtime/unwind.c.

8 years agoAdd new stress test case - parallel_exec.exp.
Zhou Wenjian [Thu, 14 Jan 2016 21:29:00 +0000 (15:29 -0600)]
Add new stress test case - parallel_exec.exp.

8 years agoFixed typo in last all_kernel_functions.exp change.
David Smith [Thu, 14 Jan 2016 19:40:57 +0000 (13:40 -0600)]
Fixed typo in last all_kernel_functions.exp change.

8 years agoFix PR19470 by updating process_by_pid.exp for arches without .plt probes.
David Smith [Thu, 14 Jan 2016 16:21:23 +0000 (10:21 -0600)]
Fix PR19470 by updating process_by_pid.exp for arches without .plt probes.

* testsuite/systemtap.base/process_by_pid_no_plt.stp: New test script for
  process_by_pid.exp for platforms without .plt probes.
* testsuite/systemtap.base/process_by_pid.exp: Use process_by_pid.stp if
  this platform supports .plt probes, use process_by_pid_no_plt.stp
  otherwise.

8 years agoLocalization files regeneration.
Martin Cermak [Thu, 14 Jan 2016 10:09:19 +0000 (05:09 -0500)]
Localization files regeneration.

8 years agoCzech translation of program strings. Initial version.
Martin Cermak [Thu, 14 Jan 2016 10:06:30 +0000 (05:06 -0500)]
Czech translation of program strings. Initial version.

8 years agoUpdate pthreadprobes.exp for RHEL7 ppc64.
David Smith [Wed, 13 Jan 2016 18:03:33 +0000 (12:03 -0600)]
Update pthreadprobes.exp for RHEL7 ppc64.

* testsuite/systemtap.exelib/pthreadprobes.exp: Handle some versions of
  glibc (such as RHEL7 ppc64) where the "cond_timedwait" mark doesn't
  exist.

8 years agoman/stap.1: A few typo fixes and tiny specifications.
Martin Cermak [Wed, 13 Jan 2016 14:35:21 +0000 (15:35 +0100)]
man/stap.1: A few typo fixes and tiny specifications.

8 years agoUpdate tracepoint support for 4.4.0 aarch64 kernels.
David Smith [Tue, 12 Jan 2016 17:37:57 +0000 (11:37 -0600)]
Update tracepoint support for 4.4.0 aarch64 kernels.

* tapsets.cxx (tracepoint_extra_decls): Add more decls.
  (tracepoint_builder::init_dw): Add another header file path.

8 years agoMove testsuite 'genload' function to its own file.
Zhou Wenjian [Tue, 12 Jan 2016 15:00:10 +0000 (09:00 -0600)]
Move testsuite 'genload' function to its own file.

* testsuite/lib/genload.exp: Move code from systemtap.stress/current.exp
  to its own file so it can be used multiple places.
* testsuite/config/unix.exp: Load genload.exp.
* testsuite/systemtap.stress/current.exp: Move 'genload' function to its
  own file.
* testsuite/systemtap.stress/all_kernel_functions.exp: Use 'genload'
  function (instead of having a copy).

8 years agoPR12414: Missing return value is not reported
Felix Lu [Mon, 11 Jan 2016 21:46:36 +0000 (16:46 -0500)]
PR12414: Missing return value is not reported

The default behavior returns a 0 or "" which is now documented.
Analyzing the AST right now for termination without reaching a
return seems like a waste. This could be easily done if we had
a control flow graph.

8 years agoFix PR19265 by adding code to handle relative module paths.
David Smith [Mon, 11 Jan 2016 21:26:59 +0000 (15:26 -0600)]
Fix PR19265 by adding code to handle relative module paths.

* tapsets.cxx (handle_module_token): New function that handles relative
  module paths.
  (dwarf_builder::build): Call handle_module_token().
  (kprobe_builder::build): Ditto. Simplify module names.

8 years agoRemoved unneeded file in last commit.
David Smith [Mon, 11 Jan 2016 13:49:21 +0000 (07:49 -0600)]
Removed unneeded file in last commit.

8 years agoFix PR19396 by updating tracepoint query code to find more tracepoints.
David Smith [Fri, 8 Jan 2016 21:45:41 +0000 (15:45 -0600)]
Fix PR19396 by updating tracepoint query code to find more tracepoints.

* tapsets.cxx (tracepoint_extra_decls): Add new parameter to let the
  function know if we're compiling a tracequery module or not. Handle
  several odd trace headers that get unintentially included. Add a few
  tweaks for a few more trace headers.
  (emit_module_decls): Update the call to tracepoint_extra_decls.
  (get_tracequery_modules): Ditto.
  (init_dw): Add a few more paths of potential places to look for
  tracepoint headers.
* session.h: Add new 'kernel_extra_cflags' member variable to the session
        object.
* session.cxx (systemtap_session): Initialize 'kernel_extra_cflags'.
* buildrun.cxx (compile_pass): Add in custom extra cflags.
  (make_tracequeries): Ditto.
* scripts/tracepoint-diff: Ignore more tracepoints we can't use.
* testsuite/systemtap.base/tracepoints.exp: Save the tracepoint script to
  a file, since it can grow large than the command line will support on a
  system with lots of tracepoints.
* testsuite/systemtap.base/tracepoints_list.exp: New testcase that makes
  sure that all tracepoints found by perf can be seen by systemtap.

8 years agoRestore the dedupe logic for tracepoint headers
Josh Stone [Thu, 7 Jan 2016 01:12:18 +0000 (17:12 -0800)]
Restore the dedupe logic for tracepoint headers

With and without this dedupe logic, I see no difference in the
tracepoints found on Fedora 23, RHEL7, and RHEL6.  But it is faster
since we avoid processing headers found in both the kernel source tree
and build tree.

The way the header paths are normalized for #include, I don't see how
skipping that dedupe logic was supposed to help find more tracepoints.
I've added a comment pointing to what other functions would need to
change as well for that to have a more tangible effect, in case we
decide to compare file contents instead of just paths, for instance.

See also commit b1966849ecf that introduced the "#if 0" I'm removing.
The specific tracepoints mentioned in irq_vectors.h are still fine.

8 years agoPR9968: Share global variable between embedded C and script
Felix Lu [Wed, 6 Jan 2016 15:41:35 +0000 (10:41 -0500)]
PR9968: Share global variable between embedded C and script

Embedded-C functions and blocks can now use the
STAP_GLOBAL_{GET,SET}_* macros to access script level global variables.

* NEWS: description
* doc/langref.text: description + added section for stable and
  unmodified-fnargs pragmas which was only in man/stap.1
* staptree.cxx: scan for pragmas in varuse_collecting_visitor
  visit_embeddedcode and visit_embedded_expr to allow proper locks
  to be emitted
* translate.cxx: c_unparser visit_embeddedcode and visit_embedded_expr
  generates the needed macros

8 years agoUpdated scripts/tracepoint-diff.
David Smith [Wed, 23 Dec 2015 18:01:44 +0000 (12:01 -0600)]
Updated scripts/tracepoint-diff.

* scripts/tracepoint-diff: Updated to handle the fact that systemtap now
  lists kernel tracepoints by category.

8 years agoAdd a variable definition and buffer size test cases.
Zhou Wenjian [Wed, 23 Dec 2015 17:57:11 +0000 (11:57 -0600)]
Add a variable definition and buffer size test cases.

* testsuite/semko/var_definition.stp: New variable definition test case.
* testsuite/systemtap.base/stap_bufsize.exp: New test case for buffer size.

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