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

9 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.

9 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.

9 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.

9 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

9 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.

9 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.

9 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

9 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.

9 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

9 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.

9 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

9 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.

9 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.

9 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

9 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

9 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.

10 years agoMerge branch 'ajakop/16300'
Abegail Jakop [Fri, 20 Jun 2014 20:47:08 +0000 (16:47 -0400)]
Merge branch 'ajakop/16300'

10 years agotranslate.cxx: edit MAXACTION check error message
Abegail Jakop [Fri, 20 Jun 2014 20:40:58 +0000 (16:40 -0400)]
translate.cxx: edit MAXACTION check error message

10 years agoNEWS: new feature to suppress statement counting
Abegail Jakop [Fri, 20 Jun 2014 20:15:52 +0000 (16:15 -0400)]
NEWS: new feature to suppress statement counting

10 years agoruntime: Add a universal stp_synchronize_sched
Josh Stone [Fri, 20 Jun 2014 16:45:46 +0000 (09:45 -0700)]
runtime: Add a universal stp_synchronize_sched

The kernel has had synchronize_sched for a while.  However, in the RHEL5
era this was merely a #define to synchronize_rcu, which our exportconf
wouldn't detect.  RHEL4 only had synchronize_kernel.

Now stp_synchronize_sched covers all of these options, otherwise issuing
an #error message.

10 years agoAdd test coverage for bz1074541
Martin Cermak [Fri, 20 Jun 2014 12:20:48 +0000 (14:20 +0200)]
Add test coverage for bz1074541

10 years agoPR16716 partial fix: Fix types in '[nd_]syscall.eventfd'.
David Smith [Thu, 19 Jun 2014 20:50:25 +0000 (15:50 -0500)]
PR16716 partial fix: Fix types in '[nd_]syscall.eventfd'.

* tapset/linux/syscalls.stp (syscall.eventfd): Better handle eventfd()
  vs. eventfd2(). Add 'count' and 'flags_str' convenience variables. Fix
  types.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/aux_syscalls.stp (_eventfd2_flag_str): Updated and improved.
* runtime/linux/compat_unistd.h (__NR_compat_eventfd2): New define.
* testsuite/systemtap.syscall/eventfd.c: Add more tests.
* testsuite/buildok/syscalls-detailed.stp: Add tests for new convenience
  variables.
* testsuite/buildok/nd_syscalls-detailed.stp: Ditto.

10 years ago::functioncall_visitor tracks seen and nested call
Abegail Jakop [Thu, 19 Jun 2014 20:32:14 +0000 (16:32 -0400)]
::functioncall_visitor tracks seen and nested call

this change is for functioncall_traversing_visitor

elaborate.cxx: changed instances of *traversed* to *seen*
staptree.cxx: changed ::functioncall_visitor in
functioncall_traversing_visitor to keep track of nested function calls
and kept the old functionality of keeping track of function calls seen.
staptree.h: remove traversed set from functioncall_traversing_visitor,
replacing it with a seen set, and a nested set.
translate.cxx: edited comment to reflect change in visitor

10 years agoMinor testsuite updates.
David Smith [Thu, 19 Jun 2014 17:33:52 +0000 (12:33 -0500)]
Minor testsuite updates.

* testsuite/lib/compile_flags.exp: Added a bit more aarch64 support.
* testsuite/systemtap.base/bz1027459.exp: Only run on make
  installcheck. Clean up better after a 'spawn'.
* testsuite/systemtap.base/task_dentry_path.exp: Only run on make
  installcheck.
* testsuite/systemtap.base/wordexp.exp: Ditto.
* testsuite/systemtap.server/server_locale.exp: Ditto.

10 years agotranslate.cxx: statement counting for functions
Abegail Jakop [Wed, 18 Jun 2014 14:15:05 +0000 (10:15 -0400)]
translate.cxx: statement counting for functions

translate.cxx: added counting statements to be executed, and a check
against that number with MAXACTION to determine if statement counting
within a function's generated c code gets suppressed. allow users to
turn this off by running script in unoptimized mode.

10 years agodirect_rec_func.stp: direct recursion test case
Abegail Jakop [Tue, 17 Jun 2014 20:58:34 +0000 (16:58 -0400)]
direct_rec_func.stp: direct recursion test case

10 years agotranslate.cxx: unoptimized statement counting
Abegail Jakop [Tue, 17 Jun 2014 20:16:28 +0000 (16:16 -0400)]
translate.cxx: unoptimized statement counting

translate.cxx: allow for users to turn off the optimized statement
counting, reverting to the statement counting being in generated
c code, through unoptimize mode.

10 years agoset statement count to max for recursion
Abegail Jakop [Tue, 17 Jun 2014 20:07:32 +0000 (16:07 -0400)]
set statement count to max for recursion

staptree.h: added virtual function note_recursive_functioncall

staptree.cxx: implemented function note_recursive_functioncall as {}

translate.cxx: implemented note_recursive_functioncall for
max_action_info to set the estimated statement count to be set to max.

10 years agostap.1: note MAXACTION is treated conservatively
Abegail Jakop [Tue, 17 Jun 2014 19:32:16 +0000 (15:32 -0400)]
stap.1: note MAXACTION is treated conservatively

10 years agoPR16300: switch back to nested visitors for visit_if_statement
Frank Ch. Eigler [Tue, 17 Jun 2014 15:26:16 +0000 (11:26 -0400)]
PR16300: switch back to nested visitors for visit_if_statement

This reverts commit 450cc664d02ec242327e63a84534aacb1c998c6d.

10 years agotranslate.cxx: suppress action counting in c code
Abegail Jakop [Tue, 17 Jun 2014 14:41:59 +0000 (10:41 -0400)]
translate.cxx: suppress action counting in c code

translate.cxx: moved the statement counting portion to ::emit_probe().
added in a check against MAXACTION, which determines if statement
counting within the generated c code gets suppressed.

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