]> sourceware.org Git - systemtap.git/log
systemtap.git
8 years agoRHBZ1230463: systemtap.spec: remove glibc-headers buildrequires
Frank Ch. Eigler [Wed, 8 Jun 2016 15:01:19 +0000 (11:01 -0400)]
RHBZ1230463: systemtap.spec: remove glibc-headers buildrequires

We are reliably informed that this is unnecessary, and may
become harmful someday if glibc changes its subpackaging scheme.

8 years agoFix PR20211 by aimplementing the "resume mode" of the testsuite.
Martin Cermak [Wed, 8 Jun 2016 10:47:00 +0000 (12:47 +0200)]
Fix PR20211 by aimplementing the "resume mode" of the testsuite.

Once the SYSTEMTAP_TESTSUITE_RESUME environmental variable is set
to some non-zero value, the testsuite can run in "resume mode".

In this mode, tests, that have previously been run, are not being
re-executed, and their existing test results are being reused and
merged instead.

This can be useful e.g. when some of the tests causes kernel panic
or stall. Using the "resume mode", it is possible to reboot the
testing box, and re-run the testsuite skipping already executed
tests (incl. the one that caused the panic or stall - which will
stay "unfinished").

The "make list-unfinished" lists all such unfinished testcases.
Those need additional investigation.

The "resume mode" can be used with "make installcheck", or
"make installcheck-parallel".

8 years agoRun publicanize.sh as a part of update-docs.
Martin Cermak [Tue, 7 Jun 2016 09:11:05 +0000 (11:11 +0200)]
Run publicanize.sh as a part of update-docs.

* doc/Tapset_Reference_Guide/publicanize.sh: Use abspaths.
* scripts/update-docs: Run publicanize.sh too.

8 years agoMake syscall.kexec_load and syscall.kexec_load.return optional.
David Smith [Mon, 6 Jun 2016 14:39:38 +0000 (09:39 -0500)]
Make syscall.kexec_load and syscall.kexec_load.return optional.

* tapset/linux/syscalls.stp: Make syscall.kexec_load and
  syscall.kexec_load.return optional. kexec_load can be configured out of
  the kernel.

8 years agoUse std::to_string to lex_cast from integers
Josh Stone [Thu, 2 Jun 2016 20:12:02 +0000 (13:12 -0700)]
Use std::to_string to lex_cast from integers

I don't know any case where this makes a performance difference, but it
does reduce stap's .text by about 2%.

8 years agosys/sdt.h: add troubleshooting blurb
Frank Ch. Eigler [Thu, 2 Jun 2016 14:20:02 +0000 (10:20 -0400)]
sys/sdt.h: add troubleshooting blurb

8 years agoFix PR20189 by updating the vfs tapset.
David Smith [Wed, 1 Jun 2016 15:45:07 +0000 (10:45 -0500)]
Fix PR20189 by updating the vfs tapset.

* tapset/linux/vfs.stp: Handle removal of PAGE_CACHE_SIZE by defining our
  own _STP_PAGE_SIZE which is either PAGE_CACHE_SIZE or PAGE_SIZE.

8 years agoFix PR20187 by updating socket.recvmsg.
David Smith [Wed, 1 Jun 2016 14:49:03 +0000 (09:49 -0500)]
Fix PR20187 by updating socket.recvmsg.

* tapset/linux/socket.stp: Fix 'size' convenience variable of
  socket.recvmsg for newer kernels.

8 years agofix parser, delay consuming ')'
Felix Lu [Fri, 27 May 2016 20:29:35 +0000 (16:29 -0400)]
fix parser, delay consuming ')'

8 years agoFix PR20136 by using the @const() operator across the tapsets.
Martin Cermak [Fri, 27 May 2016 19:44:53 +0000 (21:44 +0200)]
Fix PR20136 by using the @const() operator across the tapsets.

8 years agoRe-fix PR19926 by simplifying previous implementation.
Martin Cermak [Fri, 27 May 2016 19:41:49 +0000 (21:41 +0200)]
Re-fix PR19926 by simplifying previous implementation.

This reimplementation of the @const() operator (0a7eb12d191)
is based on PR20136, comment 3. It moves all the logic to the
parser.  No elaboration involved.

8 years agoMake expect_op_any lazier
Josh Stone [Fri, 27 May 2016 19:16:43 +0000 (12:16 -0700)]
Make expect_op_any lazier

- Work directly from an initializer_list instead of making a vector.
- Don't construct the error message until we're sure there's an error.

8 years agoFix build for RHEL6
Felix Lu [Fri, 27 May 2016 18:43:55 +0000 (14:43 -0400)]
Fix build for RHEL6

8 years agoFix PR20161 by handling VM_FAULT_MINOR being removed from rawhide kernels.
David Smith [Fri, 27 May 2016 18:08:36 +0000 (13:08 -0500)]
Fix PR20161 by handling VM_FAULT_MINOR being removed from rawhide kernels.

* tapset/linux/memory.stp (vm_fault_contains): Handle VM_FAULT_MINOR being
  undefined by treating it the same way we did when it had the value of 0.

8 years agoFix PR20158 by updating the runtime for the 4.6 kernel.
David Smith [Fri, 27 May 2016 16:19:03 +0000 (11:19 -0500)]
Fix PR20158 by updating the runtime for the 4.6 kernel.

* buildrun.cxx (compile_pass): Added autoconf-stacktrace_ops-int-address.c
  compile test.
* stack.c: (print_stack_address): If STAPCONF_STACKTRACE_OPS_INT_ADDRESS
  is defined, the function returns a int instead of being a void
  function.
* runtime/linux/autoconf-stacktrace_ops-int-address.c: New autoconf-style
  test.

8 years agoPR20056: add missing ==
Felix Lu [Thu, 26 May 2016 20:45:10 +0000 (16:45 -0400)]
PR20056: add missing ==

8 years agoPR20056: add a comment
Felix Lu [Thu, 26 May 2016 20:20:00 +0000 (16:20 -0400)]
PR20056: add a comment

8 years agoPR20056: improve parser error message
Felix Lu [Thu, 26 May 2016 20:06:19 +0000 (16:06 -0400)]
PR20056: improve parser error message

* parse.cxx: new function expect_op_any, use new function for expecting
  a list of alternatives.

8 years agoFix PR20131 by making wildcard library paths work in probe specifications.
David Smith [Thu, 26 May 2016 19:17:58 +0000 (14:17 -0500)]
Fix PR20131 by making wildcard library paths work in probe specifications.

* tapsets.cxx (dwarf_builder::build): Fix logic error with commit
  c30ff77. If the library path isn't fully resolved, then use the path the
  user specified.
* testsuite/systemtap.base/listing_mode.exp: Decrease failures by being
  more forgiving about getting a full library path in 'stap -l' output.

8 years agoPR19624: add test cases
Cody Santing [Tue, 24 May 2016 20:22:43 +0000 (16:22 -0400)]
PR19624: add test cases

testsuite/parseko/duplicateparam01.stp
testsuite/parseko/duplicateparam02.stp
testsuite/parseko/duplicateparam03.stp

8 years agoPR19624: Duplicate function paramater names are not detected
Cody Santing [Tue, 24 May 2016 19:01:43 +0000 (15:01 -0400)]
PR19624: Duplicate function paramater names are not detected

parse.cxx (do_parse_functiondecl): detects duplicate parameter names

8 years agoMade a small improvement to testsuite/lib/systemtap.exp.
David Smith [Tue, 24 May 2016 16:48:25 +0000 (11:48 -0500)]
Made a small improvement to testsuite/lib/systemtap.exp.

* testsuite/lib/systemtap.exp: Rearrange a bit so that the
  'shutdown_server' and 'cleanup' functions get defined before being
  called.

8 years agoFix PR20132 by updating the runtime to handle a 'struct inode' change.
David Smith [Mon, 23 May 2016 18:56:29 +0000 (13:56 -0500)]
Fix PR20132 by updating the runtime to handle a 'struct inode' change.

* runtime/transport/transport.c (_stp_lock_inode): Use the new inode
  lock/unlock routines.
  (_stp_unlock_inode): Ditto.
* buildrun.cxx (compile_pass): Add autoconf-inode-rwsem test.
* runtime/linux/autoconf-inode-rwsem.c: New 'autoconf' test.

8 years agoUpdate listing_mode.exp to handle changes in stap output.
David Smith [Mon, 23 May 2016 15:31:02 +0000 (10:31 -0500)]
Update listing_mode.exp to handle changes in stap output.

* testsuite/systemtap.base/listing_mode.exp: Decrease failures by being
  more forgiving about getting a full library path in 'stap -l' output.

8 years agoFix PR17055 by reading perf values in a sleepable context.
David Smith [Mon, 23 May 2016 15:26:08 +0000 (10:26 -0500)]
Fix PR17055 by reading perf values in a sleepable context.

* tapsets.cxx (common_probe_entryfn_prologue): Add 'declaration_callback'
  and 'pre_context_callback' to allow callers to add to output prologue.
  (dwarf_derived_probe::emit_probe_local_init): For perf values, instead
  of reading the values here, just copy the values from where we stashed
  them when we read them before (when we could sleep).
  (uprobe_derived_probe::emit_perf_read_handler): New function.
  (uprobe_derived_probe_group::emit_module_perf_read_handlers): Ditto.
  (udpg_entryfn_prologue_declaration_callback): Ditto.
  (udpg_entryfn_prologue_pre_context_callback): Ditto.
  (uprobe_derived_probe_group::emit_module_utrace_decls): Call
  new function emit_module_perf_read_handlers().
  (uprobe_derived_probe_group::emit_module_decls): Figure out the maximun
  number of perf counters used per probe.
* tapsets.h: Add new callbacks to common_probe_entryfn_prologue().
* runtime/linux/uprobes-common.h (stap_uprobe_spec): Add
  'perf_read_handler' to actually read perf values.
* runtime/linux/uprobes-inode.c (stapiu_consumer): Ditto.
* runtime/linux/runtime.h: After loading the task_finder code, load the
  perf code if needed.
* runtime/common_probe_context.h: Add 'perf_read_values' to the context
  structure when we're using perf derived probes.
* testsuite/systemtap.base/perf.sh: Change '/usr/bin/cat' to '/bin/cat' so
  that systems (like RHEL6) that don't have 'usrmove' will still work.

8 years agoFix PR20122 by removing LD_LIBRARY_PATH from the environment.
Martin Cermak [Fri, 20 May 2016 14:54:47 +0000 (16:54 +0200)]
Fix PR20122 by removing LD_LIBRARY_PATH from the environment.

8 years agoset -i as default for stap-server.service
Felix Lu [Thu, 19 May 2016 18:13:03 +0000 (14:13 -0400)]
set -i as default for stap-server.service

8 years agoreplace -c 'sleep' usage with -T
Felix Lu [Thu, 19 May 2016 13:50:30 +0000 (09:50 -0400)]
replace -c 'sleep' usage with -T

8 years agoFix PR19926 by introducing translator built-in @const() operator.
Martin Cermak [Thu, 19 May 2016 09:07:19 +0000 (11:07 +0200)]
Fix PR19926 by introducing translator built-in @const() operator.

Tapsets or guru-mode user scripts can access header file constant
tokens, typically macros, using built-in @const() operator.  The
respective header file inclusion is possible either via the tapset
library, or using a top-level guru mode embedded-C construct.
This results in appropriate embedded C pragma comments setting.

8 years agodwflpp.cxx auto-iteration
Josh Stone [Wed, 18 May 2016 00:27:51 +0000 (17:27 -0700)]
dwflpp.cxx auto-iteration

Converting explicit iterator types to C++11 "auto".

8 years agotapsets.cxx iterator auto-pocalypse
Josh Stone [Tue, 17 May 2016 22:26:55 +0000 (15:26 -0700)]
tapsets.cxx iterator auto-pocalypse

Iterators might be the most common place where long templated types are
needed, and they're easily determined by C++11 "auto". Start converting!

8 years agotapsets: use levenshtein_suggest for kprobe.function
Josh Stone [Tue, 17 May 2016 21:03:47 +0000 (14:03 -0700)]
tapsets: use levenshtein_suggest for kprobe.function

8 years agonew -T timeout option
Felix Lu [Tue, 17 May 2016 18:13:13 +0000 (14:13 -0400)]
new -T timeout option

* cmdline.h: Add -T flag
* elaborate.cxx: New function setup_timeout to create timer probe
* session.cxx: Initialize new timeout variable. Parse -T option
* session.h: New timeout variable
* man/stap.1.in: Documentation
* testsuite/systemtap.base/timeout.exp: Test it

8 years agoInitialize pointer
Felix Lu [Mon, 16 May 2016 20:48:52 +0000 (16:48 -0400)]
Initialize pointer

* stap-serverd.cxx: initialize strlst

8 years agomonitor mode: fix printing of globals
Felix Lu [Mon, 16 May 2016 18:06:56 +0000 (14:06 -0400)]
monitor mode: fix printing of globals

Previously, aggregates were not being printed properly. The count of the
aggregate is now printed. String globals are now printed with ""s.

* elaborate.cxx:
  - semantic_pass: initialize monitor mode after type resolution.
  - monitor_mode_init: rerun type resolution after new procfs probes.

8 years agocompile server: use only one server for multiple kernel versions
Felix Lu [Wed, 11 May 2016 18:02:27 +0000 (14:02 -0400)]
compile server: use only one server for multiple kernel versions

* stap-serverd.cxx:
  - Remove uname_r global
  - kernel_build_tree is now a map of kernel version -> build tree
  - process_r: Defer adding -r flag
  - create_services: Create one service per target kernel version
  - handle_request: Pass -r flag to stap based on client's sysinfo field
* stap-server:
  - spawn only one server passing -r flags for each kernel version when
    using the -i option

8 years agomonitor mode: revive the help hint
Felix Lu [Fri, 13 May 2016 17:28:51 +0000 (13:28 -0400)]
monitor mode: revive the help hint

8 years agoeventcount sample: reorder columns
Frank Ch. Eigler [Thu, 12 May 2016 21:40:10 +0000 (17:40 -0400)]
eventcount sample: reorder columns

The event count/rate columns are of a more predictable width, so fit
better in the middle than the far right.

8 years agoelaborate.cxx: add some respect for pending_interrupt
Frank Ch. Eigler [Thu, 12 May 2016 15:28:21 +0000 (11:28 -0400)]
elaborate.cxx: add some respect for pending_interrupt

Some wildcardy stap scripts can cause processing for quite awhile
within elaborate.cxx loops, without due respect for ^C.  Now respond
quicker, at least in the cases relevant to

  ./stap -v  .../fntimes.stp 'process("/usr/sbin/PROCESS").function("*")'

8 years agoPR20065: autoreconf after 'aclocal -Im4 --install'
Josh Stone [Mon, 9 May 2016 21:17:07 +0000 (14:17 -0700)]
PR20065: autoreconf after 'aclocal -Im4 --install'

8 years agoLink monitor libs to stapio only
Francis Giraldeau [Mon, 9 May 2016 21:12:07 +0000 (14:12 -0700)]
Link monitor libs to stapio only

8 years agoPR20042: support tracepoints with function-pointer args
Josh Stone [Fri, 6 May 2016 23:43:37 +0000 (16:43 -0700)]
PR20042: support tracepoints with function-pointer args

For example, tracepoint "cpuhp_enter" has "int (*fun)(unsigned int))",
but since dwarf_type_name() didn't handle DW_TAG_subroutine_type, it
would call this "void*", and then the whole tracepoint function
signature would fail -Werror=incompatible-pointer-types.

We can now expand function-pointers in dwarf_type_name(), but we also
need a new dwarf_type_decl() which knows how to insert the name in the
middle of the type string.

8 years ago_stp_perf_read: check the union type before accessing fields
Josh Stone [Thu, 5 May 2016 20:16:50 +0000 (13:16 -0700)]
_stp_perf_read: check the union type before accessing fields

8 years agoUse std::mutex to guard the spawned_pids set
Josh Stone [Tue, 3 May 2016 22:04:37 +0000 (15:04 -0700)]
Use std::mutex to guard the spawned_pids set

8 years agoUse std::thread for threading and CPU counts
Josh Stone [Tue, 3 May 2016 22:03:33 +0000 (15:03 -0700)]
Use std::thread for threading and CPU counts

8 years agoFix PR20040 by keeping the task_exe_file function from sleeping.
David Smith [Tue, 3 May 2016 18:23:58 +0000 (13:23 -0500)]
Fix PR20040 by keeping the task_exe_file function from sleeping.

* tapset/linux/task.stp: No longer call get_task_mm()/mmput(), so that the
  function won't sleep and cause kernel bugs.

8 years agodwflpp: use fixed-size buffers for ldd parsing
Josh Stone [Tue, 3 May 2016 01:43:28 +0000 (18:43 -0700)]
dwflpp: use fixed-size buffers for ldd parsing

The dynamic string allocation causes trouble on RHEL5 -- %as is always
parsed as a float under C++11, but %ms requires glibc >= 2.7.  But we
already used a fixed buffer for the line, so additional fixed buffers
are not a big deal for its substrings.

8 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Josh Stone [Mon, 2 May 2016 23:41:33 +0000 (16:41 -0700)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

8 years agoremote: use initializer lists to build cmd vectors
Josh Stone [Mon, 2 May 2016 20:36:56 +0000 (13:36 -0700)]
remote: use initializer lists to build cmd vectors

8 years agostap-serverd: use initializer lists to build cmd vectors
Josh Stone [Mon, 2 May 2016 20:04:15 +0000 (13:04 -0700)]
stap-serverd: use initializer lists to build cmd vectors

8 years agosession: use initializer lists to build cmd vectors
Josh Stone [Mon, 2 May 2016 19:51:26 +0000 (12:51 -0700)]
session: use initializer lists to build cmd vectors

8 years agocsclient: use initializer lists to build cmd vectors
Josh Stone [Mon, 2 May 2016 19:39:45 +0000 (12:39 -0700)]
csclient: use initializer lists to build cmd vectors

8 years agobuildrun: use initializer lists to build cmd vectors
Josh Stone [Mon, 2 May 2016 19:30:54 +0000 (12:30 -0700)]
buildrun: use initializer lists to build cmd vectors

8 years agoutil.h: double-check C++11 support
Josh Stone [Mon, 2 May 2016 18:29:41 +0000 (11:29 -0700)]
util.h: double-check C++11 support

8 years agoPlug preempt leak in _stp_runtime_entryfn_put/get_context.
Mateusz Guzik [Mon, 2 May 2016 17:28:55 +0000 (12:28 -0500)]
Plug preempt leak in _stp_runtime_entryfn_put/get_context.

If _stp_runtime_entryfn_get_context returns a context, preemption
counter is always incremented. On the other hand
_stp_runtime_entryfn_put_context only decrements the counter if the
passed context matches the one currently set on the cpu.

The context can be set to NULL by _stp_runtime_contexts_free, making the
comparison false and in effect leading to a leak, e.g.:
timer: _stp_ctl_work_callback+0x0/0x1e0[stap_af8544c7eb51251ef8c
 377abff659b05_25070] preempt leak: 00000101 -> 00000102

8 years agomonitor mode: remove pipe
Felix Lu [Fri, 29 Apr 2016 19:50:29 +0000 (15:50 -0400)]
monitor mode: remove pipe

Save output to monitor ring buffer directly instead of sending it
through a pipe.

* staprun/mainloop.c: remove pipe fd from fd set
* staprun/monitor.c: remove pipe data processing, add mutex for ring
  buffer
* staprun/relay.c:
  reader_thread - add line processing logic
  init_relayfs - remove pipe
* staprun/staprun.h - remove pipe

8 years agoFix: process.library.function failed with sysroot.
Torsten Polle [Wed, 3 Dec 2014 21:17:14 +0000 (22:17 +0100)]
Fix: process.library.function failed with sysroot.

Signed-off-by: Torsten Polle <Torsten.Polle@gmx.de>
8 years agoFix: Processes are not found.
Torsten Polle [Fri, 13 Jun 2014 20:36:44 +0000 (22:36 +0200)]
Fix: Processes are not found.

If sysroot is set, module_val will get sysroot as prefix. But
is_fully_resolved() is appending sysroot once more.

Signed-off-by: Torsten Polle <Torsten.Polle@gmx.de>
8 years agoFix: Debug links are not found if the sysroot is used.
Torsten Polle [Thu, 6 Mar 2014 20:38:49 +0000 (21:38 +0100)]
Fix: Debug links are not found if the sysroot is used.

Signed-off-by: Torsten Polle <Torsten.Polle@gmx.de>
8 years agoSupport the sysroot option for modules added for symbol/unwind information
Torsten Polle [Fri, 13 Dec 2013 22:26:07 +0000 (23:26 +0100)]
Support the sysroot option for modules added for symbol/unwind information

The sysroot option failed for modules added for their symbol/unwind
information. Those user module names are prepended by sysroot.

Signed-off-by: Torsten Polle <Torsten.Polle@gmx.de>
8 years agoSpecialize hash<interned_string> for the different implementations
Josh Stone [Sat, 30 Apr 2016 01:54:29 +0000 (18:54 -0700)]
Specialize hash<interned_string> for the different implementations

We need the custom hash for boost::string_ref, but the fallback based on
std::string can just forward its hashing.

Also note C++17's std::string_view, which hashes natively.

8 years agonote the possible use of std::string_view
Josh Stone [Sat, 30 Apr 2016 01:34:07 +0000 (18:34 -0700)]
note the possible use of std::string_view

8 years agoDissolve unordered.h
Josh Stone [Sat, 30 Apr 2016 01:30:34 +0000 (18:30 -0700)]
Dissolve unordered.h

8 years agoUse std::unordered_map et al
Josh Stone [Sat, 30 Apr 2016 00:56:01 +0000 (17:56 -0700)]
Use std::unordered_map et al

8 years agoRemove the unused auto_free.h
Josh Stone [Sat, 30 Apr 2016 00:29:59 +0000 (17:29 -0700)]
Remove the unused auto_free.h

If anyone wants similar functionality again, unique_ptr and shared_ptr
can take custom deleters, e.g. std::unique_ptr(p, std::free);

8 years agoUse make_shared for creating exp_types
Josh Stone [Sat, 30 Apr 2016 00:22:05 +0000 (17:22 -0700)]
Use make_shared for creating exp_types

8 years agoAlways use std::shared_ptr rather than boost's
Josh Stone [Sat, 30 Apr 2016 00:02:01 +0000 (17:02 -0700)]
Always use std::shared_ptr rather than boost's

Also demonstrate better "auto" and "make_shared" use in stapdyn.

8 years agoAssume unique_ptr is available now
Josh Stone [Fri, 29 Apr 2016 23:11:33 +0000 (16:11 -0700)]
Assume unique_ptr is available now

8 years agostapdyn: always use decltype instead of typeof
Josh Stone [Fri, 29 Apr 2016 22:49:42 +0000 (15:49 -0700)]
stapdyn: always use decltype instead of typeof

The former is standard C++11, and the latter is a compiler extension.
They work equivalently as used here.

8 years agoautoreconf -i
Josh Stone [Fri, 29 Apr 2016 22:48:34 +0000 (15:48 -0700)]
autoreconf -i

8 years agoconfigure: make C++11 mandatory
Josh Stone [Fri, 29 Apr 2016 22:09:56 +0000 (15:09 -0700)]
configure: make C++11 mandatory

We'll use RHEL6 (GCC 4.4) as our baseline.  This doesn't have full C++11
support, but it's enough for us to see some benefit.

8 years agoImproved fake utrace locking.
David Smith [Thu, 28 Apr 2016 15:59:50 +0000 (10:59 -0500)]
Improved fake utrace locking.

* runtime/stp_utrace.c: Fixed potential locking issues by changing the
  'task_work_added' and 'report_work_added' members of 'struct
  utrace' to be atomic variables. In the process, I also renamed
  'task_work_added' to 'resume_work_added'. As atomice variables, they can
  be modified without locking the utrace struct. Also renamed the 'work'
  member of 'struct utrace' to 'resume_work' (to match up with
  'resume_work_added').

8 years agoFix PR19954 by avoiding "suspicious RCU usage" message.
David Smith [Thu, 28 Apr 2016 15:20:47 +0000 (10:20 -0500)]
Fix PR19954 by avoiding "suspicious RCU usage" message.

* runtime/transport/symbols.c (_stp_module_update_self): Properly handle
  RCU locking when retrieving the 'kallsyms' member of the module
  structure.

8 years agomonitor mode: some improvements
Felix Lu [Wed, 27 Apr 2016 20:38:59 +0000 (16:38 -0400)]
monitor mode: some improvements

Increased size of help window, fixed probe list scrolling

8 years agoPR20013: stap --dump-functions broken
Felix Lu [Wed, 27 Apr 2016 18:29:26 +0000 (14:29 -0400)]
PR20013: stap --dump-functions broken

8 years agomonitor mode: some refactoring, add a border to status window
Felix Lu [Wed, 27 Apr 2016 17:10:58 +0000 (13:10 -0400)]
monitor mode: some refactoring, add a border to status window

8 years agostaprun: reinstate -d '*' operation
Frank Ch. Eigler [Tue, 26 Apr 2016 21:02:33 +0000 (17:02 -0400)]
staprun: reinstate -d '*' operation

PR14245 created a new relay_basedir_fd variable, for use when
staprun/stapio passes staprun a file descriptor for the base directory
of the sysfs systemtap-module directory.  (This is necessary in order
to get around 0700 mount-dir permissions.)  This broke staprun -d '*'
operation, since that variable got set (badly) once within the readdir
loop, and thence made actual removes inoperative.  Now we clear out
that variable so each actual module subdirectory will get a good
cleaning.

8 years agomonitor mode: bugfix
Felix Lu [Tue, 26 Apr 2016 20:48:27 +0000 (16:48 -0400)]
monitor mode: bugfix

Fix an off by 1 error and always flush output.

8 years agomonitor mode: Use pop up panel for help message
Felix Lu [Mon, 25 Apr 2016 17:54:44 +0000 (13:54 -0400)]
monitor mode: Use pop up panel for help message

8 years agomonitor mode: simplify scrolling
Felix Lu [Fri, 22 Apr 2016 18:04:51 +0000 (14:04 -0400)]
monitor mode: simplify scrolling

Tab is now used to select the window to perform scrolling on.

8 years agoFix PR19990 by updating runtime/linux/access_process_vm.h.
David Smith [Mon, 25 Apr 2016 15:02:36 +0000 (10:02 -0500)]
Fix PR19990 by updating runtime/linux/access_process_vm.h.

* runtime/linux/access_process_vm.h (__access_process_vm_): Use
  get_user_pages_remote() when available.
* buildrun.cxx (compile_pass): Added export test for
  'get_user_pages_remote()'.

8 years agoAvoid using tcl exec command "-ignorestderr" option
William Cohen [Fri, 15 Apr 2016 19:15:22 +0000 (15:15 -0400)]
Avoid using tcl exec command "-ignorestderr" option

In older versions of tcl the exec command does not support the
"-ignorestderr" option.  Changed the code to redirected the stderr
output to /dev/null which works on both older and newer versions of
tcl.

8 years agoinstallcheck-parallel: show end of systemtap.sum when done
Frank Ch. Eigler [Thu, 14 Apr 2016 19:25:54 +0000 (15:25 -0400)]
installcheck-parallel: show end of systemtap.sum when done

8 years agoRemove empty script file warning for tapset files
Felix Lu [Wed, 13 Apr 2016 21:24:22 +0000 (17:24 -0400)]
Remove empty script file warning for tapset files

Empty tapset files warnings are now suppressed and not removed.
Empty user level scripts still have this warning.

8 years agoAutoreconf following commit 6a32afe.
Martin Cermak [Wed, 13 Apr 2016 17:24:55 +0000 (19:24 +0200)]
Autoreconf following commit 6a32afe.

8 years agoFix testsuite's installcheck-parallel behavior for stap not in $PATH.
Martin Cermak [Wed, 13 Apr 2016 17:19:49 +0000 (19:19 +0200)]
Fix testsuite's installcheck-parallel behavior for stap not in $PATH.

This fixes the testsuite's installcheck-parallel target so that it
works even when stap binary resides on some place not referenced
within $PATH.

Note that we want to stop the testing in case environment_sanity.exp
fails.  For this reason we need to avoid calling runtest using
the execrc script.

8 years agoRemove a blacklist regular expression that wasn't needed.
David Smith [Wed, 13 Apr 2016 15:11:17 +0000 (10:11 -0500)]
Remove a blacklist regular expression that wasn't needed.

* dwflpp.cxx (build_kernel_blacklist): Removed a blacklist regexp,
  "|raw_.*", since it didn't seem to match any locking functions as it was
  supposed to do.

8 years agoMove the testsuite's artifacts directory to the builddir.
Martin Cermak [Wed, 13 Apr 2016 13:31:33 +0000 (15:31 +0200)]
Move the testsuite's artifacts directory to the builddir.

This update is a response to PR10791#c15. It moves the artifacts
directory, introduced in commit 8093ef39b, to the build directory
avoiding writes to the source directory.

8 years agoModify the dry run mode for the network/socktop example.
Martin Cermak [Wed, 13 Apr 2016 13:22:10 +0000 (15:22 +0200)]
Modify the dry run mode for the network/socktop example.

We want to avoid testsuite writing into the source directory.
Before this update, when socktop has been run by check.exp as
a part of the testsuite run, it was copying the module to the
working directory.  We want to avoid this.

8 years agoFixed PR19940 by updating runtime/linux/access_process_vm.h.
David Smith [Mon, 11 Apr 2016 19:07:25 +0000 (14:07 -0500)]
Fixed PR19940 by updating runtime/linux/access_process_vm.h.

* runtime/linux/access_process_vm.h: Changed page_cache_release() to
  put_page().

8 years agoTerminate testsuite run if compiler sanity test fails.
Martin Cermak [Mon, 11 Apr 2016 07:55:20 +0000 (09:55 +0200)]
Terminate testsuite run if compiler sanity test fails.

Ensure that the testsuite run terminates right at the beginning
if compiler sanity test fails.  This notably ensures that required
headers, object files and libraries are in place for the main arch,
as well as for the compat arch in the multilib environment.

8 years agoFix PR19905 by adding support for the preadv2/pwritev2 syscalls.
David Smith [Fri, 8 Apr 2016 18:59:04 +0000 (13:59 -0500)]
Fix PR19905 by adding support for the preadv2/pwritev2 syscalls.

* tapset/linux/syscalls2.stp: Added preadv2/pwritev2 syscall probes.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/aux_syscalls.stp (_preadv2_flags_str): New function.
* testsuite/systemtap.syscall/preadv.c: Added preadv2() testing.
* testsuite/systemtap.syscall/pwritev.c: Added pwritev2() testing.

8 years agoImprove 64-bit file offset handling in syscall.preadv and syscall.pwritev.
David Smith [Fri, 8 Apr 2016 18:40:04 +0000 (13:40 -0500)]
Improve 64-bit file offset handling in syscall.preadv and syscall.pwritev.

* tapset/linux/syscalls2.stp (syscall.preadv): Improve handling of 64-bit
  offsets.
  (syscall.pwritev): Ditto.
* testsuite/systemtap.syscall/preadv.c: Turn on 64-bit file offsets and
  add tests to make sure we're decoding them properly.
* testsuite/systemtap.syscall/pwritev.c: Ditto.

8 years agoAdd missing asmlinkage() calls to nd_syscall.{membarrier,userfaultfd}.
David Smith [Thu, 7 Apr 2016 14:04:20 +0000 (09:04 -0500)]
Add missing asmlinkage() calls to nd_syscall.{membarrier,userfaultfd}.

* tapset/linux/nd_syscalls.stp (nd_syscall.membarrier): Add missing
  asmlinkage() call.
* tapset/linux/nd_syscalls2.stp (nd_syscall.userfaultfd): Ditto.

8 years agoAdd the testsuite parallel testing feature.
Martin Cermak [Wed, 6 Apr 2016 19:37:03 +0000 (21:37 +0200)]
Add the testsuite parallel testing feature.

This merges updates from the mcermak/paralleltest branch into the master.

8 years agoFix PR19915 by correctly updating the wsize.
Martin Cermak [Wed, 6 Apr 2016 15:22:43 +0000 (17:22 +0200)]
Fix PR19915 by correctly updating the wsize.

8 years agotapset docs: ctime overloading
Frank Ch. Eigler [Tue, 5 Apr 2016 15:11:55 +0000 (11:11 -0400)]
tapset docs: ctime overloading

Vincent Bernat reported problems building with --enable-htmldocs due
to the newly overloaded ctime() function docs.  Tweak the /** */
docs for the second overload, so as to suffer errors in neither
html nor pdf build phases.

8 years agoFix typo in SystemTap_Tapset_Reference/man3
Masanari Iida [Thu, 31 Mar 2016 04:04:45 +0000 (13:04 +0900)]
Fix typo in SystemTap_Tapset_Reference/man3

This patch fix some spelling typos found in
doc/SystemTap_Tapset_Reference/man3.

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
8 years agoFinish fixing PR19882 by updating support for the copy_file_range() syscall.
David Smith [Wed, 30 Mar 2016 17:23:27 +0000 (12:23 -0500)]
Finish fixing PR19882 by updating support for the copy_file_range() syscall.

* tapset/linux/syscalls.stp: Corrected argstr formatting for
  'copy_file_range'.
* tapset/linux/nd_syscalls.stp: Corrected argstr formatting and types for
  'copy_file_range'.
* testsuite/buildok/nd_syscalls-detailed.stp: Updated copy_file_range test.
* testsuite/buildok/syscalls-detailed.stp: Ditto.
* testsuite/systemtap.syscall/copy_file_range.c: Got copy_file_range()
  test working.

8 years agoPR19882: add copy_file_range syscall supportt
Abegail Jakop [Tue, 29 Mar 2016 23:03:32 +0000 (19:03 -0400)]
PR19882: add copy_file_range syscall supportt

tapset/linux/nd_syscalls.stp: kprobe based syscall probe for
copy_file_range syscall
tapset/linux/syscalls.stp: kernel function based syscall probe for
copy_file_range syscall
buildok/[nd_]syscalls-detailed.stp: basic buildok tests for the new
probe points
copy_file_range.c: test file to check new tapset functionality

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