]> sourceware.org Git - systemtap.git/log
systemtap.git
9 years agoPR17860: match foreach logic in tmpcounter and unparser
Jonathan Lebon [Fri, 16 Jan 2015 18:29:40 +0000 (13:29 -0500)]
PR17860: match foreach logic in tmpcounter and unparser

This patch fixes PR17860 by ensuring that tmpvars are declared in
c_tmpcounter::visit_foreach_loop() in the same order as they are used in
c_unparser::visit_foreach_loop().

9 years agoUpdate systemtap-service.exp to reflect commit 075ec56b (RHBZ847286)
Martin Cermak [Fri, 23 Jan 2015 10:30:49 +0000 (11:30 +0100)]
Update systemtap-service.exp to reflect commit 075ec56b (RHBZ847286)

9 years agoPR16716 partial fix: Fix types for 'syscall.{clone,s[gs]etmask,tkill}'.
David Smith [Thu, 22 Jan 2015 21:17:42 +0000 (15:17 -0600)]
PR16716 partial fix: Fix types for 'syscall.{clone,s[gs]etmask,tkill}'.

* tapset/linux/nd_syscalls.stp (nd_syscall.clone): Fix types.
* tapset/linux/syscalls2.stp (syscall.ssetmask): Fix types and add
  'newmask_str'.
  (syscall.tkill): Fix types.
* tapset/linux/nd_syscalls2.stp (nd_syscall.ssetmask): Add 'newmask_str'.
* tapset/linux/aux_syscalls.stp (_stp_sigmask_str): New function.
* testsuite/buildok/syscalls2-detailed.stp: Added 'newmask_str' testing to
  syscall.ssetmask.
* testsuite/buildok/nd_syscalls2-detailed.stp: Ditto.
* testsuite/systemtap.syscall/clone.c: Add limit testing.
* testsuite/systemtap.syscall/signal.c: Add testing for the 'tkill' syscall.
* testsuite/systemtap.syscall/sigmask.c: New test case.

9 years agoPR17864: Fix alias_tapset.exp regression
Martin Cermak [Wed, 21 Jan 2015 17:29:48 +0000 (18:29 +0100)]
PR17864: Fix alias_tapset.exp regression

* Take only interesting parts of the stap output into account
  so that expect's match_max doesn't get exceeded.
* Adapt the testcase to commit befbf100 which modifies
  syscall.read on s390x

9 years agoerror::dwarf man page: mention possibility of elfutils lack-of-compression
Frank Ch. Eigler [Tue, 20 Jan 2015 20:16:54 +0000 (15:16 -0500)]
error::dwarf man page: mention possibility of elfutils lack-of-compression

Reported-By: Simon Eskildsen @Sirupsen
9 years agohello-world example: use probe oneshot
Frank Ch. Eigler [Sun, 18 Jan 2015 21:50:22 +0000 (16:50 -0500)]
hello-world example: use probe oneshot

9 years agodtrace.in: ignore "-x FOOBAR" options
Frank Ch. Eigler [Fri, 16 Jan 2015 19:07:02 +0000 (14:07 -0500)]
dtrace.in: ignore "-x FOOBAR" options

Reported-By: tromey & sfink
9 years agoPR17696: Ignore DW_AT_comp_dir == s.kernel_build_tree
Josh Stone [Mon, 12 Jan 2015 20:39:52 +0000 (12:39 -0800)]
PR17696: Ignore DW_AT_comp_dir == s.kernel_build_tree

If DW_AT_comp_dir is the same as s.kernel_build_tree, then it's not a
useful path for s.kernel_source_tree.  By ignoring this case, we allow
the next block to check whether the source symlink is useful instead.

9 years agoPR17714: Work with valid pointers, correctly test for unimplemented syscalls.
Martin Cermak [Mon, 12 Jan 2015 16:37:18 +0000 (17:37 +0100)]
PR17714: Work with valid pointers, correctly test for unimplemented syscalls.

* tapset/linux/syscalls.stp: Work with valid pointers in s390 compat task.
* testsuite/systemtap.syscall/poll.c: epoll_pwait() unimplemented on RHEL5 x86_64.

9 years agodummy commit to credit smileytap.svg creator
Andy Fitzsimon [Fri, 9 Jan 2015 20:53:57 +0000 (15:53 -0500)]
dummy commit to credit smileytap.svg creator

9 years agoMerge branch 'jlebon/trace_system' (PR13330)
Jonathan Lebon [Fri, 9 Jan 2015 16:41:50 +0000 (11:41 -0500)]
Merge branch 'jlebon/trace_system' (PR13330)

9 years agotracepoint_query: make private what need not be public
Jonathan Lebon [Fri, 9 Jan 2015 16:29:05 +0000 (11:29 -0500)]
tracepoint_query: make private what need not be public

And document each member with a small comment.

9 years agoNEWS: add blurb about PR13330
Jonathan Lebon [Fri, 19 Dec 2014 14:54:52 +0000 (09:54 -0500)]
NEWS: add blurb about PR13330

9 years agostapprobes.3stap: document new tracepoint syntax
Jonathan Lebon [Fri, 19 Dec 2014 21:03:11 +0000 (16:03 -0500)]
stapprobes.3stap: document new tracepoint syntax

Talk about the new system:name syntax. Also update the sched_switch
tracepoint example, which no longer shares the $rq argument.

9 years agolisting_mode.exp: update for new syntax
Jonathan Lebon [Fri, 19 Dec 2014 20:12:11 +0000 (15:12 -0500)]
listing_mode.exp: update for new syntax

9 years agotracepoints.exp: add new tests for $$system
Jonathan Lebon [Mon, 22 Dec 2014 14:16:07 +0000 (09:16 -0500)]
tracepoints.exp: add new tests for $$system

9 years agotracepoint probes: add support for $$system
Jonathan Lebon [Fri, 19 Dec 2014 19:19:06 +0000 (14:19 -0500)]
tracepoint probes: add support for $$system

The $$system context variable holds the system in which the current
tracepoint resides. E.g.:

probe kernel.trace("sched:sched_switch") {
   println($$system)
   println($$name)
}

Prints:

sched
sched_switch

9 years agotracepoints.exp: add tests or new syntax
Jonathan Lebon [Fri, 31 Oct 2014 13:59:45 +0000 (09:59 -0400)]
tracepoints.exp: add tests or new syntax

9 years agotracepoint probes: ensure valid string given
Jonathan Lebon [Fri, 19 Dec 2014 21:16:23 +0000 (16:16 -0500)]
tracepoint probes: ensure valid string given

9 years agodon't support TRACE_SYSTEM for --compatible <= 2.6
Jonathan Lebon [Fri, 19 Dec 2014 18:53:09 +0000 (13:53 -0500)]
don't support TRACE_SYSTEM for --compatible <= 2.6

When in compatibility mode, we want the probe name to remain the same so
that e.g. pn() still only displays the tracepoint name (without the
system prefix).

9 years agomake a #define for STAP_TRACE_SYSTEM
Jonathan Lebon [Mon, 6 Oct 2014 21:21:26 +0000 (17:21 -0400)]
make a #define for STAP_TRACE_SYSTEM

Rather than hardcode it in a bunch of places.

9 years agotracepoint probes: filter by system and append to final probe
Jonathan Lebon [Fri, 26 Sep 2014 23:38:54 +0000 (19:38 -0400)]
tracepoint probes: filter by system and append to final probe

We 'turn on' the switch and implement the filter in
handle_query_module() which rejects any module that does not match the
given system (if any).

This commit also makes the system part of the final name of the
tracepoint. As a nice side-effect, listing tracepoints using e.g.

stap -l 'kernel.trace("*")'

will list tracepoints in order of system.

9 years agotracepoint probes: parse system:tracepoint syntax
Jonathan Lebon [Fri, 26 Sep 2014 22:58:40 +0000 (18:58 -0400)]
tracepoint probes: parse system:tracepoint syntax

9 years agotracepoint_builder: add section to hold TRACE_SYSTEM
Jonathan Lebon [Fri, 26 Sep 2014 22:00:23 +0000 (18:00 -0400)]
tracepoint_builder: add section to hold TRACE_SYSTEM

Upon compiling the various headers, we also suck up the current value of
TRACE_SYSTEM into a new section called .stap_trace_system.
Unfortunately, we cannot play the same trick we do with the
stapprobe_{function} since TRACE_SYSTEM can be any string value and may
thus contain invalid identifier characters.

9 years agopf4 sample: tweak keywords
Frank Ch. Eigler [Fri, 9 Jan 2015 02:04:30 +0000 (21:04 -0500)]
pf4 sample: tweak keywords

9 years agoUse the kernel source symlink for tracepoints
Josh Stone [Thu, 8 Jan 2015 22:47:20 +0000 (14:47 -0800)]
Use the kernel source symlink for tracepoints

When the source symlink is different than the build symlink, as for
out-of-tree kernel builds and Debian linux-headers, then we should use
that path as a prefix for finding tracepoint headers.

9 years agoUse POSIX '=' in run-stap and run-staprun
Josh Stone [Thu, 8 Jan 2015 22:46:19 +0000 (14:46 -0800)]
Use POSIX '=' in run-stap and run-staprun

9 years agoFix PR17807 by updating the vfs tapset.
David Smith [Tue, 6 Jan 2015 21:43:42 +0000 (15:43 -0600)]
Fix PR17807 by updating the vfs tapset.

* tapset/linux/vfs.stp (generic.fop.aio_read): Make optional and fix
  __iov_length() call to use VERIFY_WRITE.
  (generic.fop.aio_read.return): Make optional.
  (generic.fop.read_iter): New probe.
  (generic.fop.read_iter.return): Ditto.
  (generic.fop.aio_write): Make optional and fix __iov_length() call to
  use VERIFY_READ.
  (generic.fop.aio_write.return): Make optional.
  (generic.fop.write_iter): New probe.
  (generic.fop.write_iter.return): Ditto.
* tapset/linux/nfs.stp (nfs.fop.aio_read): Fix __iov_length() call to use
  VERIFY_WRITE.
  (nfs.fop.read_iter): Ditto.
  (nfs.fop.aio_write): Fix __iov_length() call to use VERIFY_READ.
  (nfs.fop.write_iter): Ditto.
* testsuite/buildok/vfs-detailed.stp: Add tests for the new probes.

9 years agoNEWS: mention _best keyword sample scripts
Frank Ch. Eigler [Tue, 6 Jan 2015 19:39:26 +0000 (14:39 -0500)]
NEWS: mention _best keyword sample scripts

9 years agoUpdate testsuite/buildok/xtime.stp for the 3.18 kernel.
David Smith [Tue, 6 Jan 2015 19:11:29 +0000 (13:11 -0600)]
Update testsuite/buildok/xtime.stp for the 3.18 kernel.

9 years agoMake the testsuite's get_system_info() function more robust.
David Smith [Tue, 6 Jan 2015 18:53:23 +0000 (12:53 -0600)]
Make the testsuite's get_system_info() function more robust.

* testsuite/lib/systemtap.exp (get_system_info): Make more robust by
  handling errors when running 'lsb_release'.

9 years agoUpdate dentry.stp to handle more kernels, especially 3.18.
David Smith [Tue, 6 Jan 2015 18:51:34 +0000 (12:51 -0600)]
Update dentry.stp to handle more kernels, especially 3.18.

* tapset/linux/dentry.stp: Adapt to changes in the dentry structure.

9 years agoPR16716 partial fix: Fix types in 'syscall.{fadvise64,futex,[gs]et_mempolicy}'.
David Smith [Tue, 6 Jan 2015 18:49:10 +0000 (12:49 -0600)]
PR16716 partial fix: Fix types in 'syscall.{fadvise64,futex,[gs]et_mempolicy}'.

* tapset/linux/syscalls.stp: Fixed types and nesting in syscall.fadvise64,
  syscall.fadvise64_64, syscall.futex, syscall.compat_futex,
  and syscall.get_mempolicy.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/syscalls2.stp: Fixed types and nesting in syscall.set_mempolicy.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/aux_syscalls.stp (__futex_op_str): Improved and updated.
  (__futex_wake_op_str): New function.
  (__fadvice_advice_str): Improved and updated.
  (_mempolicy_flags_str): New function.
  (_mempolicy_mode_str): Ditto.
* tapset/linux/syscalls.stpm: Added __futex_argstr() macro.
* tapset/linux/x86_64/syscalls.stp: Added syscall.compat_fadvise64 probe.
* tapset/linux/x86_64/nd_syscalls.stp: Ditto.
* runtime/linux/compat_unistd.h: Added '__NR_fadvise64_64' define.
* testsuite/systemtap.syscall/fadvise64.c: New testcase.
* testsuite/systemtap.syscall/futex.c: Ditto.
* testsuite/systemtap.syscall/mempolicy.c: Ditto.
* testsuite/buildok/aux_syscalls-embedded.stp: Updated.
* testsuite/buildok/nd_syscalls-detailed.stp: Updated.
* testsuite/buildok/nd_syscalls2-detailed.stp: Ditto.
* testsuite/buildok/syscalls-detailed.stp: Ditto.
* testsuite/buildok/syscalls2-detailed.stp: Ditto.

9 years agoFixed compile problem on 3.18 kernels, caused by removal of dentry macro.
David Smith [Tue, 6 Jan 2015 16:07:01 +0000 (10:07 -0600)]
Fixed compile problem on 3.18 kernels, caused by removal of dentry macro.

* runtime/linux/task_finder.c (__stp_call_mmap_callbacks_with_addr):
  Handle 'dentry' macro removal.
  (__stp_call_mmap_callbacks_for_task): Ditto.
* runtime/linux/task_finder2.c (__stp_call_mmap_callbacks_with_addr): Ditto.
  (__stp_call_mmap_callbacks_for_task): Ditto.

9 years ago_best samples: nominate thread-times.stp
Frank Ch. Eigler [Fri, 2 Jan 2015 00:23:05 +0000 (19:23 -0500)]
_best samples: nominate thread-times.stp

9 years agoAdd "_best" category sample scripts
Frank Ch. Eigler [Thu, 1 Jan 2015 19:23:06 +0000 (14:23 -0500)]
Add "_best" category sample scripts

On suggestion from Brendan Gregg, it would be helpful for the examples
list to highlight "best" scripts, out of the over-one-hundred we ship.
To begin, this is approximated by special support for the .meta keyword
"_best", which results in highlighting the marked samples at the top
of the [keyword-]index.html files.

9 years agoPR17743: stap* help/version text should go peacefully to stdout
Frank Ch. Eigler [Tue, 30 Dec 2014 15:25:01 +0000 (10:25 -0500)]
PR17743: stap* help/version text should go peacefully to stdout

As per GNU habits, specifically requested help/version strings for
our programs should go to stdout with rc=0 rather than stderr rc=1.
Adjust stap, staprun, stapio, stapdyn code to taste.  helpout.exp
test case to confirm.

9 years agoAdd the spawn_seeker.stp example.
William Cohen [Tue, 23 Dec 2014 22:19:47 +0000 (17:19 -0500)]
Add the spawn_seeker.stp example.

9 years agolisting_mode.exp: update for RHEL5
Jonathan Lebon [Mon, 22 Dec 2014 17:21:40 +0000 (12:21 -0500)]
listing_mode.exp: update for RHEL5

The listing_mode.exp testcase showed multiple failures on RHEL5. This
commit fixes these errors by making perf probe testing conditional on
system support and by adjusting linenos to play nice with RHEL5's GCC.

9 years agoNEWS: add blurb about PR17190
Jonathan Lebon [Mon, 6 Oct 2014 21:06:34 +0000 (17:06 -0400)]
NEWS: add blurb about PR17190

9 years agoscripts/update-docs: pass on some learned wisdom during startup
Frank Ch. Eigler [Mon, 22 Dec 2014 17:40:50 +0000 (12:40 -0500)]
scripts/update-docs: pass on some learned wisdom during startup

9 years agostap.1 option doc tweaks
Frank Ch. Eigler [Mon, 22 Dec 2014 17:31:06 +0000 (12:31 -0500)]
stap.1 option doc tweaks

9 years agoregenerate configury with fedora-21 auto* toolchain
Frank Ch. Eigler [Mon, 22 Dec 2014 17:02:35 +0000 (12:02 -0500)]
regenerate configury with fedora-21 auto* toolchain

9 years agoPR17737: tapset-reference html chapters should not get <toc>
Frank Ch. Eigler [Mon, 22 Dec 2014 16:59:40 +0000 (11:59 -0500)]
PR17737: tapset-reference html chapters should not get <toc>

The docbook xsl-stylesheets' html output normally includes generated
TOC for incoming <chapter> blocks.  Suppress this with a cunning
choice of generate.toc --stringparam for the xmlto.  (On F21 at least,
the parameter needs to contain an embedded \ apparently due to layers
of being passed between shell scripts and xml parsers and whatnot.
Sorry.)

9 years agoFix PR17292 parse error of string auto-concatenation in printf statement.
Hushan Jia [Mon, 22 Dec 2014 15:08:20 +0000 (09:08 -0600)]
Fix PR17292 parse error of string auto-concatenation in printf statement.

Use multi part string concatenation as the format string of printf
statement will cuase following parse error:

$ /usr/bin/stap -p1 testsuite/parseok/strconcat.stp
parse error: expected ','
        saw: string 'bar' at testsuite/parseok/strconcat.stp:6:19
     source:     printf("foo " "bar" "\n")
                               ^

1 parse error.
Pass 1: parse failed.  [man error::pass1]

This fix is suggested by fche.

9 years agoFixed PR17270 by updating "on the fly" tests for ppc64.
David Smith [Wed, 17 Dec 2014 17:38:45 +0000 (11:38 -0600)]
Fixed PR17270 by updating "on the fly" tests for ppc64.

* translate.cxx (c_unparser::emit_module_refresh): Don't print debug
  message in STAP_SESSION_STOPPING state.
* testsuite/systemtap.onthefly/hrtimer_onthefly.exp: On ppc64, don't probe
  kernel tracepoints causing a crash.
* testsuite/systemtap.onthefly/kprobes_onthefly.exp: Ditto.
* testsuite/systemtap.onthefly/uprobes_onthefly.exp: Ditto.

9 years agoFix PR17688 by updating the nfs tapset for kernels >= 3.16.
David Smith [Tue, 16 Dec 2014 16:58:05 +0000 (10:58 -0600)]
Fix PR17688 by updating the nfs tapset for kernels >= 3.16.

* tapset/linux/nfs.stp (nfs.fop.aio_read): Only use if the kernel version
  is less than 3.16. Upstream kernel has switched from aio_{read,write} to
  {read_write}_iter, but using the same function names.
  (nfs.fop.aio_write): Ditto.
  (nfs.fop.read_iter): New probe for kernel versions >= 3.16.
  (nfs.fop.write_iter): Ditto.
* testsuite/buildok/nfs-detailed.stp: Added new tests.

9 years agoImprove the output of cycle_thief.stp to include executable name
William Cohen [Mon, 15 Dec 2014 19:45:40 +0000 (14:45 -0500)]
Improve the output of cycle_thief.stp to include executable name

Jeremy Eder suggested that it would be good to include the executable
name in the output to save people the step of looking up the
executable name of the various PIDs.  The change also includes a
header for the output in that section to make it clearer what each
column is.

9 years agoPR17706: Fix filename in syscall.openat for s390.
Martin Cermak [Mon, 15 Dec 2014 06:02:45 +0000 (07:02 +0100)]
PR17706: Fix filename in syscall.openat for s390.

9 years agofix bashisms in stap-report script
Oleksandr Chumachenko [Sun, 14 Dec 2014 15:00:32 +0000 (10:00 -0500)]
fix bashisms in stap-report script

stap-report shell script contains bashisms that may be unsupported in
some POSIX-complete shells.

9 years agoPR16716 partial fix: Fix types in 'syscall.{[f]truncate,[f]statfs,umask,ustat}'
David Smith [Fri, 12 Dec 2014 21:19:35 +0000 (15:19 -0600)]
PR16716 partial fix: Fix types in 'syscall.{[f]truncate,[f]statfs,umask,ustat}'

* runtime/linux/compat_unistd.h: Add ftruncate/truncate defines.
* tapset/linux/aux_syscalls.stp (_sched_policy_str): Improved.
  (_mountflags_str): Updated using _stp_lookup_or_str().
  (_umountflags_str): Ditto.
  (__long): New function.
* tapset/linux/syscalls.stp: Fixed types in fstatfs, fstatfs64, and
  ftruncate.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/syscalls2.stp: Fixed types in statfs64, truncate, umask,
  ustat, and ustat32.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/powerpc/nd_syscalls.stp: Added arch-specific compat
  ftruncate64 and truncate64 probes.
* 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/nd_syscalls-arch-detailed.stp: Added tests for new probes.
* testsuite/buildok/syscalls-arch-detailed.stp: Ditto.
* testsuite/buildok/aux_syscalls-embedded.stp: Added test.
* testsuite/systemtap.syscall/ioperm.c: Minor update.
* testsuite/systemtap.syscall/mount.c: Expects new output.
* testsuite/systemtap.syscall/sched_setscheduler.c: Ditto.
* testsuite/systemtap.syscall/signal.c: Minor update.
* testsuite/systemtap.syscall/statfs.c: Add more tests.
* testsuite/systemtap.syscall/trunc.c: Ditto.
* testsuite/systemtap.syscall/umask.c: Ditto.

9 years agoFix PR17690 by adding support for asynchronous NFS rename operations.
David Smith [Fri, 12 Dec 2014 19:06:14 +0000 (13:06 -0600)]
Fix PR17690 by adding support for asynchronous NFS rename operations.

* tapset/linux/nfs_proc.stp (nfs.proc.rename_setup): Added to support
  asynchronous NFS client rename operations.
  (nfs.proc2.rename_setup): Ditto.
  (nfs.proc3.rename_setup): Ditto.
  (nfs.proc4.rename_setup): Ditto.
  (nfs.proc.rename_done): Ditto.
  (nfs.proc2.rename_done): Ditto.
  (nfs.proc3.rename_done): Ditto.
  (nfs.proc4.rename_done): Ditto.
  (nfs.proc3.rename): Provide default values if the probe point doesn't
  exist.
  (nfs.proc4.rename): Ditto.
  (nfs.proc3.read_setup): Update to handle new argument names.
  (nfs.proc4.read_setup): Ditto.
  (nfs.proc3.read_done): Ditto.
  (nfs.proc4.read_done): Ditto.
  (nfs.proc3.write_setup): Ditto.
  (nfs.proc4.write_setup): Ditto.
  (nfs.proc3.write_done): Ditto.
  (nfs.proc4.write_done): Ditto.
* testsuite/buildok/nfs_proc-detailed.stp: Update to handle new probe
  points.

9 years agoman/stapprobes for syscalls: note $var narrowing risk
Frank Ch. Eigler [Fri, 12 Dec 2014 17:43:12 +0000 (12:43 -0500)]
man/stapprobes for syscalls: note $var narrowing risk

9 years agoAllow syscall tests to match the arm64 remapped syscalls:
Martin Cermak [Fri, 12 Dec 2014 09:51:07 +0000 (10:51 +0100)]
Allow syscall tests to match the arm64 remapped syscalls:

* testsuite/systemtap.syscall/openclose.c
* testsuite/systemtap.syscall/poll.c
* testsuite/systemtap.syscall/sched_setscheduler.c
* testsuite/systemtap.syscall/select.c
* testsuite/systemtap.syscall/statfs.c

9 years agoPR16716 partial fix: Fix types in syscall.ioperm
Martin Cermak [Wed, 10 Dec 2014 05:36:10 +0000 (06:36 +0100)]
PR16716 partial fix: Fix types in syscall.ioperm

* tapset/linux/nd_syscalls.stp: Fix types
* tapset/linux/syscalls.stp: Fix types
* testsuite/systemtap.syscall/ioperm.c: New testcase
* testsuite/systemtap.syscall/getdents.c: Fix coverage

9 years agoBZ117823: Simplify fix using typed-integers.
David Smith [Mon, 8 Dec 2014 22:17:06 +0000 (16:17 -0600)]
BZ117823: Simplify fix using typed-integers.

* tapset/linux/nfsd.stp: Simplify __svc_fh() fix which removes macro.

9 years agoFix the SDT_V3 operand handling to recognize arm64 style address modes
William Cohen [Mon, 8 Dec 2014 21:25:37 +0000 (16:25 -0500)]
Fix the SDT_V3 operand handling to recognize arm64 style address modes

The arm64 address operands are very similar to 32-bit arm address
operands, but they are not identical.  The arm64 versions may lack
white space and the '#' before the offset value.  The regular
expression matching has been adjusted to recognized both 32-bit and
64-bit arm versions.

9 years agoImplement arm64 support in __is_user_regs
William Cohen [Mon, 8 Dec 2014 20:20:53 +0000 (15:20 -0500)]
Implement arm64 support in __is_user_regs

9 years agoFix BZ1171823 by updating the __svc_fh() nfsd tapset function.
David Smith [Mon, 8 Dec 2014 20:04:19 +0000 (14:04 -0600)]
Fix BZ1171823 by updating the __svc_fh() nfsd tapset function.

* tapset/linux/nfsd.stp: Rewrite __svc_fh() in systemtap script language
  instead of embedded-C to get around the disappearance of struct svc_fh's
  declaration from a public kernel header file.

9 years agoAllow speculate.exp to use syscall.openat on arm64
William Cohen [Mon, 8 Dec 2014 19:39:25 +0000 (14:39 -0500)]
Allow speculate.exp to use syscall.openat on arm64

On arm64 the syscall.open is deprecated and will never be used.  The
arm64 will use syscall.openat instead.  The speculate.exp test has
been adjusted accept syscall.openat in the place of syscall.open.

9 years agoAllow pp.exp to use syscall.openat on arm64
William Cohen [Mon, 8 Dec 2014 17:08:05 +0000 (12:08 -0500)]
Allow pp.exp to use syscall.openat on arm64

On arm64 the syscall.open is deprecated and will never be used.  The
arm64 will use syscall.openat instead.  The pp.exp test has been
adjusted accept syscall.openat in the place of syscall.open.

9 years agoCorrections to global_var_kernel.stp tests
William Cohen [Mon, 8 Dec 2014 14:47:41 +0000 (09:47 -0500)]
Corrections to global_var_kernel.stp tests

Newer kernels have moved kernel/time.c to kernel/time/time.c and the
@var() statements need to be less picky where it looks for sys_tz.
Also some machines such as the arm64 use the syscall.openat than
the deprecated syscall.open.

9 years agoPR16716 partial fix: Fix types in 'syscall.sched_{{get,set}param,get_priority_{max...
Martin Cermak [Fri, 5 Dec 2014 16:38:50 +0000 (17:38 +0100)]
PR16716 partial fix: Fix types in 'syscall.sched_{{get,set}param,get_priority_{max,min},yield}'

* tapset/linux/aux_syscalls.stp: Fix handling negative args in _sched_policy_str()
* tapset/linux/nd_syscalls2.stp: Fix argstr in sched_get_priority_{max,min}
* tapset/linux/syscalls2.stp: Fix types and argstr in sched_get_priority_{max,min}
  and sched_{get,set}param
* testsuite/systemtap.syscall/mknod.c: Use thin wrapper around the syscall()
* testsuite/systemtap.syscall/sched.c: New testcase

9 years agoPR16716 partial fix: Fix types in 'syscall.{ioprio_[gs]et,sched_setaffinity}'.
David Smith [Thu, 4 Dec 2014 19:59:11 +0000 (13:59 -0600)]
PR16716 partial fix: Fix types in 'syscall.{ioprio_[gs]et,sched_setaffinity}'.

* tapset/linux/syscalls.stp: Fixed types in syscall.ioprio_get and
  syscall.ioprio_set.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/syscalls2.stp: Updated syscall.sched_getaffinity and fixed
  types and added 32-bit support to syscall.sched_setaffinity.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/aux_syscalls.stp (_mknod_mode_str): Simplified.
  (_stp_ioprio_which_str): New function.
  (_stp_ioprio_value_str): Ditto.
* testsuite/buildok/aux_syscalls-embedded.stp: Added test for new functions.
* testsuite/buildok/syscalls-detailed.stp: Tests new convience variables.
* testsuite/buildok/nd_syscalls-detailed.stp: Ditto.
* testsuite/systemtap.syscall/mknod.c: Updated.
* testsuite/systemtap.syscall/sched_getaffinity.c: Updated.
* testsuite/systemtap.syscall/ioprio.c: New test case.
* testsuite/systemtap.syscall/sched_setaffinity.c: Ditto.

9 years agoPR16716 partial fix: Fix types in syscall.mknod[at]
Martin Cermak [Wed, 3 Dec 2014 09:15:36 +0000 (10:15 +0100)]
PR16716 partial fix: Fix types in syscall.mknod[at]

* runtime/linux/compat_unistd.h: Added more compat defines
* tapset/linux/aux_syscalls.stp: Fixed types and neesting
* tapset/linux/syscalls.stp: Fixed types and neesting
* testsuite/systemtap.syscall/mknod.c: new testcase

9 years agoRHBZ1126645: New regression testcase.
Martin Cermak [Tue, 2 Dec 2014 16:16:50 +0000 (17:16 +0100)]
RHBZ1126645: New regression testcase.

9 years agoPR16716 partial fix: Fix types in 'syscall.{get,list,remove,set}xattr'.
David Smith [Mon, 1 Dec 2014 22:22:23 +0000 (16:22 -0600)]
PR16716 partial fix: Fix types in 'syscall.{get,list,remove,set}xattr'.

* tapset/linux/syscalls.stp: Fix types in syscall.fgetxattr,
  syscall.flistxattr, syscall.fremovexattr, syscall.fsetxattr,
  syscall.getxattr, syscall.lgetxattr, syscall.listxattr,
  syscall.llistxattr, and syscall.lsetxattr.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/syscalls2.stp: Fix types in syscall.setxattr.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/aux_syscalls.stp (_stp_xattr_flags): New function.
  (_stp_xattr_val_str): Ditto.
* testsuite/buildok/aux_syscalls-embedded.stp: Added new functions.
* testsuite/buildok/syscalls-detailed.stp: Test new convenience variables.
* testsuite/buildok/syscalls2-detailed.stp: Ditto.
* testsuite/buildok/nd_syscalls-detailed.stp: Ditto.
* testsuite/buildok/nd_syscalls2-detailed.stp: Ditto.
* testsuite/systemtap.syscall/fxattr.c: New test case.
* testsuite/systemtap.syscall/lxattr.c: Ditto.
* testsuite/systemtap.syscall/xattr.c: Dito.

9 years agoAllow systemtap.base/warnings.exp to work with newer kernels
William Cohen [Fri, 28 Nov 2014 05:01:50 +0000 (00:01 -0500)]
Allow systemtap.base/warnings.exp to work with newer kernels

Linux kernel commit f9c78b2be2cac2a7a397d489275e7d9f9ae785f2 moved
fs/bio.c to block/bio.c. Adjusted the test to be less picky about the
location of bio.c file.

9 years agoFix stat.c syscall test matching for arm64
William Cohen [Fri, 28 Nov 2014 04:52:35 +0000 (23:52 -0500)]
Fix stat.c syscall test matching for arm64

9 years agoAllow at_var_tracepoint.stp to handle time.c move in newer Linux kernels
William Cohen [Fri, 28 Nov 2014 02:53:16 +0000 (21:53 -0500)]
Allow at_var_tracepoint.stp to handle time.c move in newer Linux kernels

Kernel commit 5cee964597260237dd2cabb3ec22bba0da24b25d moved time.c
from kernel/time.c to kernel/time/time.c.  The at_var_tracepoint.stp
test was failing because of the changed location of the file.  The
test should not over specify the location of the time.c file.  This
change should work with both old and new kernels.

9 years agoRemove <stdint.h> from <sys/sdt.h>
Chung-Lin Tang [Tue, 21 Oct 2014 09:09:25 +0000 (17:09 +0800)]
Remove <stdint.h> from <sys/sdt.h>

9 years agoRHBZ1167652: Boot time probing feature fix
Martin Cermak [Tue, 25 Nov 2014 14:58:29 +0000 (15:58 +0100)]
RHBZ1167652: Boot time probing feature fix

* initscript/systemtap.in: Fix regenerating initramfs image
  without the stap module

9 years agoSplit the access of sp from the rest of pt_regs regs[] accesses
William Cohen [Fri, 21 Nov 2014 15:58:16 +0000 (10:58 -0500)]
Split the access of sp from the rest of pt_regs regs[] accesses

The pt_regs struct has regs[0] through regs[30].  The sp is a separate
field and not regs[31] in the regs array.  The compiler will fail to
compile modules when the code includes accesses to the sp because of
the warnings.  This change splits out sp (and all the other reg)
accesses so this code compiles correctly without warnings.  This
issues observed with the systemtap.base/rlimit.exp tests failures.
The rlimit.exp tests now all pass with the patch.

9 years agoRecognize the arm64 registers in SDT_V3 format
William Cohen [Fri, 21 Nov 2014 15:17:12 +0000 (10:17 -0500)]
Recognize the arm64 registers in SDT_V3 format

The check for the arm64 architecture was missing, so systemtap was not
recognizing the arm64 registers.  This addition should allow systemtap
to find the various arguments being passed in by user-space markers.

9 years agoAllow syscall tests to match the arm64 remapped syscalls
William Cohen [Fri, 21 Nov 2014 01:04:23 +0000 (20:04 -0500)]
Allow syscall tests to match the arm64 remapped syscalls

The arm64 does not implement a number of deprecated syscalls.  The
deprecated syscalls are remapped to more generic syscalls with the
additional arguments set to so the remapped systemcall emulates the
behavior the deprecated syscalls.  The syscall tests matching needed
to be adjusted to match these remaped syscalls for inotify_init(),
pipe(), select(), and vfork().  These fixes are applied to the
following tests:

* systemtap.syscall/inotify.c
* systemtap.syscall/pipe.c
* systemtap.syscall/recv.c
* systemtap.syscall/recvfrom.c
* systemtap.syscall/recvmmsg.c
* stemtap.syscall/recvmsg.c
* systemtap.syscall/select.c
* systemtap.syscall/vforkwait.c

9 years agoKFAIL more plt and callee probe types in systemtap.base/listing_mode.exp.
David Smith [Thu, 20 Nov 2014 22:55:23 +0000 (16:55 -0600)]
KFAIL more plt and callee probe types in systemtap.base/listing_mode.exp.

9 years agoPR17126: put hcall_* kernel tracepoints into blacklist for powerpc
Frank Ch. Eigler [Thu, 20 Nov 2014 21:30:20 +0000 (16:30 -0500)]
PR17126: put hcall_* kernel tracepoints into blacklist for powerpc

* tapsets.cxx (tracepoint_query::handle_query_func): Implement
  baby blacklist.

9 years agoAdd more checks for uprobes in the testsuite when needed.
David Smith [Thu, 20 Nov 2014 20:28:11 +0000 (14:28 -0600)]
Add more checks for uprobes in the testsuite when needed.

* testsuite/systemtap.base/callee.exp: Add uprobes_p test.
* testsuite/systemtap.base/pr16719.exp: Ditto.
* testsuite/systemtap.base/sdt_misc.exp: Ditto.
* testsuite/systemtap.base/stmt_inlines.exp: Ditto.
* testsuite/systemtap.base/utrace_syscall_args.exp: Add utrace_p test.
* testsuite/systemtap.examples/general/py2example.tcl: New file containing
  uprobes_p test.
* testsuite/systemtap.examples/general/py3example.tcl: Ditto.
* testsuite/systemtap.examples/memory/last_100_frees.tcl: Ditto.

9 years agoPR16716 partial fix: Fix types in 'syscall.{semctl,semget,semop,semtimedop}'.
David Smith [Thu, 20 Nov 2014 15:34:08 +0000 (09:34 -0600)]
PR16716 partial fix: Fix types in 'syscall.{semctl,semget,semop,semtimedop}'.

* tapset/linux/syscalls2.stp: Fix types and nesting in syscall.semctl,
  syscall.semget, syscall.semop, and syscall.semtimedop.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/aux_syscalls.stp: Add SEMOP, SEMCTL, and SEMTIMEDOP defines
  when needed.
* tapset/linux/syscalls.stpm: Add __compat_syscall_gate_negative macro.
* tapset/linux/s390/syscalls.stp: Since syscall.ipc was interferring with
  the new syscall.sem* work, go ahead and deprecate syscall.ipc now.
* tapset/linux/s390/nd_syscalls.stp: Ditto.
* testsuite/systemtap.syscall/semctl.c: New testcase.
* testsuite/systemtap.syscall/semget.c: Ditto.
* testsuite/systemtap.syscall/semop.c: Ditto.
* testsuite/buildok/syscalls2-detailed.stp: Add tests for new convenience vars.
* testsuite/buildok/nd_syscalls2-detailed.stp: Ditto.
* testsuite/buildok/syscalls-arch-detailed.stp: Only test s390x
  syscall.ipc when needed.
* testsuite/buildok/nd_syscalls-arch-detailed.stp:: Ditto.

9 years agoUpdated COVERAGE lines in syscall test cases.
David Smith [Wed, 19 Nov 2014 21:13:37 +0000 (15:13 -0600)]
Updated COVERAGE lines in syscall test cases.

* testsuite/systemtap.syscall/mmap.c: Updated COVERAGE line.
* testsuite/systemtap.syscall/pread.c: Ditto.
* testsuite/systemtap.syscall/pwrite.c: Ditto.
* testsuite/systemtap.syscall/signalfd.c: Ditto.
* testsuite/systemtap.syscall/statfs.c: Ditto.

9 years ago16716 partial fix: Fix types in 'syscall.{io_setup,io_submit,io_getevents,io_cancel...
Martin Cermak [Wed, 19 Nov 2014 18:00:22 +0000 (19:00 +0100)]
16716 partial fix: Fix types in 'syscall.{io_setup,io_submit,io_getevents,io_cancel,io_destroy}

* tapset/linux/nd_syscalls.stp: Fixed types and nesting
* tapset/linux/syscalls.stp: Fixed types and nesting
* testsuite/systemtap.syscall/aio.c: New testcase

9 years agoAdd arm64 loader to the whitelist of interpreters
William Cohen [Wed, 19 Nov 2014 14:48:49 +0000 (09:48 -0500)]
Add arm64 loader to the whitelist of interpreters

All the systemtap.base/listing_mode.exp tests that probed the library
were failing (pr17622) because the code did not have the arm64 loader
whitelisted.  Added the appropriate arm64 loader to the whitelist to
resolve this issue.

9 years agoruntime: fix kernel relocation basis symbol on ppc64le
Frank Ch. Eigler [Fri, 14 Nov 2014 20:04:53 +0000 (15:04 -0500)]
runtime: fix kernel relocation basis symbol on ppc64le

It's _stext, not .__start (as on normal ppc64).

9 years agoCorrect nodebug mkdirat syscall argstr
William Cohen [Fri, 14 Nov 2014 04:52:44 +0000 (23:52 -0500)]
Correct nodebug mkdirat syscall argstr

The debuginfo mkdirat syscall prints a string for the first argument.
However, the nodebug version just printed the numerical value of the
first arg.  Some of the testsuite/systemtap.syscall/nd_syscall.exp
tests were failing because of the difference in output.

9 years agoImprove arm64 syscall/nd_syscall test results
William Cohen [Fri, 14 Nov 2014 04:39:27 +0000 (23:39 -0500)]
Improve arm64 syscall/nd_syscall test results

A number of syscalls are remapped on the arm64 to newer, more general syscalls.
The older syscalls are not implemented on arm64.  The tests should match those
newer, more general syscalls.

9 years agoAdd arm64 specific defines for num_args.stp
William Cohen [Thu, 13 Nov 2014 18:34:28 +0000 (13:34 -0500)]
Add arm64 specific defines for num_args.stp

The ir and lr variables need to be defined for each architeture.
This test was missing a define for arm64.

9 years agoRHBZ1119336: document STAP_FIPS_OVERRIDE in man staprun.8
Frank Ch. Eigler [Wed, 12 Nov 2014 16:04:39 +0000 (11:04 -0500)]
RHBZ1119336: document STAP_FIPS_OVERRIDE in man staprun.8

9 years agoAdded missing 'asmlinkage()' call in nd_syscall.pread.
David Smith [Tue, 11 Nov 2014 21:17:05 +0000 (15:17 -0600)]
Added missing 'asmlinkage()' call in nd_syscall.pread.

9 years agoPR16716 partial fix: Fix types in 'syscall.{msgctl,msgget,msgrcv,msgsnd}'.
David Smith [Tue, 11 Nov 2014 20:52:07 +0000 (14:52 -0600)]
PR16716 partial fix: Fix types in 'syscall.{msgctl,msgget,msgrcv,msgsnd}'.

* tapset/linux/syscalls.stp (syscall.msgctl): Fixed types, nesting, and
  improved 32-bit support.
  (syscall.msgget): Ditto.
  (syscall.msgrcv): Ditto.
  (syscall.msgsnd): Ditto.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/aux_syscalls.stp (___sem_flags): Updated and improved.
  (_stp_msgget_key_str): New function.
  (_stp_msgctl_cmd_str): New function.
  (_stp_msgflg_str): New function.
  (_stp_compat_msgrcv_msgbuf): New function.
  (_stp_compat_msgrcv_msgtyp): New function.
* runtime/linux/compat_unistd.h: Added more compat defines.
* testsuite/buildok/syscalls-detailed.stp: Added tests for new '_str'
  variables.
* testsuite/buildok/nd_syscalls-detailed.stp: Ditto.

9 years agodebian bug766994: adapt to emacs 24.3 deprecation of c-* macros by default
Hilko Bengen [Tue, 11 Nov 2014 16:16:04 +0000 (11:16 -0500)]
debian bug766994: adapt to emacs 24.3 deprecation of c-* macros by default

It appears 'cl works better than 'cl-lib in the clean emacs24 debian
environment.

9 years agoImprove arm64 syscall/nd_syscall test results.
David Smith [Mon, 10 Nov 2014 15:31:16 +0000 (09:31 -0600)]
Improve arm64 syscall/nd_syscall test results.

* testsuite/systemtap.syscall/bind.c: Make the expected output for an
  open() syscall also expect an openat() syscall, since openat() is
  substituted for open() on arm64.
* testsuite/systemtap.syscall/chmod.c: Ditto.
* testsuite/systemtap.syscall/dir.c: Ditto.
* testsuite/systemtap.syscall/getpeername.c: Ditto.
* testsuite/systemtap.syscall/getsockname.c: Ditto.
* testsuite/systemtap.syscall/getsockopt.c: Ditto.
* testsuite/systemtap.syscall/listen.c: Ditto.
* testsuite/systemtap.syscall/lseek.c: Ditto.
* testsuite/systemtap.syscall/mmap.c: Ditto.
* testsuite/systemtap.syscall/openclose.c: Ditto.
* testsuite/systemtap.syscall/pread.c: Ditto.
* testsuite/systemtap.syscall/preadv.c: Ditto.
* testsuite/systemtap.syscall/pwrite.c: Ditto.
* testsuite/systemtap.syscall/pwritev.c: Ditto.
* testsuite/systemtap.syscall/readv.c: Ditto.
* testsuite/systemtap.syscall/readwrite.c: Ditto.
* testsuite/systemtap.syscall/recvfrom.c: Ditto.
* testsuite/systemtap.syscall/recvmmsg.c: Ditto.
* testsuite/systemtap.syscall/recvmsg.c: Ditto.
* testsuite/systemtap.syscall/setsockopt.c: Ditto.
* testsuite/systemtap.syscall/writev.c: Ditto.

9 years agoFixed BZ1160837 by updating the iostat-scsi.stp example.
David Smith [Thu, 6 Nov 2014 20:47:36 +0000 (14:47 -0600)]
Fixed BZ1160837 by updating the iostat-scsi.stp example.

* testsuite/systemtap.examples/io/iostat-scsi.stp: Updated for newer
  kernels like RHEL7 and rawhide. Probes the "sd_init_command" kernel
  function which replaced "sd_prep_fn" in newer kernels. Added whitespace
  for more clarity.

9 years agotransok/tval-opt.stp: nuke test case
Frank Ch. Eigler [Thu, 6 Nov 2014 14:35:18 +0000 (09:35 -0500)]
transok/tval-opt.stp: nuke test case

It can no longer pass as is, as -u has grown to mean
more and more unoptimization, far beyond $var elision.

9 years agoPR16716 partial fix: Fix types in syscall.mq_*
Martin Cermak [Wed, 5 Nov 2014 17:56:46 +0000 (18:56 +0100)]
PR16716 partial fix: Fix types in syscall.mq_*

tapset/linux/aux_syscalls.stp: Add __ushort()
tapset/linux/nd_syscalls.stp: Fix types, add compat support
tapset/linux/syscalls.stp: Fix types, add compat support
testsuite/systemtap.syscall/mq.c: New testcase

9 years agoPR16716 partial fix: Fix types in 'syscall.{pread,pwrite,read,write}'.
David Smith [Tue, 4 Nov 2014 16:24:17 +0000 (10:24 -0600)]
PR16716 partial fix: Fix types in 'syscall.{pread,pwrite,read,write}'.

* tapset/linux/syscalls2.stp: Fixed types in syscall.pread,
  syscall.pwrite, syscall.pwrite32, syscall.read, and syscall.write.
* tapset/linux/nd_syscalls2.stp: Ditto.
* testsuite/systemtap.syscall/readwrite.c (main): Added tests and split.
* testsuite/systemtap.syscall/lseek.c: Tests moved from readwrite.c and
  new tests added.
* testsuite/systemtap.syscall/pread.c: Ditto.
* testsuite/systemtap.syscall/pwrite.c: Ditto.

9 years agoEstimate the frequency of the arch64 get_cycle()
William Cohen [Fri, 31 Oct 2014 16:24:55 +0000 (12:24 -0400)]
Estimate the frequency of the arch64 get_cycle()

Unlike 32-bit arm the 64-bit has a working get_cycle() function and
the SystemTap runtime support should make an attempt to estimate the
frequency of get_cycle().  This change will make scripts using time
information on aarch64 produce accurate results.

9 years agodebian bug766994: adapt to emacs 24.3 deprecation of c-* macros by default
Frank Ch. Eigler [Mon, 27 Oct 2014 16:40:50 +0000 (12:40 -0400)]
debian bug766994: adapt to emacs 24.3 deprecation of c-* macros by default

Adding a (eval-when-compile (require 'cl-lib)) as per the Internet
appears to not-hurt on older emacs and work fine on rawhide 24.3.

9 years agoPR16716 partial fix: Fix types in 'syscall.{shmctl,shmget,sig*}'.
David Smith [Mon, 20 Oct 2014 17:14:02 +0000 (12:14 -0500)]
PR16716 partial fix: Fix types in 'syscall.{shmctl,shmget,sig*}'.

* tapset/linux/syscalls2.stp (syscall.shmctl): Handle nesting and
  types. Add 'cmd_str' convenience variable.
  (syscall.compat_sys_shmctl): Ditto.
  (syscall.shmget): Fix types and 'shmflg_str' convenience variable.
  (syscall.sigaction): Fix types.
  (syscall.sigaction32): Fix types.
  (syscall.signal): Fix types.
  (syscall.signalfd): Fix types.
  (syscall.signalfd4): Fix types.
  (syscall.sigprocmask): Fix types.
* tapset/linux/nd_syscalls2.stp (nd_syscall.shmctl): Handle nesting. Add
  'cmd_str' convenience variable.
  (nd_syscall.compat_sys_shmctl): Ditto.
  (nd_syscall.shmget): Add 'shmflg_str' convenience variable.
* tapset/linux/i386/syscalls.stp: Deprecate syscall.ipc.
* tapset/linux/powerpc/syscalls.stp: Ditto.
* tapset/linux/s390/syscalls.stp: Ditto.
* tapset/linux/i386/nd_syscalls.stp: Deprecate nd_syscall.ipc.
* tapset/linux/powerpc/nd_syscalls.stp: Dito.
* tapset/linux/s390/nd_syscalls.stp: Ditto.
* tapset/linux/aux_syscalls.stp (_semctl_cmt): Updated.
  (_signalfd4_flags_str): Updated.
  (_stp_shmget_flags_str): New function.
* runtime/linux/compat_unistd.h: Added compat defines.
* testsuite/buildok/syscalls-arch-detailed.stp: Deprecate syscall.ipc.
* testsuite/buildok/nd_syscalls-arch-detailed.stp: Ditto.
* testsuite/buildok/syscalls2-detailed.stp: Update.
* testsuite/buildok/nd_syscalls2-detailed.stp: Ditto.
* testsuite/buildok/syscalls-detailed.stp: Ditto.
* testsuite/buildok/nd_syscalls-detailed.stp: Ditto.
* testsuite/systemtap.syscall/select.c: Add test cases.
* testsuite/systemtap.syscall/signalfd.c: Ditto.
* testsuite/systemtap.syscall/shmat.c: New test case.
* testsuite/systemtap.syscall/shmget.c: New test case.

9 years agoRHBZ1153673: speculatively correct segv in dead_control_remover
Frank Ch. Eigler [Thu, 16 Oct 2014 20:25:55 +0000 (16:25 -0400)]
RHBZ1153673: speculatively correct segv in dead_control_remover

It was reported that ::visit_block was occasionally called with
a 0-size input vs[].  That leads to an array overflow, as the
for condition becomes apprx. (i < UINT_MAX).

   for (size_t i = 0; i < vs.size() - 1; ++i)
     do_something_with (vs[i]);

Let's reject 0-size vectors right away.

9 years agoRHBZ847286: systemtap initscript: return rc=0 for no-scripts-configured case
Frank Ch. Eigler [Wed, 15 Oct 2014 16:36:49 +0000 (12:36 -0400)]
RHBZ847286: systemtap initscript: return rc=0 for no-scripts-configured case

We already emit a message as a warning; let's not treat this
relatively harmless situation as an error RC.

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