]> sourceware.org Git - systemtap.git/log
systemtap.git
10 years agotranslate.cxx: use function in place of comparison
Abegail Jakop [Mon, 11 Aug 2014 15:17:10 +0000 (11:17 -0400)]
translate.cxx: use function in place of comparison

10 years agotranslate.cxx: reduce actionremaining after function calls
Abegail Jakop [Mon, 11 Aug 2014 14:31:47 +0000 (10:31 -0400)]
translate.cxx: reduce actionremaining after function calls

10 years agotestsuite: assuage worries of MCE/memory-failure dmesg during syscall tests
Frank Ch. Eigler [Sun, 10 Aug 2014 01:45:39 +0000 (21:45 -0400)]
testsuite: assuage worries of MCE/memory-failure dmesg during syscall tests

10 years agoPR17249: tolerate early module notifier calls with null mod->sect_attrs
Frank Ch. Eigler [Sun, 10 Aug 2014 01:16:32 +0000 (21:16 -0400)]
PR17249: tolerate early module notifier calls with null mod->sect_attrs

In the case of MODULE_STATE_COMING, we may encounter NULL sect_attrs,
and we must not crash.  Sadly, that case can mean the loss of ability
to probe module-init functions - i.e., breaking the bz6503 test case.

* runtime/transport/symbols.c (_stp_module_notifier): Don't assume
  that mod->sect_attrs is valid.  Treat COMING|LIVE notifications
  similarly, except LIVE should assume init.* gone gone gone,
  she been gone so long, she been gone gone gone so long.

10 years agoPR17232 take #3: mutex the control messages
Frank Ch. Eigler [Sun, 10 Aug 2014 01:31:34 +0000 (21:31 -0400)]
PR17232 take #3: mutex the control messages

As per jistone's advice, simplify control message control by imposing
a mutex over the whole receive-side handling of a ctl message.  That
precludes concurrent or reentrant messages (independent of /ctl
open-time limits or threading assumptions).  It lets the start and
exit handling functions keep track with fewer state variables.

In a way, this elaborates upon a reversion of commit #262f7598.

* runtime/transport/control.c (_stp_ctl_write_cmd): Use a new static
  cmd_mutex for ctl message handling.  Don't bother with counters and
  flags for startedness etc; let the lower level functions handle
  that.  Handle error exits via goto out instead of return to assure
  mutex unlocks.
* runtime/transport/transport.c (_stp_handle_start,
  _stp_cleanup_and_exit): Drop the stp_transport_mutex control,
  explain why unnecessary.  Be more paranoid during module-notifier
  cleanup.

10 years agoPR17232 variant #2: in runtime, let STP_EXIT nest within STP_START
Frank Ch. Eigler [Sat, 9 Aug 2014 00:31:01 +0000 (20:31 -0400)]
PR17232 variant #2: in runtime, let STP_EXIT nest within STP_START

Uncommitted variant #1 consisted of using module refcounts in the
generated systemtap_module_init/exit function pair to ensure that an
uncleaned module cannot be unloaded.  That precluded cleanup via
rmmod(8), so a robust but inconvenient solution.

This variant #2 consists of a surgical fix, wherein an STP_EXIT
message comes in during an STP_START is used to set an atomic flag for
deferred _stp_cleanup_and_exit() handling.

A variant #3 is coming soon, using a protocol-wide command-message
mutex, like we did back before commit #262f7598.

10 years agotapsets.cxx: add -DDEBUG_KPROBES tracing option for k*probe [un]registration
Frank Ch. Eigler [Fri, 8 Aug 2014 20:58:37 +0000 (16:58 -0400)]
tapsets.cxx: add -DDEBUG_KPROBES tracing option for k*probe [un]registration

10 years agoruntime: let _stp_print_flush() talk less on -DDEBUG_TRANS
Frank Ch. Eigler [Fri, 8 Aug 2014 20:56:32 +0000 (16:56 -0400)]
runtime: let _stp_print_flush() talk less on -DDEBUG_TRANS

A 0-length call is very common and uninformative.

10 years agoregenerate examples index
Josh Stone [Fri, 8 Aug 2014 23:34:15 +0000 (16:34 -0700)]
regenerate examples index

10 years agotapset: explicitly mark probing_32bit_app() long
Josh Stone [Fri, 8 Aug 2014 22:11:45 +0000 (15:11 -0700)]
tapset: explicitly mark probing_32bit_app() long

10 years agoPR17242: Initialize tapset global arrays early on
Josh Stone [Fri, 8 Aug 2014 20:46:56 +0000 (13:46 -0700)]
PR17242: Initialize tapset global arrays early on

Some of the tapset arrays were lazy-initialized on their function's
first call, but that requires the caller to always take a write lock,
and also makes those functions impure.

Now there is a "probe init" alias for the earliest possible begin probe,
and all of these arrays use that alias to initialize their contents.
None of these are big enough to expect noticeable overhead from having
to always initialize them.

10 years agoKeep perf counters in a vector instead of an unordered map.
Stan Cox [Fri, 8 Aug 2014 18:31:23 +0000 (14:31 -0400)]
Keep perf counters in a vector instead of an unordered map.

* session.h (perf_counters): Use a vector instead of unordered map so
  iteration is in a predictable order.
* tapsets.cxx (visit_perf_op): Use it.
  (dwarf_derived_probe): Likewise
  (emit_probe_local_init): Likewise
  (emit_module_utrace_decls): Likewise
  (emit_module_inode_decls): Likewise
* tapset-perfmon.cxx (perf_builder::build): Likewise
* elaborate.h (perf_counter_refs): Make a set of strings.
* perf.sh:  New test.
* perf.exp: Use it.

10 years agostap.1: mention sysrq-x secureboot-disabling keystroke on some kernels
Frank Ch. Eigler [Wed, 6 Aug 2014 23:27:18 +0000 (19:27 -0400)]
stap.1: mention sysrq-x secureboot-disabling keystroke on some kernels

10 years agoAdd Secure Boot blurb to man/stap.1.
David Smith [Tue, 5 Aug 2014 21:12:33 +0000 (16:12 -0500)]
Add Secure Boot blurb to man/stap.1.

10 years agoPR16716 partial fix: Fix types in 'syscall.{ftruncate,[l]lseek,truncate}'.
David Smith [Tue, 5 Aug 2014 18:24:59 +0000 (13:24 -0500)]
PR16716 partial fix: Fix types in 'syscall.{ftruncate,[l]lseek,truncate}'.

* tapset/linux/syscalls.stp: Fix syscall.ftruncate[64], syscall.llseek,
  and syscall.lseek types and nesting.
* tapset/linux/syscalls2.stp: Fix syscall.truncate types, nesting, and
  formatting.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/nd_syscalls.stp: Fix nd_syscall.ftruncate nesting and
  formatting.
* tapset/linux/aux_syscalls.stp (_seek_whence_str): Update.
* runtime/linux/compat_unistd.h: Add '__NR_[gs]etsockopt' defines.
* testsuite/systemtap.syscall/readwrite.c: Add more tests.
* testsuite/systemtap.syscall/trunc.c: Ditto.

10 years agoNEWS: retroactively add secureboot wiki link
Frank Ch. Eigler [Mon, 4 Aug 2014 21:23:43 +0000 (17:23 -0400)]
NEWS: retroactively add secureboot wiki link

10 years agoKeep list of perf counters in an unordered list.
Stan Cox [Fri, 1 Aug 2014 20:22:36 +0000 (16:22 -0400)]
Keep list of perf counters in an unordered list.

* session.h (perf_counters):  Use unordered_map instead of map.
* tapsets.cxx:  Likewise for all perf_counters iterators.

10 years agoAdd scripts to test systemtap probes on a set of kernel functions.
David Smith [Fri, 1 Aug 2014 15:53:18 +0000 (10:53 -0500)]
Add scripts to test systemtap probes on a set of kernel functions.

* scripts/kprobes_test/stap_probes_test.py: New script. While debugging
  PR17140, I needed a script to bisect a list of kernel functions to put
  systemtap probes on.
* scripts/kprobes_test/stap_gen_code.py: Ditto.
* scripts/kprobes_test/stap_run_module.py: Ditto.
* scripts/kprobes_test/README: Update with better instructions.
* scripts/kprobes_test/config_opts.py: Update comments.
* scripts/kprobes_test/monitor_system.py: Add beaker system monitoring
  instructions.

10 years agoRemove dtrace --types sdt_misc test.
Stan Cox [Wed, 30 Jul 2014 20:24:44 +0000 (16:24 -0400)]
Remove dtrace --types sdt_misc test.

* (sdt_misc.exp, sdt_misc_.d):  Remove test for dtrace --types.
* listing_mode.exp: Fix typo.

10 years agosystemtap.exp: add timer probe to testsuite rc file
Abegail Jakop [Tue, 29 Jul 2014 18:49:15 +0000 (14:49 -0400)]
systemtap.exp: add timer probe to testsuite rc file

10 years agoAdd plt.return probes.
Stan Cox [Tue, 29 Jul 2014 01:07:39 +0000 (21:07 -0400)]
Add plt.return probes.

* tapsets.cxx (query_one_plt):  iterate_over_modules instead of
  derive_probes to reduce plt.statement visibility.
  (register_plt_variants): Remove plt.statement  Add plt.return
* plt.exp:  Add test for plt.return
* plt.stp:  Likewise
* list.exp (test_plt_list):  Likewise.
* listing_mode.exp: Remove plt.statement tests  Add plt.return tests
* unprivileged_myproc.exp Likewise.
* unprivileged_probes.exp Likewise.

10 years agoPR17101: tweak NEWS
Frank Ch. Eigler [Fri, 25 Jul 2014 19:35:09 +0000 (15:35 -0400)]
PR17101: tweak NEWS

Make another -E suggestion.

10 years agoPR17101: updated docs and added a test case
Abegail Jakop [Fri, 25 Jul 2014 18:41:55 +0000 (14:41 -0400)]
PR17101: updated docs and added a test case

10 years agoPR17101: allow additional scripts using -E SCRIPT
Abegail Jakop [Fri, 25 Jul 2014 18:34:29 +0000 (14:34 -0400)]
PR17101: allow additional scripts using -E SCRIPT

cmdline: added "E" to the short options
elaborate: adapted to be able to perform the semantic pass on the
multiple inputs from user_files
main: parse and store the inputs in user_files, and give the additional
scripts new source "file" names (<input##>).
parse: parse function now has a parameter for the source "file" name
session: accept and store additional scripts for parsing, separate from
the cmdline_script. an additional script won't set have_script to true.

10 years agolatencytap.stp: explain another delay
Frank Ch. Eigler [Fri, 25 Jul 2014 17:18:04 +0000 (13:18 -0400)]
latencytap.stp: explain another delay

10 years agolatencytap sample: update, compress
Frank Ch. Eigler [Fri, 25 Jul 2014 17:08:55 +0000 (13:08 -0400)]
latencytap sample: update, compress

Added a few more unexplained backtraces (as visible with -Gdebug=1
runs), automated explanation-width calculations, and compressed the
initialization of the explanation/priority lookup tables.

10 years agosystemtap-service.exp: use catch with exec, increase timeouts
Martin Cermak [Wed, 23 Jul 2014 17:39:35 +0000 (19:39 +0200)]
systemtap-service.exp: use catch with exec, increase timeouts

10 years agoFixed PR17178 by updating syscall.[gs]etsockopt probes.
David Smith [Tue, 22 Jul 2014 20:55:48 +0000 (15:55 -0500)]
Fixed PR17178 by updating syscall.[gs]etsockopt probes.

* tapset/linux/syscalls.stp (syscall.getsockopt): Fixed to handle inlined
  calls to compat_sys_getsockopt() by decoding
  socketcall()/compat_sys_socketcall() calls instead.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/syscalls2.stp (syscall.compat_select): Fixed sign handling
  of 'n' argument.
  (syscall.setsockopt): Fixed to handle inlined calls to
  compat_sys_setsockopt() by decoding socketcall()/compat_sys_socketcall()
  instead.
* tapset/linux/nd_syscalls2.stp (nd_syscall.setsockopt): Fixed to handle
  inlined calls to compat_sys_setsockopt() by decoding
  socketcall()/compat_sys_socketcall() instead.

10 years agotranslator: propagate DWARF types through function returns
Josh Stone [Tue, 22 Jul 2014 19:51:15 +0000 (12:51 -0700)]
translator: propagate DWARF types through function returns

When all return statements are in agreement, their type_details are
copied to the functiondecl, and functioncalls may pick up the type.

10 years agotranslator: propagate types to .return saved vars
Josh Stone [Tue, 22 Jul 2014 17:22:12 +0000 (10:22 -0700)]
translator: propagate types to .return saved vars

10 years agoPR17191: redefine %license within each %files block
Frank Ch. Eigler [Tue, 22 Jul 2014 11:39:46 +0000 (07:39 -0400)]
PR17191: redefine %license within each %files block

10 years agoinitscript: check final initramfs for systemtap files
Jonathan Lebon [Mon, 21 Jul 2014 14:58:27 +0000 (10:58 -0400)]
initscript: check final initramfs for systemtap files

As a sanity-check for a successful initramfs creation, we check using
lsinitrd that if a script was inserted then the initramfs contains the
staprun executable. This would indicate that dracut properly picked up
the stap dracut module and included it in the initramfs.

10 years agoFix nd_syscalls use in syscalls_by_pid.stp
Josh Stone [Fri, 18 Jul 2014 22:51:47 +0000 (15:51 -0700)]
Fix nd_syscalls use in syscalls_by_pid.stp

10 years agoExempt from buildok/netfilter-glob.stp
Josh Stone [Fri, 18 Jul 2014 22:49:55 +0000 (15:49 -0700)]
Exempt from buildok/netfilter-glob.stp

10 years agoAdd a #! to transok/direct_rec_func.stp
Josh Stone [Fri, 18 Jul 2014 22:49:14 +0000 (15:49 -0700)]
Add a #! to transok/direct_rec_func.stp

10 years agoMerge remote-tracking branch 'origin/master' into autocast
Josh Stone [Fri, 18 Jul 2014 22:24:43 +0000 (15:24 -0700)]
Merge remote-tracking branch 'origin/master' into autocast

10 years agoFixed PR17181 by making utrace handle interrupting processes better.
David Smith [Fri, 18 Jul 2014 20:49:39 +0000 (15:49 -0500)]
Fixed PR17181 by making utrace handle interrupting processes better.

* runtime/stp_utrace.c (utrace_init): Use kallsyms_lookup_name() to lookup
  "wake_up_state" if needed.
  (stp_task_notify_resume): New function to handle the details of adding a
  resume handler.
  (utrace_cleanup): Only output debug printk's if STP_TF_DEBUG is defined.
  (utrace_set_events): Improve check.
  (utrace_do_stop): Call stp_task_notify_resume() instead of inline code.
  (utrace_wakeup): Call stp_wake_up_state() instead of wake_up_process()
  to avoid a WARN(). Call stp_task_notify_resume() instead of inline
  code.
  (utrace_control): Call stp_task_notify_resume() instead of inline code.
  (finish_report): Ditto.
  (finish_resume_report): Add UTRACE_INTERRUPT support.
  (utrace_resume): Handle UTRACE_INTERRUPT.
* runtime/linux/task_finder2.c (stap_task_finder_post_init): Go back to
  sending UTRACE_INTERRUPT to all tasks.
* buildrun.cxx (compile_pass): Add export tests for 'wake_up_state' and
  'try_to_wake_up'.
* runtime/linux/runtime.h: Added 'kallsyms_wake_up_state' declaration when
  necessary.
* testsuite/systemtap.base/process_resume.c: New file.
* testsuite/systemtap.base/process_resume.exp: New file.

10 years agozanata: turn of another crank
Frank Ch. Eigler [Wed, 16 Jul 2014 00:50:17 +0000 (20:50 -0400)]
zanata: turn of another crank

10 years agozanata: fine-tune zanata instructions, run through a regen cycle
Frank Ch. Eigler [Wed, 16 Jul 2014 00:04:56 +0000 (20:04 -0400)]
zanata: fine-tune zanata instructions, run through a regen cycle

10 years agoAdd get_number_param that accepts 'long long' parameter
William Cohen [Tue, 15 Jul 2014 23:58:45 +0000 (19:58 -0400)]
Add get_number_param that accepts 'long long' parameter

On 32-bit machines such as arm need to have version of get_number_param method
that takes 'long long' (64-bit) values.

10 years agodocument usage of zanata as online translation tool
Frank Ch. Eigler [Tue, 15 Jul 2014 23:46:12 +0000 (19:46 -0400)]
document usage of zanata as online translation tool

10 years agoMerge branch 'ajakop/17131'
Abegail Jakop [Tue, 15 Jul 2014 19:24:15 +0000 (15:24 -0400)]
Merge branch 'ajakop/17131'

10 years agoprocess_by_pid*: remove unnecessary sleep and ifs
Abegail Jakop [Tue, 15 Jul 2014 19:22:40 +0000 (15:22 -0400)]
process_by_pid*: remove unnecessary sleep and ifs

10 years agotapsets.cxx: moved ctor to fix issue with prev commit
Abegail Jakop [Tue, 15 Jul 2014 18:54:33 +0000 (14:54 -0400)]
tapsets.cxx: moved ctor to fix issue with prev commit

10 years agotapsets.cxx: rearranged code to reflect original order
Abegail Jakop [Tue, 15 Jul 2014 18:38:35 +0000 (14:38 -0400)]
tapsets.cxx: rearranged code to reflect original order

10 years agoNEWS: added blurbs about PID-based process probes
Abegail Jakop [Tue, 15 Jul 2014 16:00:34 +0000 (12:00 -0400)]
NEWS: added blurbs about PID-based process probes

10 years agoprocess_by_pid.* : test case for PR17131
Abegail Jakop [Tue, 15 Jul 2014 15:47:40 +0000 (11:47 -0400)]
process_by_pid.* : test case for PR17131

10 years agotestsuite kill proc: log failed kills
Jonathan Lebon [Mon, 14 Jul 2014 20:35:29 +0000 (16:35 -0400)]
testsuite kill proc: log failed kills

If kill doesn't terminate nicely, also log what it outputs.

10 years agotapsets.cxx: follow naming conventions and set pid_val
Abegail Jakop [Mon, 14 Jul 2014 21:28:46 +0000 (17:28 -0400)]
tapsets.cxx: follow naming conventions and set pid_val

10 years agoutrace_p4.exp: fixed probes to probe valid PIDs
Abegail Jakop [Mon, 14 Jul 2014 20:40:33 +0000 (16:40 -0400)]
utrace_p4.exp: fixed probes to probe valid PIDs

10 years agomax_action_info: don't emit if --suppress-time-limits given
Jonathan Lebon [Mon, 14 Jul 2014 19:15:28 +0000 (15:15 -0400)]
max_action_info: don't emit if --suppress-time-limits given

We don't want any action accounting when --suppress-time-limits is
given.

10 years agotapsets.cxx: limit dwarf process(PID) probes to PID
Abegail Jakop [Mon, 14 Jul 2014 15:13:12 +0000 (11:13 -0400)]
tapsets.cxx: limit dwarf process(PID) probes to PID

tapsets: for dwarf process(PID) probes restrict the probing to
that specific process instead of to the processes that run the
same program.

10 years agoFixed PR17155 by changing probefunc() with ppfunc in the examples.
David Smith [Mon, 14 Jul 2014 15:01:41 +0000 (10:01 -0500)]
Fixed PR17155 by changing probefunc() with ppfunc in the examples.

* testsuite/systemtap.examples/io/inodewatch.stp: Replaced probefunc()
  with ppfunc().
* testsuite/systemtap.examples/io/inodewatch2.stp: Ditto.
* testsuite/systemtap.examples/io/traceio2.stp: Ditto.
* testsuite/systemtap.examples/process/mutex-contention.stp: Ditto.
* testsuite/systemtap.examples/profiling/fntimes.stp: Ditto.
* testsuite/systemtap.examples/profiling/functioncallcount.stp: Ditto.
* testsuite/systemtap.examples/profiling/functioncallcount.meta: Add '-w'
  to stap line to avoid warnings on blacklisted functions.

10 years agoFix typo in systemtap.spec
Lukas Berk [Mon, 14 Jul 2014 12:08:55 +0000 (08:08 -0400)]
Fix typo in systemtap.spec

*systemtap.spec - remove '+' from license conditional

10 years agosystemtap.spec: migrate to %license tag for COPYING file
Frank Ch. Eigler [Sat, 12 Jul 2014 22:10:42 +0000 (18:10 -0400)]
systemtap.spec: migrate to %license tag for COPYING file

10 years agogoodbye transifex, hello zanata
Frank Ch. Eigler [Sat, 12 Jul 2014 22:10:28 +0000 (18:10 -0400)]
goodbye transifex, hello zanata

10 years agodrop proprietary transifex.com references
Frank Ch. Eigler [Fri, 11 Jul 2014 17:11:28 +0000 (13:11 -0400)]
drop proprietary transifex.com references

10 years agomodules_out_of_tree.exp: adapt for RHEL5
Jonathan Lebon [Thu, 10 Jul 2014 21:08:23 +0000 (17:08 -0400)]
modules_out_of_tree.exp: adapt for RHEL5

We put the opening braces on the same line as the function declaration
so that the reported lineno in listing mode is the same on RHEL5 GCC
(which considered the opening brace as the decl_line).

We also skip the probing part by checking for module refresh support by
using the new module_refresh_p proc.

10 years agolib/systemtap.exp: new module_refresh_p proc
Jonathan Lebon [Thu, 10 Jul 2014 21:07:00 +0000 (17:07 -0400)]
lib/systemtap.exp: new module_refresh_p proc

Add two new procs in systemtap.exp:
   - min_kernel_vers_p: checks for a minimum kernel version
   - module_refresh_p: checks for module refresh support

We then modify bz6503.exp to use the new proc.

10 years agomodules_out_of_tree.exp: new testcase
Jonathan Lebon [Thu, 10 Jul 2014 03:49:46 +0000 (23:49 -0400)]
modules_out_of_tree.exp: new testcase

This testcase verifies that out-of-tree modules can be probed.

10 years agoPR17073: man/stapprobes.3stap: out-of-tree module support
Jonathan Lebon [Wed, 9 Jul 2014 15:27:14 +0000 (11:27 -0400)]
PR17073: man/stapprobes.3stap: out-of-tree module support

We clarify our support for out-of-tree kernel modules and make explicit
our requirement for the proper naming of the KO file.

10 years agoPR17073: module probes: support out-of-tree modules
Jonathan Lebon [Wed, 9 Jul 2014 14:44:43 +0000 (10:44 -0400)]
PR17073: module probes: support out-of-tree modules

This patch adds support for out-of-tree modules by specifying the
fullpath. This did not work before because both the _stp_module struct
and the stap_dwarf_probe struct were using the full path as the module
name. This caused issues during relocation of module sections/kprobe
addresses.

In this patch, we use the already existing modname_from_path() function
to modify the module member of the dwarf_derived_probe (which later
affects the stap_dwarf_probe struct) and to emit the proper name in
dump_unwindsym_cxt() for the _stp_module struct.

10 years agomodule probes: allow full path to in-tree modules
Jonathan Lebon [Wed, 9 Jul 2014 16:01:36 +0000 (12:01 -0400)]
module probes: allow full path to in-tree modules

If the user provided a full path to an in-tree module, then we don't
want to modify the path in any way. The '-' to '_' will be done later on
as needed.

10 years agoMerge branch 'ajakop/6897'
Abegail Jakop [Thu, 10 Jul 2014 15:43:18 +0000 (11:43 -0400)]
Merge branch 'ajakop/6897'

10 years agostapprobes.3stap: edited supported probe points
Abegail Jakop [Thu, 10 Jul 2014 14:59:58 +0000 (10:59 -0400)]
stapprobes.3stap: edited supported probe points

stapprobes.3stap: added process(PID).{function, mark, plt, provider}
to the list of supported probe points under DWARF and USER-SPACE.

10 years agoUpdate fix for PR17127 by correctly handling TASK_INTERRUPTIBLE flag.
David Smith [Thu, 10 Jul 2014 14:23:12 +0000 (09:23 -0500)]
Update fix for PR17127 by correctly handling TASK_INTERRUPTIBLE flag.

* runtime/linux/task_finder2.c (stap_task_finder_post_init): The 'state'
  field of the task structure contains a bitfield, not a singular
  value. Properly test for TASK_INTERRUPTIBLE.

10 years agolisting_mode.exp: re-ordered test cases
Abegail Jakop [Wed, 9 Jul 2014 21:29:58 +0000 (17:29 -0400)]
listing_mode.exp: re-ordered test cases

listing_mode: moved the test cases for process(number).* probe
points to reflect the ordering in "stap --dump-probe-types".

10 years agolisting_mode*: update to support process(PID).*
Abegail Jakop [Wed, 9 Jul 2014 19:55:56 +0000 (15:55 -0400)]
listing_mode*: update to support process(PID).*

listing_mode.c: add in an infinite loop for generating probe points
to a process running this program over the course of the entire
listing_mode test.
listing_mode.exp: edited portions dependent on the line numbers in the
source code. added tests for the new process(PID).* probe points.

10 years agoFix fix to systemtap-service.exp
David Smith [Wed, 9 Jul 2014 17:00:19 +0000 (12:00 -0500)]
Fix fix to systemtap-service.exp

10 years agoClean up systemtap-service.exp a bit.
David Smith [Wed, 9 Jul 2014 16:33:19 +0000 (11:33 -0500)]
Clean up systemtap-service.exp a bit.

10 years agoClean up sdt_misc.exp a bit.
David Smith [Wed, 9 Jul 2014 15:47:24 +0000 (10:47 -0500)]
Clean up sdt_misc.exp a bit.

* testsuite/systemtap.base/sdt_misc.exp: Make log output match the
  commands being run. Catch errors on "system" calls to avoid the test
  aborting with a tcl error. Do an initial cleanup to avoid test
  leftovers, which might have been created by another user.

10 years agoAdd test coverage for the systemtap service
Martin Cermak [Wed, 9 Jul 2014 14:59:35 +0000 (16:59 +0200)]
Add test coverage for the systemtap service

10 years agoPR6897, updated and added test cases
Abegail Jakop [Wed, 9 Jul 2014 14:30:42 +0000 (10:30 -0400)]
PR6897, updated and added test cases

valid_pid.exp: new test case to check that error messages are
produced when a given pid does not corresponds to a running process.

unprivileged_*: updated the test case to include the newly supported
process(PID).{plt, mark, provider, function}.

10 years agoconfigury: detect missing /usr/bin/msgfmt
Frank Ch. Eigler [Wed, 9 Jul 2014 01:26:41 +0000 (21:26 -0400)]
configury: detect missing /usr/bin/msgfmt

brendang advised his system lacked /usr/bin/msgfmt, which blew up po/
builds.  We now detect & reject this regrettable state of existence at
configure time.

10 years agoFix PR17127 by fixing task_finder2.
David Smith [Tue, 8 Jul 2014 20:14:38 +0000 (15:14 -0500)]
Fix PR17127 by fixing task_finder2.

* runtime/linux/task_finder2.c (stap_task_finder_post_init): Only try to
  interrupt tasks in the TASK_INTERRUPTIBLE state.

10 years agoPR16716 partial fix: Fix types in 'syscall.fcntl'.
David Smith [Tue, 8 Jul 2014 16:04:46 +0000 (11:04 -0500)]
PR16716 partial fix: Fix types in 'syscall.fcntl'.

* tapset/linux/syscalls.stp: Fix types in syscall.fcntl.
* tapset/linux/aux_syscalls.stp (_fcntl_cmd_str): Update and improve.
* testsuite/systemtap.syscall/net1.c: Improve fcntl() testing.

10 years agotapsets.cxx: validate PID for process(PID)*
Abegail Jakop [Mon, 7 Jul 2014 19:56:09 +0000 (15:56 -0400)]
tapsets.cxx: validate PID for process(PID)*

tapsets: validate PID for process(PID).{function, plt, mark} probes

10 years agolisting_mode.exp: use stap instead of nm to get addrs
Jonathan Lebon [Mon, 7 Jul 2014 18:59:56 +0000 (14:59 -0400)]
listing_mode.exp: use stap instead of nm to get addrs

We previously relied on nm to retrieve the addresses of functions in
the executable and library. This causes issues on ppc64, in which nm
simply returns the function descriptor rather than the actual text
address.

We now instead rely on stap itself to retrieve function addresses. This
should fix all of the FAILs of this testcase on the ppc64 platform.

10 years agotapset-utrace.cxx:check used PID in process probes
Abegail Jakop [Mon, 7 Jul 2014 18:56:20 +0000 (14:56 -0400)]
tapset-utrace.cxx:check used PID in process probes

tapset-utrace: made a change so scripts with process(PID).*
and -x PID2, only validates PID (the relevant pid) and not PID2

10 years agoFix PR17120 by modifying gtod.exp.
David Smith [Mon, 7 Jul 2014 18:13:19 +0000 (13:13 -0500)]
Fix PR17120 by modifying gtod.exp.

* testsuite/systemtap.base/gtod.exp: Rename 'count' variable to
  'iteration_num' to avoid clashing with other testcases use of a 'count'
  variable.

10 years agoFix PR17121 by fixing tcl errors in listing_mode.exp on ppc64.
David Smith [Mon, 7 Jul 2014 17:56:05 +0000 (12:56 -0500)]
Fix PR17121 by fixing tcl errors in listing_mode.exp on ppc64.

10 years agoFlip with_dyninst to an %ifarch whitelist
Josh Stone [Mon, 7 Jul 2014 17:11:05 +0000 (10:11 -0700)]
Flip with_dyninst to an %ifarch whitelist

10 years agobuild warning tweakage: sdt test mode printf(%ld) arg casting
Frank Ch. Eigler [Mon, 7 Jul 2014 17:18:06 +0000 (13:18 -0400)]
build warning tweakage: sdt test mode printf(%ld) arg casting

10 years agoPR6897 cont'd: process("foo").* handling
Frank Ch. Eigler [Fri, 4 Jul 2014 19:13:55 +0000 (15:13 -0400)]
PR6897 cont'd: process("foo").* handling

After collapsing the process., process(STRING), process(NUM) cases
into a single conditional, we must remember to retest the STRING
case so as to extract the parameter.

10 years agovalidate PID in process(PID).* probes
Abegail Jakop [Fri, 4 Jul 2014 16:00:56 +0000 (12:00 -0400)]
validate PID in process(PID).* probes

elaborate*: new function derived_probe_builder::has_param()
tapset*: added a check to make sure the PID in process(PID).*
probes correspond to a running process.

10 years agopara-callgraph* samples: point out microsecond timing
Frank Ch. Eigler [Fri, 4 Jul 2014 11:10:26 +0000 (07:10 -0400)]
para-callgraph* samples: point out microsecond timing

10 years agointent.stp tapset: mention microsecond precision
Frank Ch. Eigler [Fri, 4 Jul 2014 11:07:51 +0000 (07:07 -0400)]
intent.stp tapset: mention microsecond precision

10 years agostap samples: tweak process keyword & nd_syscall usage
Frank Ch. Eigler [Thu, 3 Jul 2014 15:32:29 +0000 (11:32 -0400)]
stap samples: tweak process keyword & nd_syscall usage

* process/thread-business.stp: use 'name' from nd-syscall tapset
  instead of clumsy computation by hand
* process/syscalls_by_*: use nd_syscall.* instead of syscall.*

10 years agoFix kernel crash by handling error condition better at startup.
David Smith [Mon, 30 Jun 2014 17:55:08 +0000 (12:55 -0500)]
Fix kernel crash by handling error condition better at startup.

* runtime/linux/runtime.h (init_module): If systemtap_kernel_module_init()
  fails, be sure to close the transport.

10 years agoFix file permissions of testsuite/semko/fiftyone.stp
Martin Cermak [Mon, 30 Jun 2014 14:02:21 +0000 (16:02 +0200)]
Fix file permissions of testsuite/semko/fiftyone.stp

10 years agoPR16716 partial fix: Fix types in 'syscall.{fdatasync,fstat,fstatat,fsync}'.
David Smith [Thu, 26 Jun 2014 16:32:07 +0000 (11:32 -0500)]
PR16716 partial fix: Fix types in 'syscall.{fdatasync,fstat,fstatat,fsync}'.

* tapset/linux/aux_syscalls.stp (_at_flag_str): Update and improve.
* tapset/linux/syscalls.stp: Fix types in
  syscall.{fdatasync,fstat,fsync}. Fixed types and 32-on-64 support in
  syscall.fstatat and added 'dirfd_str', 'flags', and 'flags_str'
  convenience variables.
* tapset/linux/nd_syscalls.stp: Fixed 32-on-64 bit support in
  nd_syscall.fstatat and added 'dirfd_str', 'flags', and 'flags_str'
  convenience variables.
* testsuite/buildok/syscalls-detailed.stp: Added compile test for new
  syscall.fstatat convenience variables.
* testsuite/buildok/nd_syscalls-detailed.stp: Ditto.
* testsuite/systemtap.syscall/futimes.c: Updated test.
* testsuite/systemtap.syscall/link.c: Ditto.
* testsuite/systemtap.syscall/stat.c: Ditto.
* testsuite/systemtap.syscall/sync.c: Ditto.

10 years agoMerge branch 'ajakop/16300'
Abegail Jakop [Tue, 24 Jun 2014 15:37:30 +0000 (11:37 -0400)]
Merge branch 'ajakop/16300'

10 years agostmt_counting.exp: nested foreach runtime flag
Abegail Jakop [Tue, 24 Jun 2014 15:21:33 +0000 (11:21 -0400)]
stmt_counting.exp: nested foreach runtime flag

stmt_counting.exp: combine the four cases for each test
(no flags, -u, low MAXACTION, high MAXACTION) by using
nested foreach loop for the different runtime flags.

10 years agostmt_counting*: statement counting tests
Abegail Jakop [Tue, 24 Jun 2014 13:29:46 +0000 (09:29 -0400)]
stmt_counting*: statement counting tests

stmt_counting_*.stp: basic tests containing loops, recursion,
straight through function bodies and straight through probe bodies.
stmt_counting.exp: runs the tests with and without -u, and with a
low and a high MAXACTION.

10 years agostapprobes man page: extend NON-DWARF probe section
Frank Ch. Eigler [Tue, 24 Jun 2014 00:39:33 +0000 (20:39 -0400)]
stapprobes man page: extend NON-DWARF probe section

10 years agotapset: in probefunc() doc blurb, recommend ppfunc()
Frank Ch. Eigler [Tue, 24 Jun 2014 00:06:53 +0000 (20:06 -0400)]
tapset: in probefunc() doc blurb, recommend ppfunc()

10 years agocheck.exp: add CHECK_ONLY to restrict tests
Jonathan Lebon [Mon, 23 Jun 2014 16:04:08 +0000 (12:04 -0400)]
check.exp: add CHECK_ONLY to restrict tests

The CHECK_ONLY variable allows the check.exp testcase to only focus on
specific example scripts. E.g.

  make installcheck RUNTESTFLAGS="check.exp" CHECK_ONLY="badname"

10 years agoinitscript: invert logic and fix DEFAULT_START
Jonathan Lebon [Mon, 23 Jun 2014 14:26:52 +0000 (10:26 -0400)]
initscript: invert logic and fix DEFAULT_START

The logic of is_valid_script_name was inverted. Fix it.

Also, we need to blank out the list of scripts to start before actually
collecting the valid ones from DEFAULT_START.

10 years agoHandle DW_TAG_restrict_type.
Mark Wielaard [Sun, 22 Jun 2014 19:23:21 +0000 (21:23 +0200)]
Handle DW_TAG_restrict_type.

C99 keyword restrict is just like const or volatile for pointers. Like
DW_TAG_const_type and DW_TAG_volatile_type just follow through to the
underlying type.

10 years agocoverity fixes
Frank Ch. Eigler [Sat, 21 Jun 2014 00:27:17 +0000 (20:27 -0400)]
coverity fixes

Initializing members, avoiding little memory leaks, all minor stuff.

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