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

9 years agolinetimes sample: revise, add sample screenshot, _bestify
Frank Ch. Eigler [Fri, 13 Feb 2015 22:41:41 +0000 (17:41 -0500)]
linetimes sample: revise, add sample screenshot, _bestify

The callgraph-printing logic is much simplified by the recent addition
of array-slice operations.

9 years agonew files for example output from _best example scripts
Abegail Jakop [Fri, 13 Feb 2015 22:24:05 +0000 (17:24 -0500)]
new files for example output from _best example scripts

9 years agoBZ1128209: add a configure --{enable,disable}-virt option
Frank Ch. Eigler [Fri, 13 Feb 2015 15:31:32 +0000 (10:31 -0500)]
BZ1128209: add a configure --{enable,disable}-virt option

It was desirable that a systemtap rpm be buildable in a predictable
manner (in this case, without virthost support), even if prerequisites
(libvirt etc.) were accidentally installed.

9 years agostap.1: tweak SAFETY AND SECURITY section
Frank Ch. Eigler [Fri, 13 Feb 2015 15:07:38 +0000 (10:07 -0500)]
stap.1: tweak SAFETY AND SECURITY section

Reorganized to emphasize translate- and run-time checks at the top.

9 years agoPR17966: never generate .call for an unresolved .return $var
Josh Stone [Fri, 13 Feb 2015 02:06:54 +0000 (18:06 -0800)]
PR17966: never generate .call for an unresolved .return $var

The saved-return code already skipped .call for any $var that generated
an error, but variables attempted in a symtab context don't generate
errors until later.  This means a @defined-guarded $var might create an
unguarded access in .call that causes unrecoverable errors further on.

Now the .call will be skipped if the target_symbol persists for any
reason, regardless of its error state.  Any resolved target_symbol
should become something quite different, usually a loc2c function call.

The minidebuginfo.exp test is extended to exercise @defined and .return
scenarios as well.

9 years agoruntime/linux: block utrace-via-tracepoints without tracepoints
Josh Stone [Thu, 12 Feb 2015 21:45:15 +0000 (13:45 -0800)]
runtime/linux: block utrace-via-tracepoints without tracepoints

The code in autoconf-utrace-via-tracepoints.c will compile just fine on
kernels which do have those tracepoints, but not CONFIG_TRACEPOINTS=y.
That would only result in ENOSYS at runtime.

To get this autoconf working at compile time, check the config directly.

Reported-by: Crestez Dan Leonard <cdleonard@gmail.com>
9 years agoTweak a couple of syscall test cases.
David Smith [Wed, 11 Feb 2015 19:10:20 +0000 (13:10 -0600)]
Tweak a couple of syscall test cases.

* testsuite/systemtap.syscall/shutdown.c: Fix typo.
* testsuite/systemtap.syscall/module.c: Tweak to avoid an OOM error on
  ppc64.

9 years agoMake fileline-profile.stp executable
William Cohen [Wed, 11 Feb 2015 15:05:17 +0000 (10:05 -0500)]
Make fileline-profile.stp executable

9 years agoUpdate the keyctl.c testcase so that it can also be run using sudo.
Martin Cermak [Wed, 11 Feb 2015 09:20:36 +0000 (10:20 +0100)]
Update the keyctl.c testcase so that it can also be run using sudo.

9 years agogcc5 -Wformat=2 tweaks, x86-64 on rawhide edition
Frank Ch. Eigler [Wed, 11 Feb 2015 00:33:41 +0000 (19:33 -0500)]
gcc5 -Wformat=2 tweaks, x86-64 on rawhide edition

And a few more crawl out from between one's toes ...

9 years agogcc5 -Wformat=2 tweaks, x86-64 edition
Frank Ch. Eigler [Wed, 11 Feb 2015 00:21:21 +0000 (19:21 -0500)]
gcc5 -Wformat=2 tweaks, x86-64 edition

inttypes.h print-format macros vs. types, round too, 64-bit edition

9 years agogcc5 -Wformat=2 tweaks
Frank Ch. Eigler [Tue, 10 Feb 2015 22:42:35 +0000 (17:42 -0500)]
gcc5 -Wformat=2 tweaks

-Wformat=2 now includes -Wformat=signedness, which sadly some of our
violates.  Correct this throughout with some casts. In the case of
stapdyn, we downgrade to -Wformat=1 due to problems with
dyninst-devel.

Regenerate auto* configury on fedora rawhide, since automake was
complaining about needing "subdir-objects" in AUTOMAKE_OPTIONS.

9 years agoFix PR17951 by fixing nesting in several syscall socketcall-based probes.
David Smith [Tue, 10 Feb 2015 21:31:40 +0000 (15:31 -0600)]
Fix PR17951 by fixing nesting in several syscall socketcall-based probes.

* tapset/linux/syscalls.stp: Fix syscall nesting in syscall.{bind,
  connect, getpeername, getsockname, listen}.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/syscalls2.stp: Fix syscall nesting in syscall.{recvmsg,
  send, sendmsg, shutdown, socket, socketpair}.
* tapset/linux/nd_syscalls2.stp: Ditto.
* runtime/linux/compat_unistd.h: Correct __NR_ia32_fchown32 value. Add
  __NR_bind, __NR_connect, __NR_getpeername, __NR_getsockname,
  __NR_listen, __NR_recvmsg, __NR_send, __NR_sendmsg, __NR_shutdown,
  __NR_socket, and __NR_socketpair.

9 years agoPR16716 partial fix: Fix syscall nesting in 'syscall.{chown,fchown,lchown}'.
David Smith [Tue, 10 Feb 2015 16:04:10 +0000 (10:04 -0600)]
PR16716 partial fix: Fix syscall nesting in 'syscall.{chown,fchown,lchown}'.

* tapset/linux/syscalls.stp: Fix x86/x86_64 syscall nesting in
  syscall.{chown,fchown,lchown}.
* tapset/linux/nd_syscalls.stp: Ditto.
* runtime/linux/compat_unistd.h: Added __NR_ia32_chown32,
  __NR_ia32_fchown32, and __NR_ia32_lchown32.

9 years agoMake all socketcall.connect probes optional.
William Cohen [Tue, 10 Feb 2015 12:36:51 +0000 (07:36 -0500)]
Make all socketcall.connect probes optional.

Both 32-bit and 64-bit arm do not implement syscall socketcall.  A
number of tests were failing on those architectures because two of the
syscall socketcall return probes were not optional.  Made those two
syscall socketcall variants optional like all the others.

9 years agoFix PR17928 - syscall tapset/testsuite problems (on a newer 32-bit kernel) (2)
William Cohen [Mon, 9 Feb 2015 22:23:13 +0000 (17:23 -0500)]
Fix PR17928 - syscall tapset/testsuite problems (on a newer 32-bit kernel) (2)

* tapset/linux/syscalls2.stp {sys_recv, sys_recvfrom}
* testsuite/systemtap.syscall/keyctl.c: Added 32-bit fix
* testsuite/systemtap.syscall/recv.c: Ditto
* testsuite/systemtap.syscall/send.c: Ditto
* testsuite/systemtap.syscall/sendmsg.c: Ditto

9 years agoFix PR17928 - syscall tapset/testsuite problems (on a newer 32-bit kernel).
William Cohen [Mon, 9 Feb 2015 16:03:09 +0000 (11:03 -0500)]
Fix PR17928 - syscall tapset/testsuite problems (on a newer 32-bit kernel).

* tapset/linux/syscalls.stp: Fix types in syscall.{chmod, fchmod, fchmodat}

9 years agoThe 32-bit arm does not remap epoll_wait or poll syscalls
William Cohen [Sat, 7 Feb 2015 05:42:07 +0000 (00:42 -0500)]
The 32-bit arm does not remap epoll_wait or poll syscalls

The poll test was failing because the test was expecting the 32-bit
arm processor to remap the epoll_wait syscall to epoll_pwait and to
remap the poll syscall to ppoll.  Only the arm64 is remapping those
syscalls.

9 years agoDo not expect that alarm(-1) to work for the syscall alarm.c test
William Cohen [Sat, 7 Feb 2015 04:15:17 +0000 (23:15 -0500)]
Do not expect that alarm(-1) to work for the syscall alarm.c test

Setting a alarm for a time in the past (alarm(-1)) doesn't make much
sense.  Some kernels allow this and do not flag an error.  Others such
as the Fedora 20 32-bit ARM kernel return -EINVAL.  Allow the
syscall alarm test to pass with kernels that do return an error.

9 years agoFix PR17928 - syscall tapset/testsuite problems (on a newer 32-bit kernel).
David Smith [Fri, 6 Feb 2015 20:57:51 +0000 (14:57 -0600)]
Fix PR17928 - syscall tapset/testsuite problems (on a newer 32-bit kernel).

* tapset/linux/syscalls.stp: Fix types in syscall.{add_key, alarm,
  fgetxattr, fstatfs64, getrandom, getxattr, init_module, lgetxattr,
  listxattr, llistxattr, lsetxattr, lstat, madvise, mlock,
  modify_ldt, mmap2, mq_timedsend, msgrcv, msgsnd, msync, munmap}.
  Fix types and add 32-bit kernel support via socketcall in
  syscall.{bind, connect, getpeername, getsockname, listen}.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/syscalls2.stp: Fix types and add 32-bit kernel support via
  socketcall in syscall.{recvmsg, send, sendmsg, sendmmsg, shutdown,
  socket, socketpair}. Fix types in syscall.{sendfile, sendto, setxattr,
  shmget, statfs64}.
* tapset/linux/nd_syscalls2.stp: Ditto.
* testsuite/buildok/nd_syscalls2-detailed.stp: Fixed typos.
* testsuite/buildok/syscalls2-detailed.stp: Ditto.
* testsuite/systemtap.syscall/modify_ldt.c: New testcase.
* testsuite/systemtap.syscall/inotify.c: Added 32-bit fix.
* testsuite/systemtap.syscall/mq.c: Ditto.
* testsuite/systemtap.syscall/recvfrom.c: Ditto.
* testsuite/systemtap.syscall/recvmmsg.c: Ditto.
* testsuite/systemtap.syscall/recvmsg.c: Ditto.
* testsuite/systemtap.syscall/sendmmsg.c: Ditto.
* testsuite/systemtap.syscall/sendto.c: Ditto.
* testsuite/systemtap.syscall/memfd_create.c: Fixed compile problem.
* testsuite/systemtap.syscall/nfsservctl.c: Ditto.
* testsuite/systemtap.syscall/shutdown.c: Ditto.
* testsuite/systemtap.syscall/sigmask.c: Ditto.

9 years agoPR16716 partial fix: Fix types for 'syscall.prctl'.
David Smith [Fri, 6 Feb 2015 19:51:50 +0000 (13:51 -0600)]
PR16716 partial fix: Fix types for 'syscall.prctl'.

* tapset/linux/aux_syscalls.stp (_prctl_argstr): New function.
* tapset/linux/syscalls2.stp (syscall.prctl): Fixed types and calls
  _prctl_argstr().
* tapset/linux/nd_syscalls2.stp: Ditto.
* testsuite/systemtap.syscall/coverage.tcl: Updated bad syscall list.
* testsuite/systemtap.syscall/prctl.c: New test case.
* testsuite/buildok/aux_syscalls-embedded.stp: Added new test.

9 years agoThis patch fix spelling typo in stap.1 and stap-server.8
Masanari Iida [Fri, 6 Feb 2015 19:43:21 +0000 (14:43 -0500)]
This patch fix spelling typo in stap.1 and stap-server.8

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
9 years agoNEWS blurb about symfileline() and related functions
Abegail Jakop [Fri, 6 Feb 2015 16:00:53 +0000 (11:00 -0500)]
NEWS blurb about symfileline() and related functions

9 years agoMerge branch 'ajakop/12276' of ssh://sourceware.org/git/systemtap into ajakop/12276
Abegail Jakop [Fri, 6 Feb 2015 15:47:47 +0000 (10:47 -0500)]
Merge branch 'ajakop/12276' of ssh://sourceware.org/git/systemtap into ajakop/12276

Conflicts:
runtime/unwind/unwind.h

9 years agoPR12276: example usages of symfileline() to profile
Abegail Jakop [Thu, 5 Feb 2015 21:30:27 +0000 (16:30 -0500)]
PR12276: example usages of symfileline() to profile

EXAMPLE/profiling/periodic.stp: for the case of printing out symdata for a
kernel address, if file:line information is available, then print out the
symbol@file:line information.

EXAMPLE/profiling/fileline-profile.*: use symfileline() and symname(),
or symdata if file:line info is not available, to print out information
on the top 20 addresses sampled from when the stap script was running.

9 years agoPR12276: add runtime check for specified address len
Abegail Jakop [Thu, 5 Feb 2015 21:17:00 +0000 (16:17 -0500)]
PR12276: add runtime check for specified address len

9 years agoPR12276: more debug_line traversal checks during runtime
Abegail Jakop [Tue, 3 Feb 2015 15:37:54 +0000 (10:37 -0500)]
PR12276: more debug_line traversal checks during runtime

9 years agoPR12276: fix debug_line linenum and address calcs
Abegail Jakop [Mon, 2 Feb 2015 23:15:48 +0000 (18:15 -0500)]
PR12276: fix debug_line linenum and address calcs

9 years agoPR12276: check all sequences in _stp_linenumber_lookup
Abegail Jakop [Mon, 2 Feb 2015 23:05:47 +0000 (18:05 -0500)]
PR12276: check all sequences in _stp_linenumber_lookup

runtime/sym.c: addresses can only increase within a sqeunce, but at the
start of the new sequence, the starting address can be lower than the
previous'. _stp_linenumber_lookup() was changed to iterate through all
sequences until a suitable address is found, instead of giving up when
the line data address passes the desired address.

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