]> sourceware.org Git - systemtap.git/log
systemtap.git
9 years agoscripts/stap2perf: generate 'perf probe' command lines
Frank Ch. Eigler [Fri, 27 Mar 2015 22:55:49 +0000 (18:55 -0400)]
scripts/stap2perf: generate 'perf probe' command lines

As a tool to help diagnose suspected kernel kprobes/uprobes
problems, this script may be helpful to generate "perf probe ..."
command lines from a stap script or probe pattern.

9 years agotestsuite helpout.exp: run more simply in build tree for !installcheck case
Frank Ch. Eigler [Thu, 26 Mar 2015 20:26:29 +0000 (16:26 -0400)]
testsuite helpout.exp: run more simply in build tree for !installcheck case

9 years agonumerous small coverity fixes
Frank Ch. Eigler [Thu, 26 Mar 2015 20:21:06 +0000 (16:21 -0400)]
numerous small coverity fixes

A mixture of stuff noted for stap 2.7, like missing rc checks, c++ POD
member initialization, @perf() array checks.  No actual bugs appear in
this batch, but it should make coverity happier in the future.

9 years agotestsuite: split additional_scripts.exp at installtest_p point
Frank Ch. Eigler [Thu, 26 Mar 2015 20:20:09 +0000 (16:20 -0400)]
testsuite: split additional_scripts.exp at installtest_p point

Some of the tests require stap -p5; segregate those at the bottom,
protected by [installtest_p], so the rest of the test still runs &
passes at "make check".

9 years agoPR18162: map aarch64->arm64 for stap-server -a use
Frank Ch. Eigler [Wed, 25 Mar 2015 19:51:48 +0000 (15:51 -0400)]
PR18162: map aarch64->arm64 for stap-server -a use

There are two "uname -m" -> linux $ARCH mappings
in the source tree.  They got out of whack for aarch64.
They are now back in whack.

+  # NB: see also util.cxx (normalize_machine)
+  // NB repeated: see also stap-env (stap_get_arch)

9 years agoinstall beginners guide pdf only if it was generated
Abegail Jakop [Wed, 25 Mar 2015 15:07:35 +0000 (11:07 -0400)]
install beginners guide pdf only if it was generated

9 years agouse -p when making dirs for beginners guide
Abegail Jakop [Tue, 24 Mar 2015 15:40:44 +0000 (11:40 -0400)]
use -p when making dirs for beginners guide

9 years agoremove enable-publican from update-docs script
Abegail Jakop [Fri, 20 Mar 2015 21:08:26 +0000 (17:08 -0400)]
remove enable-publican from update-docs script

9 years agoskip xml validation when generating Beginners guide
Abegail Jakop [Fri, 20 Mar 2015 20:40:28 +0000 (16:40 -0400)]
skip xml validation when generating Beginners guide

when running xmlto use --skip-validation, to ignore the issues it may
have with loading the dtd files.

9 years agoremove need for xvfb to generate beginners guide
Abegail Jakop [Thu, 19 Mar 2015 15:36:15 +0000 (11:36 -0400)]
remove need for xvfb to generate beginners guide

using xvfb was for a workaround to an issue with publican mentioned
in BZ920216. since the beginners guide docs are generated using xmlto
instead of publican, no longer need the to check for xvfb

9 years agolimit content in beginners guide to generic info
Abegail Jakop [Wed, 18 Mar 2015 13:49:00 +0000 (09:49 -0400)]
limit content in beginners guide to generic info

*.xml : remove content where the content is specific to either fedora or
rhel.
*html.xsl: include a title between the nav buttons at the top of the page

9 years agogenerate beginners guide with xmlto instead of publican
Abegail Jakop [Tue, 17 Mar 2015 16:31:02 +0000 (12:31 -0400)]
generate beginners guide with xmlto instead of publican

the beginners guide is generated when --enable-docs is specified and
xmlto is found.

configure.ac: remove publican specific variables and code chunks, since
the beginners guide docs were the last to use publican. create a new
variable to check if xmlto is available.
doc/beginners/Makefile.am: change the requirement from publican to
xmlto. replace the publican commands for generating the html and pdf
docs to xmlto commands.
systemtap.spec: remove publican requirement

9 years agoadd images, css and xsl files for beginners guide
Abegail Jakop [Tue, 17 Mar 2015 16:21:22 +0000 (12:21 -0400)]
add images, css and xsl files for beginners guide

*/Common_Content: contains images, css and a few xml files for
generating html and pdf files of the beginners guide using xmlto
*/xsl: contains stylesheets for generating html and pdf files of the
beginners guide using xmlto

9 years agoadd entity to xml file for beginners guide
Abegail Jakop [Tue, 17 Mar 2015 16:20:37 +0000 (12:20 -0400)]
add entity to xml file for beginners guide

9 years agoTurn prologue searching on by default for ppc64le in the testsuite.
Martin Cermak [Wed, 25 Mar 2015 16:58:00 +0000 (17:58 +0100)]
Turn prologue searching on by default for ppc64le in the testsuite.

9 years agoAdd missing 'asmlinkage()' call to the nd_syscall.execveat probe.
David Smith [Fri, 20 Mar 2015 15:39:23 +0000 (10:39 -0500)]
Add missing 'asmlinkage()' call to the nd_syscall.execveat probe.

9 years agoUpdate COVERAGE comment in testsuite/systemtap.syscall/readdir.c.
David Smith [Thu, 19 Mar 2015 21:25:45 +0000 (16:25 -0500)]
Update COVERAGE comment in testsuite/systemtap.syscall/readdir.c.

9 years agoAdjust fix to PR18122 by displaying the number of environment variables.
David Smith [Thu, 19 Mar 2015 21:24:33 +0000 (16:24 -0500)]
Adjust fix to PR18122 by displaying the number of environment variables.

* tapset/linux/aux_syscalls.stp (__count_envp): New function.
  (__count_compat_envp): Ditto.
* tapset/linux/syscalls.stp: Changed execve, compat_execve, execveat, and
  compat_execveat probes to use new __count_envp/__count_compat_envp
  functions to display the number of environment variables (instead of
  displaying the actual environment variables). Displaying the actual
  environment variables can easily overflow MAXSTRINGLEN and doesn't match
  what strace does.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/i386/nd_syscalls.stp: Ditto.
* tapset/linux/i386/syscalls.stp: Ditto.
* tapset/linux/ia64/nd_syscalls.stp: Ditto.
* tapset/linux/ia64/syscalls.stp: Ditto.
* tapset/linux/powerpc/nd_syscalls.stp: Ditto.
* tapset/linux/powerpc/syscalls.stp: Ditto.
* tapset/linux/s390/nd_syscalls.stp: Ditto.
* tapset/linux/s390/syscalls.stp: Ditto.
* tapset/linux/x86_64/nd_syscalls.stp: Ditto.
* tapset/linux/x86_64/syscalls.stp: Ditto.
* testsuite/buildok/aux_syscalls-embedded.stp: Added test for new functions.
* testsuite/systemtap.syscall/execve.c: Adjusted regexps for new output.
* testsuite/systemtap.syscall/execveat.c: Ditto.

9 years agoMinor fix to tapset/linux/target_set.stp.
David Smith [Thu, 19 Mar 2015 19:05:01 +0000 (14:05 -0500)]
Minor fix to tapset/linux/target_set.stp.

* tapset/linux/target_set.stp: Remove special test for ia64, since it does
  support dwarfless probes.

9 years agoAdd more syscall testsuite test program fixes.
David Smith [Thu, 19 Mar 2015 17:50:31 +0000 (12:50 -0500)]
Add more syscall testsuite test program fixes.

* testsuite/systemtap.syscall/accept4.c: Test on more systems.
* testsuite/systemtap.syscall/adjtimex.c: Be more forgiving with return
  values.
* testsuite/systemtap.syscall/clone.c: Fix gcc 5 problems.

9 years agoFix PR18122 by fixing/updating [nd_]syscall.{execve,execveat}.
David Smith [Thu, 19 Mar 2015 17:20:20 +0000 (12:20 -0500)]
Fix PR18122 by fixing/updating [nd_]syscall.{execve,execveat}.

* NEWS: Mention deprecation of the 'fd' and 'fd_str' variables in the
  [nd_]syscall.execveat probes.
* tapset/linux/syscalls.stp (syscall.execve): Add 'env_str' convenience
  variable for the list of environment variables. For kernels < 3.7, move
  execve tapset support to arch-specific tapset code so we can catch all
  calls.
  (syscall.compat_execve): Ditto.
  (syscall.execveat): Add 'env_str' convenience variable for the list of
  environment variables.
  (syscall.compat_execveat): Ditto.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/aux_syscalls.stp (__get_argv): Improve formatting and
  report the difference between an invalid address and a NULL.
  (__get_compat_argv): Ditto.
  (_adjtimex_return_str): Minor improvement.
* tapset/linux/i386/syscalls.stp: Added execve support for kernels < 3.7.
* tapset/linux/i386/nd_syscalls.stp: Ditto.
* tapset/linux/ia64/syscalls.stp: Ditto.
* tapset/linux/ia64/nd_syscalls.stp: Ditto.
* tapset/linux/powerpc/syscalls.stp: Ditto.
* tapset/linux/powerpc/nd_syscalls.stp: Ditto.
* tapset/linux/s390/syscalls.stp: Ditto.
* tapset/linux/s390/nd_syscalls.stp: Ditto.
* tapset/linux/x86_64/syscalls.stp: Ditto.
* tapset/linux/x86_64/nd_syscalls.stp: Ditto.
* testsuite/systemtap.syscall/syscall.exp: No longer use '--skip-badvars'
  when compiling module.
* testsuite/systemtap.syscall/nd_syscall.exp: Ditto.
* testsuite/buildok/nd_syscalls-detailed.stp: Updated.
* testsuite/buildok/syscalls-detailed.stp: Ditto.
* testsuite/systemtap.syscall/execveat.c: Improved a bit.
* testsuite/systemtap.syscall/execve.c: New test case.

9 years agoFix syscall testsuite compilation problems with gcc 5.
David Smith [Thu, 19 Mar 2015 14:39:53 +0000 (09:39 -0500)]
Fix syscall testsuite compilation problems with gcc 5.

* testsuite/systemtap.syscall/fallocate.c: Fix compilation problems with
  gcc 5.
* testsuite/systemtap.syscall/flock.c: Ditto.
* testsuite/systemtap.syscall/futex.c: Ditto.
* testsuite/systemtap.syscall/futimes.c: Ditto.
* testsuite/systemtap.syscall/fxattr.c: Ditto.
* testsuite/systemtap.syscall/getpeername.c: Ditto.
* testsuite/systemtap.syscall/ioctl.c: Ditto.
* testsuite/systemtap.syscall/ioprio.c: Ditto.
* testsuite/systemtap.syscall/lxattr.c: Ditto.
* testsuite/systemtap.syscall/mempolicy.c: Ditto.
* testsuite/systemtap.syscall/mknod.c: Ditto.
* testsuite/systemtap.syscall/modify_ldt.c: Ditto.
* testsuite/systemtap.syscall/module.c: Ditto.
* testsuite/systemtap.syscall/mq.c: Ditto.
* testsuite/systemtap.syscall/nfsservctl.c: Ditto.
* testsuite/systemtap.syscall/nice.c: Ditto.
* testsuite/systemtap.syscall/poll.c: Ditto.
* testsuite/systemtap.syscall/readahead.c: Ditto.
* testsuite/systemtap.syscall/rt_signal.c: Ditto.
* testsuite/systemtap.syscall/sched_setaffinity.c: Ditto.
* testsuite/systemtap.syscall/sigmask.c: Ditto.
* testsuite/systemtap.syscall/signal.c: Ditto.
* testsuite/systemtap.syscall/socketpair.c: Ditto.
* testsuite/systemtap.syscall/statfs.c: Ditto.
* testsuite/systemtap.syscall/tee.c: Ditto.
* testsuite/systemtap.syscall/xattr.c: Ditto.

9 years agoPR18120 - Test coverage for adjtimex, arch_prctl, brk, capget, capset
Martin Cermak [Thu, 19 Mar 2015 10:05:01 +0000 (11:05 +0100)]
PR18120 - Test coverage for adjtimex, arch_prctl, brk, capget, capset

* tapset/linux/aux_syscalls.stp: String representation of timex struct,
  String representation of arch_prctl option argument.
* tapset/linux/nd_syscalls.stp: String representation of timex struct.
* tapset/linux/syscalls.stp: Ditto + fix types.
* tapset/linux/x86_64/nd_syscalls.stp: String representation of
  arch_prctl option argument.
* tapset/linux/x86_64/syscalls.stp: Ditto.
* testsuite/buildok/nd_syscalls-arch-detailed.stp: Updated testcase.
* testsuite/buildok/nd_syscalls-detailed.stp: Likewise.
* testsuite/buildok/syscalls-arch-detailed.stp: Likewise.
* testsuite/buildok/syscalls-detailed.stp: Likewise.
* testsuite/systemtap.syscall/adjtimex.c: New testcase.
* testsuite/systemtap.syscall/arch_prctl.c: Likewise.
* testsuite/systemtap.syscall/brk.c: Likewise.
* testsuite/systemtap.syscall/capability.c: Likewise.

9 years agoPR18115: add testcase map_probe_cond.stp
Jonathan Lebon [Mon, 16 Mar 2015 16:25:08 +0000 (12:25 -0400)]
PR18115: add testcase map_probe_cond.stp

9 years agoPR18115: use begin probe to initialize conditions
Jonathan Lebon [Sat, 14 Mar 2015 19:38:51 +0000 (15:38 -0400)]
PR18115: use begin probe to initialize conditions

We previously initialized the cond_enabled field by evaluating the
conditions during systemtap_module_init(). However, these conditions may
create tmpvars during unparsing (e.g. maps), which require a context to
operate. Therefore, we instead create a synthetic begin probe which will
serve to initialize all cond_enabled fields (or more precisely, switch
them to 0 from their default of 1 if the condition is false).

As a bonus, this allows us to re-use emit_probe_condition_update() for
both condition initialization and updating, and thus to get rid of
emit_probe_condition_initialize().

9 years agoPR18115: make c_tmpcounter visit probe conditions
Jonathan Lebon [Mon, 16 Mar 2015 16:05:38 +0000 (12:05 -0400)]
PR18115: make c_tmpcounter visit probe conditions

Probe conditions may require tmpvars when being unparsed (e.g. maps).
These tmpvars need to be accounted by the tmpcounter so that tmpvar
declaration and usage match up.

9 years agoFix syntax error in tapset/linux/s390/syscalls.stp
Martin Cermak [Fri, 13 Mar 2015 10:54:06 +0000 (11:54 +0100)]
Fix syntax error in tapset/linux/s390/syscalls.stp

9 years agoFixed PR18121 by adding fallocate() syscall tapset support.
David Smith [Thu, 12 Mar 2015 15:35:08 +0000 (10:35 -0500)]
Fixed PR18121 by adding fallocate() syscall tapset support.

* tapset/linux/syscalls.stp (syscall.fallocate): New probe.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/powerpc/syscalls.stp (syscall.compat_fallocate): New probe.
* tapset/linux/powerpc/nd_syscalls.stp: Ditto.
* tapset/linux/s390/syscalls.stp: Ditto.
* tapset/linux/s390/nd_syscalls.stp: Ditto.
* tapset/linux/x86_64/syscalls.stp: Ditto.
* tapset/linux/x86_64/nd_syscalls.stp: Ditto.
* tapset/linux/aux_syscalls.stp (_stp_fallocate_mode_str): New function.
* testsuite/systemtap.syscall/fallocate.c: New test case.
* testsuite/buildok/aux_syscalls-embedded.stp: Added
  _stp_fallocate_mode_str test.
* testsuite/buildok/syscalls-detailed.stp: Added fallocate test.
* testsuite/buildok/nd_syscalls-detailed.stp: Ditto.

9 years agoFix fadvise64 long long handling and lots of small test case fixes.
David Smith [Thu, 12 Mar 2015 14:13:33 +0000 (09:13 -0500)]
Fix fadvise64 long long handling and lots of small test case fixes.

* tapset/linux/syscalls.stp: Fixed 64-bit handling in syscall.fadvise64
  and syscall.fadvise64_64.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/syscalls2.stp: Added some whitespace for clarity.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/aux_syscalls.stp (_fadvice_advice_str): Improved s390 support.
* tapset/linux/powerpc/syscalls.stp (compat_readahead.return): Fixed
  retstr generation.
  (compat_fadvise64): New probe.
  (compat_fadvise64_64): New probe.
* tapset/linux/s390/syscalls.stp: Ditto.
* tapset/linux/x86_64/syscalls.stp: Ditto.
* tapset/linux/powerpc/nd_syscalls.stp (compat_fadvise64): New probe.
  (syscall.compat_fadvise64_64)
* tapset/linux/s390/nd_syscalls.stp: Ditto.
* tapset/linux/x86_64/nd_syscalls.stp: Ditto.
* testsuite/buildok/syscalls-detailed.stp: Added tests for
  compat_fadvise64 and compat_fadvise64_64.
* testsuite/buildok/nd_syscalls-detailed.stp: Ditto.
* testsuite/systemtap.syscall/fadvise64.c: Add fadvise64 testing.
* testsuite/systemtap.syscall/accept4.c: Improve compilation on systems
  where accept4 isn't supported.
* testsuite/systemtap.syscall/domainname.c: Loosen error code checking.
* testsuite/systemtap.syscall/eventfd.c: Improve compilation on systems
  without eventfd2.
* testsuite/systemtap.syscall/exit_group.c: Minor fix.
* testsuite/systemtap.syscall/inotify.c: Improve compilation on systems
  without inotify_init1.
* testsuite/systemtap.syscall/numa.c: Loosen error code checking.
* testsuite/systemtap.syscall/preadv.c: Improve compilation on systems
  without preadv.
* testsuite/systemtap.syscall/pwritev.c: Improve compilation on systems
  without pwritev.
* testsuite/systemtap.syscall/readdir.c: Loosen error code checking.

9 years agoFix a typo.
Martin Cermak [Tue, 10 Mar 2015 12:50:59 +0000 (13:50 +0100)]
Fix a typo.

9 years agoPR16716 partial fix: Fix types and nesting.
Martin Cermak [Tue, 10 Mar 2015 06:08:25 +0000 (07:08 +0100)]
PR16716 partial fix: Fix types and nesting.

Fix types and nesting for rt_sigqueueinfo, setdomainname,
setrlimit, splice, vmsplice and tee syscalls.

* tapset/linux/syscalls2.stp: Fix types and nesting.
* tapset/linux/nd_syscalls2.stp: Fix types and nesting.
* tapset/linux/aux_syscalls.stp: Add SPLICE* defs.
* NEWS: Add deprecation note.
* testsuite/buildok/syscalls2-detailed.stp: New testcase.
* testsuite/buildok/nd_syscalls2-detailed.stp: New testcase.
* testsuite/systemtap.syscall/getrlimit.c: Updated testcase.
* testsuite/systemtap.syscall/rt_signal.c: Updated testcase.
* testsuite/systemtap.syscall/domainname.c: New testcase.
* testsuite/systemtap.syscall/tee.c: New testcase.

9 years agosystemtap.spec: aarch64 buildability
Martin Cermak [Mon, 9 Mar 2015 15:45:03 +0000 (16:45 +0100)]
systemtap.spec: aarch64 buildability

9 years agotapset/linux/[nd_]syscalls2.stp: fix syscall.rt_sig{action,pending,procmask} for...
Martin Cermak [Fri, 6 Mar 2015 06:11:26 +0000 (07:11 +0100)]
tapset/linux/[nd_]syscalls2.stp: fix syscall.rt_sig{action,pending,procmask} for s390x

9 years agotapset: add @mm and use it in _stp_get_mm_counter()
Josh Stone [Tue, 3 Mar 2015 22:33:37 +0000 (14:33 -0800)]
tapset: add @mm and use it in _stp_get_mm_counter()

9 years agotapset: avoid PR18079 in task_start_time()
Josh Stone [Tue, 3 Mar 2015 22:27:40 +0000 (14:27 -0800)]
tapset: avoid PR18079 in task_start_time()

Checking @defined(task->real_start_time->tv_sec) doesn't work, so use
@defined(@task(0)->...) instead.

9 years agoPR18079: add a kfail test of @defined(autocast)
Josh Stone [Tue, 3 Mar 2015 22:24:05 +0000 (14:24 -0800)]
PR18079: add a kfail test of @defined(autocast)

9 years agoPR16716 partial fix: Fix types and nesting for 'syscall.readahead'.
Martin Cermak [Tue, 3 Mar 2015 17:17:37 +0000 (18:17 +0100)]
PR16716 partial fix: Fix types and nesting for 'syscall.readahead'.

* tapset/linux/nd_syscalls2.stp: Fix types, don't probe compat tasks.
* tapset/linux/syscalls2.stp: Likewise.
* tapset/linux/powerpc/nd_syscalls.stp: Add compat_readahead probes.
* tapset/linux/powerpc/syscalls.stp: Likewise.
* tapset/linux/s390/nd_syscalls.stp: Likewise.
* tapset/linux/s390/syscalls.stp: Likewise.
* tapset/linux/x86_64/nd_syscalls.stp: Likewise.
* tapset/linux/x86_64/syscalls.stp: Likewise.
* testsuite/buildok/nd_syscalls-arch-detailed.stp:
  Add compat_readahead testcase,
  Fix compat_ftruncate64 and compat_truncate64 testcases.
* testsuite/buildok/syscalls-arch-detailed.stp:
  Add compat_readahead testcase,
* testsuite/systemtap.syscall/readahead.c: New testcase.

9 years agoPR16716 partial fix: Fix types and nesting for 'syscall.{nice,readdir}'.
Martin Cermak [Tue, 3 Mar 2015 08:11:55 +0000 (09:11 +0100)]
PR16716 partial fix: Fix types and nesting for 'syscall.{nice,readdir}'.

* tapset/linux/nd_syscalls2.stp: Fix types, add probe points.
* tapset/linux/syscalls2.stp: Fix types, add probe points.
* testsuite/systemtap.syscall/nice.c
* testsuite/systemtap.syscall/readdir.c

9 years agovim: add minimal highlighting for macro @define
Josh Stone [Tue, 3 Mar 2015 00:56:04 +0000 (16:56 -0800)]
vim: add minimal highlighting for macro @define

9 years agotapset: tag many inline embedded-C blocks as pure
Josh Stone [Mon, 2 Mar 2015 23:18:37 +0000 (15:18 -0800)]
tapset: tag many inline embedded-C blocks as pure

If embedded-C is not explicitly marked pure, then it is assumed to have
side effects, and can never be optimized away.  In many cases, we're
simply referencing a constant value, so this is certainly pure, and
should be tagged so.

This patch doesn't bother updating instances that are in impure contexts
anyway, like the many cases of @__syscall_gate et al. which test the
constant to perhaps issue probe "next".

9 years agoTo avoid syscall tapset problems, turn buildok test warnings into errors.
David Smith [Mon, 2 Mar 2015 22:14:52 +0000 (16:14 -0600)]
To avoid syscall tapset problems, turn buildok test warnings into errors.

* testsuite/buildok/syscalls-detailed.stp: Add '-W' to turn warnings into
  errors.
* testsuite/buildok/syscalls2-detailed.stp: Ditto.
* testsuite/buildok/nd_syscalls-detailed.stp: Ditto.
* testsuite/buildok/nd_syscalls2-detailed.stp: Ditto.

9 years agotapset/linux: Introduce and use @task macro
Josh Stone [Mon, 2 Mar 2015 21:06:06 +0000 (13:06 -0800)]
tapset/linux: Introduce and use @task macro

The @task macro performs the very common @cast to a task_struct.

The embedded-C bodies of task_current() and pid2task() are now wrapped
by @task, which gives them a debuginfo type on the return value.  With
autocast type propagation, this removes the need for any explicit @cast
in many places.

Other places which take untyped task pointers as parameters, for
instance, now use @task as well to simplify their code.

Tangentially related, task_start_time() was broken for a while by the
change of real_start_time from timespec to u64, commit 57e0be041d9e2.
This is fixed and added to buildok/task_test.stp.

9 years agovim: highlight additional macros in embedded-C blocks
Josh Stone [Mon, 2 Mar 2015 19:26:02 +0000 (11:26 -0800)]
vim: highlight additional macros in embedded-C blocks

9 years agovim: highlight inline embedded-C too
Josh Stone [Mon, 2 Mar 2015 19:25:19 +0000 (11:25 -0800)]
vim: highlight inline embedded-C too

For a while now, embedded-C is not just for global blocks and function
bodies, but it can appear as inline expressions too.

9 years agovim: match *.stpm for systemtap syntax
Josh Stone [Mon, 2 Mar 2015 19:23:05 +0000 (11:23 -0800)]
vim: match *.stpm for systemtap syntax

9 years agoregenerate examples indexes
Abegail Jakop [Mon, 2 Mar 2015 17:25:35 +0000 (12:25 -0500)]
regenerate examples indexes

9 years agoadd _best keyword to proctop.meta and example output
Abegail Jakop [Mon, 2 Mar 2015 17:22:14 +0000 (12:22 -0500)]
add _best keyword to proctop.meta and example output

9 years agomodify */proctop.stp to not reset process names
Abegail Jakop [Mon, 2 Mar 2015 17:10:31 +0000 (12:10 -0500)]
modify */proctop.stp to not reset process names

9 years agoexamples README: clarify index-generation
Frank Ch. Eigler [Mon, 2 Mar 2015 16:26:19 +0000 (11:26 -0500)]
examples README: clarify index-generation

Mention .txt files, _best keyword, and index-generator,
to which only a few .meta fields are important.

9 years agoPR10488: add proctop.stp example script
Abegail Jakop [Mon, 2 Mar 2015 16:13:21 +0000 (11:13 -0500)]
PR10488: add proctop.stp example script

proctop.stp: a top-like script that periodically prints out process
information such as state, mem usage and time, while keeping track of
processes that exited while the script was running.

9 years agolisting_mode.exp: add more .nearest tests
Jonathan Lebon [Fri, 27 Feb 2015 15:28:36 +0000 (10:28 -0500)]
listing_mode.exp: add more .nearest tests

9 years agostapprobes.3stap: tweak statement.nearest description
Jonathan Lebon [Fri, 27 Feb 2015 14:51:52 +0000 (09:51 -0500)]
stapprobes.3stap: tweak statement.nearest description

9 years agostmt_rel.exp and vars.exp: adapt to latest kernel
Jonathan Lebon [Mon, 23 Feb 2015 16:10:03 +0000 (11:10 -0500)]
stmt_rel.exp and vars.exp: adapt to latest kernel

The bio.c file was moved from the fs directory to the block directory.
The two test cases stmt_rel.exp and vars.exp used functions from that
file to make some sanity checks. Update the testcases to be more
flexible.

9 years agonearest probes: allow ENUMERATED and WILDCARD linenos
Jonathan Lebon [Fri, 20 Feb 2015 18:24:18 +0000 (13:24 -0500)]
nearest probes: allow ENUMERATED and WILDCARD linenos

This commit reverses commit 2ff2868 which added the restriction of only
allowing .nearest probes on ABSOLUTE and RELATIVE linenos. We now allow
this for all lineno types.

WILDCARD lineno types do not need any special handling for .nearest
probes since the resulting linenos are already known to be correct. For
ENUMERATED linenos however, we now must add .nearest handling: for each
lineno enumerated, if we fail to find an address, we check if there is a
nearby lineno we can instead probe.

This commit also fixes failures in the unprivileged_myproc.exp testcase.
Related PRs: PR17906, PR17986.

9 years agoFixed PR18026 by adding support for timerfd_{create,gettime,settime}.
David Smith [Thu, 26 Feb 2015 15:26:06 +0000 (09:26 -0600)]
Fixed PR18026 by adding support for timerfd_{create,gettime,settime}.

* tapset/linux/syscalls2.stp: Added timerfd_create, timerfd_gettime,
  and timerfd_settime probes.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/aux_syscalls.stp (_stp_timerfd_flags_str): New function.
* runtime/linux/autoconf-timerfd.c: New autoconf test.
* buildrun.cxx (compile_pass): Added timerfd.h autoconf test.
* testsuite/buildok/aux_syscalls-embedded.stp: Added test.
* testsuite/buildok/nd_syscalls2-detailed.stp: Added tests.
* testsuite/buildok/syscalls2-detailed.stp: Ditto.
* testsuite/systemtap.syscall/timerfd.c: New test case.

9 years agoMinor improvement to syscall.nfsservctl for RHEL6.
David Smith [Thu, 26 Feb 2015 15:19:26 +0000 (09:19 -0600)]
Minor improvement to syscall.nfsservctl for RHEL6.

9 years agoPR16974: wrap if, try and for tmpvar decls in unions
Abegail Jakop [Wed, 25 Feb 2015 21:48:30 +0000 (16:48 -0500)]
PR16974: wrap if, try and for tmpvar decls in unions

translate.cxx: in c_tmpcounter::visit_block, the tmpvar declarations
in the generated c code are wrapped in a union, with each
block->statements[i] wrapped in a struct, to reduce context memory
allocation. following ::visit_block, the tmpvar declarations in
::visit_if_statement, ::visit_try_block and ::visit_for_loop are
wrapped in a union. since this causes quite a lot of nesting, comments
are added to the generated c code to indicate the source file and
line the struct/union tmpvars correspond to.

9 years agoPR16974: move struct+visit outputting to new fn(s)
Abegail Jakop [Wed, 25 Feb 2015 21:32:17 +0000 (16:32 -0500)]
PR16974: move struct+visit outputting to new fn(s)

translate.cxx: from c_tmpcounter::visit_block(), move the portion
to wrap the statement->visit() part in a struct declaration to a
function, ::wrap_visit_in_struct()

9 years agoFor rhel6 kernels, make the execveat syscall optional in [nd_]syscalls-detailed.stp.
Martin Cermak [Tue, 24 Feb 2015 16:48:46 +0000 (17:48 +0100)]
For rhel6 kernels, make the execveat syscall optional in [nd_]syscalls-detailed.stp.

9 years agodtrace python3 compatibility: exceptions
Frank Ch. Eigler [Mon, 23 Feb 2015 18:43:19 +0000 (13:43 -0500)]
dtrace python3 compatibility: exceptions

Use a clumsier exception catching syntax that works with python3
and even before python 2.6.  Tips taken from
http://python3porting.com/noconv.html

9 years agodtrace.in python3 support, testsuite parts
Frank Ch. Eigler [Mon, 23 Feb 2015 18:12:00 +0000 (13:12 -0500)]
dtrace.in python3 support, testsuite parts

Prepare for fuller /usr/bin/dtrace python3-compatibility by extending
the dtrace.exp test case to run with -each- python interpreter.
Various embedded input files were also factored out into separate
files for easier diagnostics.

9 years agoAdd minor syscall testsuite test case tweaks.
David Smith [Mon, 23 Feb 2015 19:04:48 +0000 (13:04 -0600)]
Add minor syscall testsuite test case tweaks.

* testsuite/systemtap.syscall/chmod.c: Avoid nesting by looking for return
  values. Test old 16-bit syscall variants on all 32-bit platforms.
* testsuite/systemtap.syscall/uid16.c: Ditto.
* testsuite/systemtap.syscall/getgroups.c: Test old 16-bit syscall
  variants on all 32-bit platforms.
* testsuite/systemtap.syscall/poll.c: Add 'epoll_create1' to the covered
  list.

9 years agoUse more python syntax in dtrace.in that works for python v3 also.
Nathan Scott [Mon, 23 Feb 2015 16:23:36 +0000 (10:23 -0600)]
Use more python syntax in dtrace.in that works for python v3 also.

Improve dtrace.in to make it more compatible with python v3. There are
still remaining problems.

9 years agoPR18001: error::pass4 man page: add preprocessed-file-generation instructions
Frank Ch. Eigler [Sun, 22 Feb 2015 01:48:12 +0000 (20:48 -0500)]
PR18001: error::pass4 man page: add preprocessed-file-generation instructions

9 years agoYear bump in copyright message
Frank Ch. Eigler [Sat, 21 Feb 2015 21:26:07 +0000 (16:26 -0500)]
Year bump in copyright message

9 years agodoc generation: aid problem diagnosis by preserving stdout/stderr
Frank Ch. Eigler [Sat, 21 Feb 2015 21:24:27 +0000 (16:24 -0500)]
doc generation: aid problem diagnosis by preserving stdout/stderr

The Makefile.am's don't need to >/dev/null 2>&1 for potential
troublemakers.

9 years agoPR18000: Always use new tracequery objects directly
Josh Stone [Fri, 20 Feb 2015 19:40:56 +0000 (11:40 -0800)]
PR18000: Always use new tracequery objects directly

When new tracequery objects are built, always use them directly from the
build directory, regardless of whether the systemtap cache is enabled.
This allow traceponts to be found even under --disable-cache.

9 years agoPR17737: followup: more portable xmlto parametrization
Frank Ch. Eigler [Thu, 19 Feb 2015 15:30:08 +0000 (10:30 -0500)]
PR17737: followup: more portable xmlto parametrization

Testing indicates --stringparam generate.toc='book,toc,title'
works more portably than generate.toc='book\ toc,title'

9 years agoPR16716 partial fix: Fix syscall nesting in 'syscall.nfsservctl'.
David Smith [Thu, 19 Feb 2015 15:12:46 +0000 (09:12 -0600)]
PR16716 partial fix: Fix syscall nesting in 'syscall.nfsservctl'.

* tapset/linux/syscalls2.stp (syscall.nfsservctl): Simplify and avoid
  nesting.
* tapset/linux/nd_syscalls2.stp (nd_syscall.nfsservctl): Ditto.
* testsuite/systemtap.syscall/nfsservctl.c: Added s390 support.

9 years agobump version to 2.8 and autoreconf
Abegail Jakop [Wed, 18 Feb 2015 22:05:51 +0000 (17:05 -0500)]
bump version to 2.8 and autoreconf

9 years agoLinux 3.19 added the execveat syscall, adding tapset support release-2.7
Lukas Berk [Wed, 18 Feb 2015 20:26:07 +0000 (15:26 -0500)]
Linux 3.19 added the execveat syscall, adding tapset support

tapset/linux/nd_syscalls.stp - no debuginfo tapset
tapset/linux/syscalls.stp - regular tapset
testsuite/buildok/nd_syscalls-detailed.stp - update no debuginfo testcase
testsuite/buildok/syscalls-detailed.stp - update testcase
testsuite/systemtap.syscall/execveat.c - new syscall testcase

9 years agorelease 2.7 dating in .spec & NEWS
Frank Ch. Eigler [Wed, 18 Feb 2015 19:55:18 +0000 (14:55 -0500)]
release 2.7 dating in .spec & NEWS

9 years agoPR17962: make dtrace.exp "parser check" test case conditional on pyparsing
Frank Ch. Eigler [Wed, 18 Feb 2015 17:24:52 +0000 (12:24 -0500)]
PR17962: make dtrace.exp "parser check" test case conditional on pyparsing

Without pyparsing installed, the test gave a false FAIL: indication.

9 years agoPR17953: improve debug_line traversal logic
Abegail Jakop [Wed, 18 Feb 2015 16:40:24 +0000 (11:40 -0500)]
PR17953: improve debug_line traversal logic

9 years agoremove <NULL> printed at the end of sym[file]line
Abegail Jakop [Wed, 18 Feb 2015 14:01:35 +0000 (09:01 -0500)]
remove <NULL> printed at the end of sym[file]line

runtime/sym.c: for linenumbers remove type casting and change print
format to an unsigned long

9 years agoFix the buildok testcase for nd_syscall.mbind in nd_syscalls-detailed.stp.
Martin Cermak [Wed, 18 Feb 2015 12:23:33 +0000 (13:23 +0100)]
Fix the buildok testcase for nd_syscall.mbind in nd_syscalls-detailed.stp.

9 years agoPR16716 partial fix: Fix types and nesting for 'syscall.{mbind,move_pages,migrate_pag...
Martin Cermak [Tue, 17 Feb 2015 18:19:00 +0000 (19:19 +0100)]
PR16716 partial fix: Fix types and nesting for 'syscall.{mbind,move_pages,migrate_pages}'.

* runtime/linux/compat_unistd.h: Define __NR_move_pages for rhel5 powerpc platform
* tapset/linux/nd_syscalls.stp: Fix types and nesting for 'syscall.{mbind,move_pages,migrate_pages}'.
* tapset/linux/syscalls.stp: Fix types and nesting for 'syscall.{mbind,move_pages,migrate_pages}'.
* testsuite/buildok/nd_syscalls-detailed.stp: Test all convenience variables.
* testsuite/buildok/syscalls-detailed.stp: Test all convenience variables.
* testsuite/systemtap.syscall/numa.c: New testcase.

9 years agobuildrun: turn off gcc -fipa-icf optimization during pass 4
Frank Ch. Eigler [Mon, 16 Feb 2015 23:50:42 +0000 (18:50 -0500)]
buildrun: turn off gcc -fipa-icf optimization during pass 4

At the moment of writing, this option slows down stap too much.

9 years agosample interrupts-by-dev: unbreak accidental .txt/.stp overwrite
Frank Ch. Eigler [Mon, 16 Feb 2015 22:54:14 +0000 (17:54 -0500)]
sample interrupts-by-dev: unbreak accidental .txt/.stp overwrite

9 years agotestsuite samples: add a bunch more sample output-txt; regenerate index
Frank Ch. Eigler [Mon, 16 Feb 2015 22:52:37 +0000 (17:52 -0500)]
testsuite samples: add a bunch more sample output-txt; regenerate index

9 years agoAUTHORS bump
Frank Ch. Eigler [Mon, 16 Feb 2015 21:49:56 +0000 (16:49 -0500)]
AUTHORS bump

9 years agoPR17985: fix netfilter tapset & code-generator
Frank Ch. Eigler [Mon, 16 Feb 2015 21:26:53 +0000 (16:26 -0500)]
PR17985: fix netfilter tapset & code-generator

The $out parameter was not being initialized, and kernel-int/char-
reading tapset functions were needlessly duplicated.  Now

   # stap -uv -e 'probe netfilter.** {next}' -t

passes with flying colors.

9 years agoinitial lwtools examples
Brendan Gregg [Mon, 16 Feb 2015 21:09:56 +0000 (13:09 -0800)]
initial lwtools examples

9 years agotestsuite listing_mode: Adapt to changed line numbers
Frank Ch. Eigler [Mon, 16 Feb 2015 20:50:55 +0000 (15:50 -0500)]
testsuite listing_mode: Adapt to changed line numbers

commit 2538abbc94 inserted some blank lines to separate function
declarations and bodies, but the .exp file needs correponding updates
for the pushed-down line numbers.

9 years agotestsuite buildid.c: more gcc5 unwarningification
Frank Ch. Eigler [Mon, 16 Feb 2015 20:50:39 +0000 (15:50 -0500)]
testsuite buildid.c: more gcc5 unwarningification

9 years agoMake coverage.tcl report syscalls without probes.
David Smith [Mon, 16 Feb 2015 18:29:11 +0000 (12:29 -0600)]
Make coverage.tcl report syscalls without probes.

* testsuite/systemtap.syscall/coverage.tcl: Add output of syscalls without
  probes.

9 years agotestsuite: gcc5 warning fixes, int-less main() declarations
Frank Ch. Eigler [Mon, 16 Feb 2015 16:22:54 +0000 (11:22 -0500)]
testsuite: gcc5 warning fixes, int-less main() declarations

9 years agoproc_by_pid.c test victim, gcc5 warning fix
Frank Ch. Eigler [Sun, 15 Feb 2015 02:56:36 +0000 (21:56 -0500)]
proc_by_pid.c test victim, gcc5 warning fix

9 years agoi18n: update-po
Frank Ch. Eigler [Sun, 15 Feb 2015 02:06:32 +0000 (21:06 -0500)]
i18n: update-po

9 years agolisting_mode.c test case: eliminate gcc5 warnings
Frank Ch. Eigler [Sun, 15 Feb 2015 02:06:14 +0000 (21:06 -0500)]
listing_mode.c test case: eliminate gcc5 warnings

9 years agostap-prep: Accept ".arch+variant" uname -r format.
Martin Cermak [Sat, 14 Feb 2015 15:09:16 +0000 (16:09 +0100)]
stap-prep: Accept ".arch+variant" uname -r format.

9 years agolwtools: begin a new collection of non-debuginfo examples
Brendan Gregg [Sat, 14 Feb 2015 01:13:39 +0000 (17:13 -0800)]
lwtools: begin a new collection of non-debuginfo examples

9 years agoHACKING git hints for emailed patches
Frank Ch. Eigler [Sat, 14 Feb 2015 00:54:32 +0000 (19:54 -0500)]
HACKING git hints for emailed patches

9 years agoeatmydata sample: tweak wording for default-redirect-fd change
Frank Ch. Eigler [Fri, 13 Feb 2015 23:22:13 +0000 (18:22 -0500)]
eatmydata sample: tweak wording for default-redirect-fd change

9 years agoeatmydata: add sample .txt, prefer default redirecton fd=-1
Frank Ch. Eigler [Fri, 13 Feb 2015 23:20:39 +0000 (18:20 -0500)]
eatmydata: add sample .txt, prefer default redirecton fd=-1

9 years agolinetimes sample text: add back invocation command line
Frank Ch. Eigler [Fri, 13 Feb 2015 23:08:20 +0000 (18:08 -0500)]
linetimes sample text: add back invocation command line

9 years agocorrect linetimes sample output -- now with proper call-graph sorting
Frank Ch. Eigler [Fri, 13 Feb 2015 23:07:14 +0000 (18:07 -0500)]
correct linetimes sample output -- now with proper call-graph sorting

9 years agoeventcount sample: add .txt
Frank Ch. Eigler [Fri, 13 Feb 2015 23:03:20 +0000 (18:03 -0500)]
eventcount sample: add .txt

9 years agoexample output for exampe script latencytap.stp
Abegail Jakop [Fri, 13 Feb 2015 22:59:04 +0000 (17:59 -0500)]
example output for exampe script latencytap.stp

9 years agoexamples index: add link to .txt "sample usage" files
Frank Ch. Eigler [Fri, 13 Feb 2015 22:48:05 +0000 (17:48 -0500)]
examples index: add link to .txt "sample usage" files

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