]> sourceware.org Git - systemtap.git/log
systemtap.git
8 years agoupdate-po i18n for zanata liveness checking
Frank Ch. Eigler [Fri, 14 Aug 2015 21:16:23 +0000 (17:16 -0400)]
update-po i18n for zanata liveness checking

8 years agoMention PR2111 fix in the NEWS file.
Martin Cermak [Fri, 14 Aug 2015 20:05:29 +0000 (22:05 +0200)]
Mention PR2111 fix in the NEWS file.

8 years agoUpdate NEWS
Felix Lu [Fri, 14 Aug 2015 17:57:09 +0000 (13:57 -0400)]
Update NEWS

- include /* stable */ embedded-c pragma details

8 years agoRemove manual memoization from systemtap example scripts
Felix Lu [Thu, 13 Aug 2015 20:51:21 +0000 (16:51 -0400)]
Remove manual memoization from systemtap example scripts

Stored values are now replaced with an explicit functioncall which
gets optimized by the translator.

8 years agoFix and improve testcases
Felix Lu [Fri, 14 Aug 2015 17:25:39 +0000 (13:25 -0400)]
Fix and improve testcases

- Modify stable_function testcase to test for functioncall arguments
- Add untested callee testcase to unprivileged_myproc

8 years agoPR12151: Check functioncall arguments
Felix Lu [Mon, 10 Aug 2015 18:52:55 +0000 (14:52 -0400)]
PR12151: Check functioncall arguments

Visitor will now go into functioncall arguments and transform any
stable functioncalls.

8 years agoPR12151: Fix recursion problem, add stable synthetic var reading functions
Felix Lu [Wed, 5 Aug 2015 17:55:53 +0000 (13:55 -0400)]
PR12151: Fix recursion problem, add stable synthetic var reading functions

elaborate.cxx - When checking for stable flag, does not follow
functioncall chains. All stable functions are now identified at beginning
of semantic_pass_opt_7.

tapsets.cxx - In non guru-mode, context variable reading functions
are cached.  Moved optimization step 7 after duplicate functioncall
pass to remove duplicate synthetic functions first.

8 years agoPR12151: Mark tapset functions with /* stable */ flag
Felix Lu [Wed, 5 Aug 2015 14:43:08 +0000 (10:43 -0400)]
PR12151: Mark tapset functions with /* stable */ flag

Added flags for pure functions with empty parameter list.

8 years agoPR12151: Loop optimizations
Felix Lu [Fri, 31 Jul 2015 18:05:40 +0000 (14:05 -0400)]
PR12151: Loop optimizations

Functioncalls are now lifted into block enclosing top level loop.

8 years agoAdd testcases for stable optimization
Felix Lu [Thu, 30 Jul 2015 20:09:05 +0000 (16:09 -0400)]
Add testcases for stable optimization

* testsuite/systemtap.base/stable* - Testing to make sure that
the result of optimized script matches nonoptimized.
Also checks that the embedded-c functions are called the correct
number of times.

8 years agoPR12151: Improve optimization to block level
Felix Lu [Tue, 21 Jul 2015 15:52:00 +0000 (11:52 -0400)]
PR12151: Improve optimization to block level

Try to memoize on a block to block basis

8 years agostap.1: draft document /* stable */
Frank Ch. Eigler [Mon, 20 Jul 2015 19:02:13 +0000 (15:02 -0400)]
stap.1: draft document /* stable */

Note rough semantics of new embedded-C function markup,
and its relationship to /* pure */.

8 years agoPR12151: Add new visitor
Felix Lu [Mon, 20 Jul 2015 15:37:03 +0000 (11:37 -0400)]
PR12151: Add new visitor

* elaborate.cxx - new visitor to support optimization

8 years agoFix PR2111 by autodocumenting syscall tapset.
Martin Cermak [Fri, 14 Aug 2015 13:58:08 +0000 (15:58 +0200)]
Fix PR2111 by autodocumenting syscall tapset.

* doc/SystemTap_Tapset_Reference/syscalls.py: Documentation generator.
* doc/SystemTap_Tapset_Reference/tapsets.tmpl: New syscalls section.
* doc/SystemTap_Tapset_Reference/Makefile.am: Generate syscall docs.
* Other updates are automake generated changes.

8 years agoFix listing_mode.exp
Felix Lu [Thu, 13 Aug 2015 13:41:22 +0000 (09:41 -0400)]
Fix listing_mode.exp

PR18075 changes caused listing_mode.exp to find untested probes
which are added in this commit.

8 years agoFix unprivileged_probes.exp by aligning it to PR18075 changes.
Martin Cermak [Thu, 13 Aug 2015 12:43:20 +0000 (14:43 +0200)]
Fix unprivileged_probes.exp by aligning it to PR18075 changes.

Commit 80e50fe71e0d98ee65198855c2223184492a069b brought new probes
that unprivileged_probes.exp wasn't aware of.  This change aligns
with documantation introduced in commit f0e06c0d391873a5b04aa8.

8 years agotestsuite C programs: fix some gcc warnings
Frank Ch. Eigler [Tue, 11 Aug 2015 15:46:54 +0000 (11:46 -0400)]
testsuite C programs: fix some gcc warnings

A few "undeclared function" warnings could make tests untested.
We ununtest a bunch.

8 years agoFix PR18769 by moving @__compat_task() macro.
Martin Cermak [Tue, 4 Aug 2015 14:58:56 +0000 (16:58 +0200)]
Fix PR18769 by moving @__compat_task() macro.

Moved the @__compat_task() macro from tapset/linux/syscalls.stpm
to tapset/macros.stpm so that both kernel and dyninst runtimes
can consume it.

8 years agoUpdate file mode for testsuite/buildok/stap_staticmarkers-detailed.stp
Martin Cermak [Mon, 3 Aug 2015 13:24:24 +0000 (15:24 +0200)]
Update file mode for testsuite/buildok/stap_staticmarkers-detailed.stp

Missing the 'execute' perm on stap_staticmarkers-detailed.stp causes
`ERROR: tcl error sourcing ./systemtap.pass1-4/buildok.exp` during
make installcheck.

8 years agoFix PR18711 by updating the netfilter code for new rhel-7.2 kernels.
Martin Cermak [Fri, 31 Jul 2015 15:40:18 +0000 (17:40 +0200)]
Fix PR18711 by updating the netfilter code for new rhel-7.2 kernels.

* buildrun.cxx (compile_pass): Add new netfilter autoconf test.
* runtime/linux/autoconf-netfilter-313b.c: New autoconf test.
* tapset-netfilter.cxx: (emit_module_decls): Add support for new
  netfilter code backported to kernel-3.10.0-284.el7.

8 years agosample scripts: add noptrace.txt, regen index
Frank Ch. Eigler [Tue, 28 Jul 2015 18:52:26 +0000 (14:52 -0400)]
sample scripts: add noptrace.txt, regen index

9 years agochecks for uprobes in the testsuite sdt_varname.exp
Snehal Phule [Thu, 23 Jul 2015 05:15:18 +0000 (10:45 +0530)]
checks for uprobes in the testsuite sdt_varname.exp

Signed-off-by:Snehal Phule <snehal@linux.vnet.ibm.com>

9 years agoSupport java-1.8.0-openjdk.
Martin Cermak [Wed, 22 Jul 2015 13:17:04 +0000 (15:17 +0200)]
Support java-1.8.0-openjdk.

9 years agoUpdate rename.c syscall test for 3.10.0-294.el7 kernels.
Martin Cermak [Thu, 16 Jul 2015 14:33:31 +0000 (16:33 +0200)]
Update rename.c syscall test for 3.10.0-294.el7 kernels.

On ppc64le, 'renameat2' syscall is unimplemented as defined in the
arch/powerpc/include/asm/systbl.h file. This change also allows
'renameat2' syscall to succeed when renaming a directory to a file
in case RENAME_EXCHANGE is defined.

9 years agoUpdate arch_compile_flag_{name,bits}(). The ppc64le is 64bit only.
Martin Cermak [Thu, 16 Jul 2015 14:29:18 +0000 (16:29 +0200)]
Update arch_compile_flag_{name,bits}(). The ppc64le is 64bit only.

9 years agosystemtap.spec changes for ppc64{be,le} java helper library symlinking
Lukas Berk [Wed, 15 Jul 2015 15:22:17 +0000 (11:22 -0400)]
systemtap.spec changes for ppc64{be,le} java helper library symlinking

systemtap.spec - remove special clauses ppc64{be,le} linking

9 years agoAdd ppc64le to java/Makefile.*
Lukas Berk [Wed, 15 Jul 2015 14:46:27 +0000 (10:46 -0400)]
Add ppc64le to java/Makefile.*

java/Makefile.am - add JAVA_ARCH override for ppc64le
java/Makefile.in - add JAVA_ARCH override for ppc64le

9 years agoUpdate the [nd_]syscall.clone probe aliases for rawhide.
David Smith [Tue, 14 Jul 2015 21:19:11 +0000 (16:19 -0500)]
Update the [nd_]syscall.clone probe aliases for rawhide.

* tapset/linux/syscalls.stp: Add '_do_fork' as an alternate probe point
  for syscall.fork. Kernel commit 3033f14ab78c32 renamed 'do_fork' to
  '_do_fork'.
* tapset/linux/nd_syscalls.stp: Ditto.

9 years agoPR18630: New testcase for dwarfless parameters from a uprobe.
Martin Cermak [Tue, 14 Jul 2015 06:05:50 +0000 (08:05 +0200)]
PR18630: New testcase for dwarfless parameters from a uprobe.

* tapset/s390/registers.stp: Remove constraint added by commit
  eefd579b blocking data acquistion from a uprobe. This is per
  PR18649#c1 and subsequent IRC chat with dsmith, the author
  of the constraint.
* testsuite/systemtap.base/uprobe_nd_params.exp: New testcase.

9 years agoPR18650: Fix longlong_arg() for powerpc uprobes.
Martin Cermak [Tue, 14 Jul 2015 06:03:53 +0000 (08:03 +0200)]
PR18650: Fix longlong_arg() for powerpc uprobes.

9 years agocoverity fixes: uninitialized class members
Frank Ch. Eigler [Mon, 13 Jul 2015 21:41:41 +0000 (17:41 -0400)]
coverity fixes: uninitialized class members

Pro tip: POD class members need explicit initialization.

9 years agosystemtap.spec: don't prereq prelink on recent fedoras
Frank Ch. Eigler [Sat, 11 Jul 2015 19:15:22 +0000 (15:15 -0400)]
systemtap.spec: don't prereq prelink on recent fedoras

prelink is deprecated, so while my heart will go on,
its stap support & testing won't.

9 years agoAdd a note to tapset/i386/registers.stp about grabbing the stack pointer.
David Smith [Fri, 10 Jul 2015 16:51:00 +0000 (11:51 -0500)]
Add a note to tapset/i386/registers.stp about grabbing the stack pointer.

9 years agoAdd a small syscall tapset fix found by source analysis.
David Smith [Fri, 10 Jul 2015 16:41:56 +0000 (11:41 -0500)]
Add a small syscall tapset fix found by source analysis.

* tapset/linux/syscalls.stp: Change the accept4 probe to use the
  @__syscall_nr_gate() macro instead of calling @__syscall_compat_gate().
  This generates better code.
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/syscalls.stpm: Add __syscall_nr_gate() macro.
* testsuite/systemtap.syscall/execveat.c: Allow for syscall being
  non-implemented.
* testsuite/systemtap.syscall/getrandom.c: Ditto.
* testsuite/systemtap.syscall/memfd_create.c: Ditto.
* testsuite/systemtap.syscall/sched_attr.c: Ditto.

9 years agoBZ1241971: add --with-python3 to configury for /usr/bin/dtrace
Frank Ch. Eigler [Fri, 10 Jul 2015 14:52:47 +0000 (10:52 -0400)]
BZ1241971: add --with-python3 to configury for /usr/bin/dtrace

Preparing for a python3-only world.
Get off my lawn.

9 years agoFix PR18651: An nd_syscall tapset cleanup based on PR18597 fix.
Martin Cermak [Fri, 10 Jul 2015 14:58:53 +0000 (16:58 +0200)]
Fix PR18651: An nd_syscall tapset cleanup based on PR18597 fix.

9 years agocontinue gettextizing & configury & po update
Frank Ch. Eigler [Thu, 9 Jul 2015 15:05:49 +0000 (11:05 -0400)]
continue gettextizing & configury & po update

(As refreshed on f21.)

9 years agogettextize to gettext 0.19
Ivan Diorditsa [Fri, 3 Jul 2015 10:54:38 +0000 (13:54 +0300)]
gettextize to gettext 0.19

9 years agoFixed PR18634 by getting timer probes to compile on rawhide.
David Smith [Tue, 7 Jul 2015 19:01:27 +0000 (14:01 -0500)]
Fixed PR18634 by getting timer probes to compile on rawhide.

* runtime/linux/timer.c (_stp_hrtimer_init): If STAPCONF_HRTIMER_GET_RES
  isn't defined, meaning hrtimer_get_res() doesn't exist, just use the
  'hrtimer_resolution' variable.
* buildrun.cxx (compile_pass): Add an export test for hrtimer_get_res().
* translate.cxx (emit_common_header): Remove generated inclusion of
  linux/hrtimer.h.
* runtime/linux/timer.h: Add inclusion of linux/hrtimer.h.

9 years agoFixed BZ1240682 by fixing a rawhide compile problem.
David Smith [Tue, 7 Jul 2015 15:41:43 +0000 (10:41 -0500)]
Fixed BZ1240682 by fixing a rawhide compile problem.

* translate.cxx (translate_pass): Move the inclusion of runtime.h up
  before the declaration of the module refresh mutex, to avoid compilation
  problems on rawhide.

9 years agoPR18555: prefer linkage_name to match the symtab
Josh Stone [Mon, 6 Jul 2015 18:35:51 +0000 (11:35 -0700)]
PR18555: prefer linkage_name to match the symtab

DW_AT_name is usually only the same as the symbol table for C.  C++
names are mangled, which may be given by DW_AT_linkage_name.  So if we
want to compare a DWARF subprogram to the symbol table by name, we
should prefer the linkage name when it's available.

This mattered especially for ppc64le, where query_dwarf_func was trying
to apply the global/local symbol offset.  When we took a DWARF C++
function and tried to find that name in the symbol table for its offset,
there was no match, so the function wouldn't be resolved at all.

Now that lookup uses the linkage name.  If there's still no match, like
with a stripped symbol table, then it falls through to just use DWARF's
entrypc as usual.

This patch also maintains the raw "addr" and offset "entrypc" separately
for symbol table functions, so for instance update_symtab can still
compare the original address.

9 years agoExtend expect timeout for bz1027459.exp (wrt. Pass 2/syscall.*)
Martin Cermak [Fri, 3 Jul 2015 09:00:13 +0000 (11:00 +0200)]
Extend expect timeout for bz1027459.exp (wrt. Pass 2/syscall.*)

9 years agoSimplify a few syscall probes and handle RHEL5 kernels a bit better.
David Smith [Thu, 2 Jul 2015 19:18:52 +0000 (14:18 -0500)]
Simplify a few syscall probes and handle RHEL5 kernels a bit better.

* tapset/linux/nd_syscalls.stp (nd_syscall.truncate): Simplified with fix
  to long_arg() properly returning negative values.
  (nd_syscall.keyctl): Ditto.
* tapset/linux/nd_syscalls2.stp (nd_syscall.quotactl): Only skip calls if
  we're on a kernel >= 2.623, when sys32_quotactl() was introduced.
  (syscall.truncate): Simplified.
* tapset/linux/syscalls2.stp (syscall.quotactl): Only skip calls if we're
  on a kernel >= 2.623, when sys32_quotactl() was introduced.
  (syscall.truncate): Matches more closely with the nd_syscall version,
  which fixed a problem on RHEL5.
* tapset/linux/x86_64/syscalls.stp (syscall.get_thread_area): Added
  support for RHEL5 kernels.
  (syscall.set_thread_area): Ditto.
* tapset/linux/x86_64/nd_syscalls.stp: Ditto.
* testsuite/systemtap.syscall/fallocate.c: Properly handle ppc calls.
* testsuite/systemtap.syscall/keyctl.c: Handle keyctl() being
  non-implemented.
* testsuite/systemtap.syscall/readahead.c: Handle ppc problems and glibc <
  2.8 problems.
* testsuite/systemtap.syscall/readdir.c: Handle readdir() being
  non-implemented.
* testsuite/systemtap.syscall/rt_signal.c (main): Handle
  rt_tgsigqueueinfo() being non-implemented.
* testsuite/systemtap.syscall/uselib.c: Make sure we're on kernel >=
  2.6.22, since before that uselib() could call quiet_ni_syscall(), which
  we can't probe since it is in assembly.

9 years agoReplace '_stp_is_compat_task()' calls with the appropriate macro.
David Smith [Thu, 2 Jul 2015 13:55:30 +0000 (08:55 -0500)]
Replace '_stp_is_compat_task()' calls with the appropriate macro.

* tapset/linux/aux_syscalls.stp: Replace all _stp_is_compat_task() tapset
  code calls with the appropriate macro. This ensures they are all marked
  "pure".
* tapset/linux/nd_syscalls.stp: Ditto.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/s390/aux_syscalls.stp: Ditto.
* tapset/linux/syscalls.stpm: Ditto.
* tapset/linux/x86_64/nd_syscalls.stp: Ditto.
* tapset/linux/x86_64/syscalls.stp: Ditto.

9 years agoFixed PR18597 by returning negative values correctly from long_arg().
David Smith [Wed, 1 Jul 2015 17:27:21 +0000 (12:27 -0500)]
Fixed PR18597 by returning negative values correctly from long_arg().

* tapset/powerpc/registers.stp (_stp_arg2): New function that fixes the
  problem with _stp_arg() where long_arg() doesn't handle negative values
  correctly. Callers can also force a 64-bit returned value.
  (longlong_arg): Force a 64-bit return value.
* tapset/s390/registers.stp: Ditto.
* tapset/x86_64/registers.stp: Ditto.
* tapset/linux/nd_syscalls2.stp: Simplified nd_syscall.sync_file_range.
* tapset/linux/nd_syscalls.stp: Simplified nd_syscall.io_submit.
* testsuite/systemtap.syscall/pread.c: Add more 64-bit values to test.
* testsuite/systemtap.syscall/pwrite.c: Ditto.

9 years agoVarious fixes for test failures caused by implicit warnings.
Mark Wielaard [Tue, 30 Jun 2015 22:34:32 +0000 (00:34 +0200)]
Various fixes for test failures caused by implicit warnings.

Add various function and variable declarations and/or includes for
failures caused by new gcc warnings -Wimplicit-function-declaration
or -Wimplicit-int.

9 years agoInclude unistd.h in uprobe_stmt_num.c
Mark Wielaard [Tue, 30 Jun 2015 21:53:28 +0000 (23:53 +0200)]
Include unistd.h in uprobe_stmt_num.c

Fixes compile test failure because of new gcc warning:
warning: implicit declaration of function 'sleep'

9 years agoInclude stdlib.h in uprobe_stmt_num.c
Mark Wielaard [Tue, 30 Jun 2015 21:47:36 +0000 (23:47 +0200)]
Include stdlib.h in uprobe_stmt_num.c

Fixes compile test failure because of new gcc warning:
warning: implicit declaration of function 'srand'

9 years agoInclude string.h in pthreadprobes.c
Mark Wielaard [Tue, 30 Jun 2015 21:40:23 +0000 (23:40 +0200)]
Include string.h in pthreadprobes.c

Fixes compile test failure because of new gcc warning:
warning: implicit declaration of function 'strcmp'

9 years agounwind.c (compute_expr): Don't fallthrough after div/mod/shr.
Mark Wielaard [Tue, 30 Jun 2015 19:54:28 +0000 (21:54 +0200)]
unwind.c (compute_expr): Don't fallthrough after div/mod/shr.

When processing DW_OP_div, DW_OP_mod or DW_OP_shr compute_expr
would accidentially fallthrough to the next case statement causing
the DWARF value stack to contain wrong values.

9 years agoTwo small stat code fixes found by source analysis.
David Smith [Tue, 30 Jun 2015 20:24:54 +0000 (15:24 -0500)]
Two small stat code fixes found by source analysis.

* runtime/stat-common.c (_stp_stat_print_histogram_buf): Fixed small
  potential overflow problem by widening values.
* runtime/stat.c (_stp_stat_init): Fixed missing 'va_end' call in an error
  situation.

9 years agoPR18571: tapset support bpf and seccomp syscalls
Martin Cermak [Fri, 26 Jun 2015 08:22:37 +0000 (10:22 +0200)]
PR18571: tapset support bpf and seccomp syscalls

NEWS: Deprecate seccomp's 'uargs' in favor of 'uargs_uaddr'.
tapset/linux/aux_syscalls.stp: New _seccomp_op_str() and _bpf_cmd_str().
tapset/linux/nd_syscalls.stp: New probe nd_syscall.bpf.
tapset/linux/nd_syscalls2.stp: Update probe nd_syscall.seccomp.
tapset/linux/syscalls.stp: New probe syscall.bpf.
tapset/linux/syscalls2.stp: Update probe syscall.seccomp.
testsuite/buildok/aux_syscalls-embedded.stp: Test _seccomp_op_str(), _bpf_cmd_str().
testsuite/buildok/nd_syscalls-detailed.stp: Test probe nd_syscall.bpf.
testsuite/buildok/nd_syscalls2-detailed.stp: Update test for probe nd_syscall.seccomp.
testsuite/buildok/syscalls-detailed.stp: Test probe syscall.bpf.
testsuite/buildok/syscalls2-detailed.stp: Update test for probe syscall.seccomp.
testsuite/systemtap.syscall/bpf.c: New testcase.
testsuite/systemtap.syscall/seccomp.c: New testcase.

9 years agoFixed PR18598 by adding a build test case for tapset/stap_staticmarkers.stp.
David Smith [Thu, 25 Jun 2015 18:00:00 +0000 (13:00 -0500)]
Fixed PR18598 by adding a build test case for tapset/stap_staticmarkers.stp.

* testsuite/buildok/stap_staticmarkers-detailed.stp: New test case.

9 years agoFixed PR18577 by making 'stap -l **' faster.
David Smith [Thu, 25 Jun 2015 14:46:39 +0000 (09:46 -0500)]
Fixed PR18577 by making 'stap -l **' faster.

* tapsets.cxx (suggest_marks): Don't generate the suggestion list if we're
  in either of the listing modes (-l/-L) and the verbose level is less
  than 2.
  (suggest_plt_functions): Ditto.
  (suggest_dwarf_functions): Ditto.
* elaborate.cxx (suggest_functors): Ditto.
* elaborate.h: Updated suggest_functors declaration.
* tapset/linux/rpc.stp: Make some optional probes more optional.
* tapset/linux/scsi.stp: Ditto.
* tapset/linux/signal.stp: Ditto.
* tapset/linux/syscalls2.stp: Ditto.
* tapset/linux/nd_syscalls2.stp: Ditto.

9 years agoPR18075 documentation
Felix Lu [Wed, 24 Jun 2015 20:49:38 +0000 (16:49 -0400)]
PR18075 documentation

9 years agoPR18075 add callee.return probes
Felix Lu [Tue, 23 Jun 2015 19:57:48 +0000 (15:57 -0400)]
PR18075 add callee.return probes

9 years agoPR18462: Allow library macro deprecation
Martin Cermak [Tue, 23 Jun 2015 06:36:46 +0000 (08:36 +0200)]
PR18462: Allow library macro deprecation

Parts of the tapset code can get deprecated using conditionals as
described in the HACKING file. This patch extends this to library
macros, which can now get deprecated too. Patch includes example
macro deprecation and a testcase.

* NEWS: Mention '__int32_compat' library macro deprecation.
* parse.cxx: Allow library macro deprecation.
* tapset/linux/syscalls.stpm: Deprecate '__int32_compat' macro.
* testsuite/parseok/macros09.stp: New testcase.

9 years agoPR13664: test that map indexes don't propagate dwarf types
Josh Stone [Mon, 22 Jun 2015 20:26:38 +0000 (13:26 -0700)]
PR13664: test that map indexes don't propagate dwarf types

9 years agoruntime/unwind.c: Also sanity check DWARF regno for DW_CFA_restore[_extended].
Mark Wielaard [Mon, 22 Jun 2015 14:57:59 +0000 (16:57 +0200)]
runtime/unwind.c: Also sanity check DWARF regno for DW_CFA_restore[_extended].

When processCFI wanted to restore a register state to its initial value it
wasn't checking whether the register was actually interesting (or existing).
DWARF_REG_MAP might return a marker (9999) that we don't know or don't care
about this register. This was checked in all the set_*_rule functions, but
not in the case we reset the rule of the register. Add this check also for
DW_CFA_restore[_extended].

9 years agoFixed PR18563 by updating mbrwatch.meta.
David Smith [Fri, 19 Jun 2015 18:26:41 +0000 (13:26 -0500)]
Fixed PR18563 by updating mbrwatch.meta.

* testsuite/systemtap.examples/io/mbrwatch.meta: Update to ignore any
  devices called 'sr[0-0]', which on ppc64 aren't disk drives.

9 years agoFixed PR18562 by updating listing_mode.exp for systems without uprobes.
David Smith [Fri, 19 Jun 2015 18:08:23 +0000 (13:08 -0500)]
Fixed PR18562 by updating listing_mode.exp for systems without uprobes.

* testsuite/systemtap.base/listing_mode.exp: For systems without uprobes,
  such as ia64 and some s390x kernels, mark probes requiring uprobes as
  untested.

9 years agoPR17737 cont'd: switch to out-of-line xsl parameter file
Frank Ch. Eigler [Fri, 19 Jun 2015 14:04:33 +0000 (10:04 -0400)]
PR17737 cont'd: switch to out-of-line xsl parameter file

The "generate.toc" parameter is a PITA to pass on the xmlto command
line with --stringparam, because it's whitespace-laden and structured.
So instead we switch to the "xmlto -m FRAGMENT.xml" mechanism.

9 years agoscripts/update-docs: reduce effort
Frank Ch. Eigler [Fri, 19 Jun 2015 13:59:29 +0000 (09:59 -0400)]
scripts/update-docs: reduce effort

Do only a partial checkout and build only the docs, if possible.

9 years agoImproved spawned process cleanup in stmt_counting.exp and valid_pid.exp.
David Smith [Thu, 18 Jun 2015 17:56:12 +0000 (12:56 -0500)]
Improved spawned process cleanup in stmt_counting.exp and valid_pid.exp.

* testsuite/systemtap.base/stmt_counting.exp: Properly call "close" and
  "wait" after "spawn" call.
* testsuite/systemtap.base/valid_pid.exp: Ditto.

9 years agoFixed PR17831 by making kprobes_onthefly.exp more robust.
David Smith [Thu, 18 Jun 2015 17:46:43 +0000 (12:46 -0500)]
Fixed PR17831 by making kprobes_onthefly.exp more robust.

* testsuite/systemtap.onthefly/kprobes_onthefly.exp: Switch from probing
  'vfs.read' and 'vfs.read.return' to probing the underlying kernel
  function to avoid inlines, which confused the output.

9 years agoMark json-detailed.stp as an expected fail in buildok-dyninst.exp.
David Smith [Wed, 17 Jun 2015 18:34:40 +0000 (13:34 -0500)]
Mark json-detailed.stp as an expected fail in buildok-dyninst.exp.

* testsuite/systemtap.pass1-4/buildok-dyninst.exp: Mark json-detailed.stp
  as an expected fail since it requires procfs probes.

9 years agobump versions to 2.9
Abegail Jakop [Wed, 17 Jun 2015 18:24:21 +0000 (14:24 -0400)]
bump versions to 2.9

9 years agoFixed PR18554 by upating the list.exp test case.
David Smith [Wed, 17 Jun 2015 18:13:09 +0000 (13:13 -0500)]
Fixed PR18554 by upating the list.exp test case.

* testsuite/systemtap.base/list.exp: Look for several inlined kernel
  functions instead of just one (since on any particular kernel there
  might not be an inlined version of that function).

9 years agoFixed PR18552 by updating the dump_probe_aliases.exp test case.
David Smith [Wed, 17 Jun 2015 17:36:31 +0000 (12:36 -0500)]
Fixed PR18552 by updating the dump_probe_aliases.exp test case.

* testsuite/systemtap.base/dump_probe_aliases.exp: Update by using
  '__syscall.accept' instead of '__syscall.lseek', which no longer
  exists

9 years agoFixed PR18551 by updating the migrate.stp example script.
David Smith [Wed, 17 Jun 2015 16:35:44 +0000 (11:35 -0500)]
Fixed PR18551 by updating the migrate.stp example script.

* testsuite/systemtap.examples/process/migrate.stp: Now prefers using the
  'sched_migrate_task' tracepoint since its arguments will always be
  available. Updated to use more of the functions from task.stp.

9 years agorelease 2.8 dating in .spec and NEWS release-2.8
Abegail Jakop [Wed, 17 Jun 2015 14:28:20 +0000 (10:28 -0400)]
release 2.8 dating in .spec and NEWS

9 years agoregenerate examples index
Abegail Jakop [Wed, 17 Jun 2015 13:49:15 +0000 (09:49 -0400)]
regenerate examples index

9 years agoImproved spawned process cleanup in several test cases.
David Smith [Tue, 16 Jun 2015 17:52:48 +0000 (12:52 -0500)]
Improved spawned process cleanup in several test cases.

* testsuite/systemtap.base/additional_scripts.exp: Properly call "close"
  and "wait" after "spawn" call.
* testsuite/systemtap.base/dtrace.exp: Ditto.
* testsuite/systemtap.base/listing_mode.exp: Ditto.
* testsuite/systemtap.base/proc_by_pid.exp: Ditto.
* testsuite/systemtap.base/valid_pid.exp: Ditto.
* testsuite/systemtap.clone/main_quiesce.exp: Ditto.

9 years agoNEWS: mention man page additions, @task and golang
Abegail Jakop [Mon, 15 Jun 2015 19:38:47 +0000 (15:38 -0400)]
NEWS: mention man page additions, @task and golang

9 years agoupdate AUTHORS file
Abegail Jakop [Mon, 15 Jun 2015 19:25:38 +0000 (15:25 -0400)]
update AUTHORS file

9 years agoFix PR18460 by updating the tracepoint_onthefly.exp test for ppc64.
David Smith [Mon, 15 Jun 2015 19:26:47 +0000 (14:26 -0500)]
Fix PR18460 by updating the tracepoint_onthefly.exp test for ppc64.

* testsuite/systemtap.onthefly/tracepoint_onthefly.exp: On ppc64, don't
  probe kernel tracepoints causing a crash.

9 years agoreleng: update-po
Frank Ch. Eigler [Mon, 15 Jun 2015 18:00:18 +0000 (14:00 -0400)]
releng: update-po

9 years agoFixed PR18538 by updating the scsi tapset.
David Smith [Mon, 15 Jun 2015 16:34:08 +0000 (11:34 -0500)]
Fixed PR18538 by updating the scsi tapset.

* tapset/linux/scsi.stp: Fix problems on rawhide by removing source file
  names from probe aliases. These don't appear to be needed and they cause
  problems if functions get moved around.

9 years agoxhtml-common.xsl: remove use of writing.mode var
Abegail Jakop [Fri, 12 Jun 2015 21:36:53 +0000 (17:36 -0400)]
xhtml-common.xsl: remove use of writing.mode var

the writing.mode var doesn't always exist. on RHEL5 it doesn't
seem to exist at all, so xmlto fails to build the beginner docs.

9 years agoFixed PR18526 by updating the socket tapset.
David Smith [Fri, 12 Jun 2015 20:38:34 +0000 (15:38 -0500)]
Fixed PR18526 by updating the socket tapset.

* tapset/linux/socket.stp: Add support for socket_write_iter() and
  socket_read_iter(), the replacements for socket_aio_write() and
  socket_aio_read. Update socket.sendmsg for newer kernels. Update
  _get_sock_addr() for newer kernels.
* testsuite/buildok/socket-detailed.stp: Updated and add tests for new
  probes.

9 years agoEnsure we have everything we need before trying the net_xmit_json.stp example.
David Smith [Fri, 12 Jun 2015 20:09:54 +0000 (15:09 -0500)]
Ensure we have everything we need before trying the net_xmit_json.stp example.

* testsuite/systemtap.examples/network/net_xmit_json.meta: Check for the
  needed tracepoints before trying to compile and run.

9 years agoFixed PR18518 by updating the vfs and nfs tapsets.
David Smith [Fri, 12 Jun 2015 14:07:05 +0000 (09:07 -0500)]
Fixed PR18518 by updating the vfs and nfs tapsets.

* tapset/linux/vfs.stp: Fix the vfs.do_sync_read and vfs.do_sync_write
  probe aliases on rawhide kernels where the underlying probe points no
  longer exist.
* tapset/linux/nfs.stp: Update probes that use vfs.do_sync_read and
  vfs.do_sync_write.

9 years agoMade x86_64 specific [nd_]syscall.vm86_warning probes optional.
David Smith [Thu, 11 Jun 2015 17:20:45 +0000 (12:20 -0500)]
Made x86_64 specific [nd_]syscall.vm86_warning probes optional.

* tapset/linux/x86_64/syscalls.stp: Made vm86_warning optional, since it
  doesn't exist anymore on rawhide.
* tapset/linux/x86_64/nd_syscalls.stp: Ditto.
* testsuite/buildok/syscalls-arch-detailed.stp: Updated.
* testsuite/buildok/nd_syscalls-arch-detailed.stp: Ditto.

9 years agoNEWS piece on the ns-aware tapsets
Abegail Jakop [Thu, 11 Jun 2015 15:07:15 +0000 (11:07 -0400)]
NEWS piece on the ns-aware tapsets

9 years agomake pid ns tapsets available on kernel 3.7
Abegail Jakop [Thu, 11 Jun 2015 14:02:00 +0000 (10:02 -0400)]
make pid ns tapsets available on kernel 3.7

9 years ago[task_]ns_* tapsets: throw error instead of returning -1
Abegail Jakop [Wed, 10 Jun 2015 17:28:17 +0000 (13:28 -0400)]
[task_]ns_* tapsets: throw error instead of returning -1

9 years agoget_task_from_pid() only if def CONFIG_*_NS
Abegail Jakop [Mon, 8 Jun 2015 22:21:22 +0000 (18:21 -0400)]
get_task_from_pid() only if def CONFIG_*_NS

9 years agostaprun: send STP_NAMESPACE_PID msg only if -N PID
Abegail Jakop [Mon, 8 Jun 2015 22:00:20 +0000 (18:00 -0400)]
staprun: send STP_NAMESPACE_PID msg only if -N PID

9 years agoruntime/linux/namespaces.h: hold rcu_read_lock longer
Abegail Jakop [Mon, 8 Jun 2015 19:30:12 +0000 (15:30 -0400)]
runtime/linux/namespaces.h: hold rcu_read_lock longer

require the rcu_read_lock in get_*_namespaces(). then the rcu_read_lock
is acquired in from_target_*_ns() before calling get_*_namespace()
and is returned after it's done with the pid namepace. also moved
duplicated code to a helper function, get_task_struct_from pid()

9 years agosemko test using task_ns_pid() tapset without -g
Abegail Jakop [Mon, 8 Jun 2015 18:28:26 +0000 (14:28 -0400)]
semko test using task_ns_pid() tapset without -g

9 years agotranslate.cxx: always include namespaces.h
Abegail Jakop [Mon, 8 Jun 2015 17:34:55 +0000 (13:34 -0400)]
translate.cxx: always include namespaces.h

add empty file dyninst/namespaces.h, so that the conditional for
whether to include RUNTIME/namespaces.h can be removed.

9 years agocontext_ns.exp: replace userns_child_exec.c with unshare
Abegail Jakop [Fri, 5 Jun 2015 20:39:27 +0000 (16:39 -0400)]
context_ns.exp: replace userns_child_exec.c with unshare

9 years agostore pid from staprun -N opt in _stp_namespaces_pid
Abegail Jakop [Wed, 3 Jun 2015 14:51:01 +0000 (10:51 -0400)]
store pid from staprun -N opt in _stp_namespaces_pid

9 years agoadd -N TARGET_NS_PID option to staprun
Abegail Jakop [Fri, 29 May 2015 20:08:07 +0000 (16:08 -0400)]
add -N TARGET_NS_PID option to staprun

buildrun.cxx: add -N if there is a target namespaces pid when making
the staprun command
staprun/common.c: parse new -N option that takes a pid. also check
to make sure the given pid is not obviously invalid
staprun/mainloop.c: dbug msg if there is a target namespace pid
session.cxx: check the target ns pid is not an obviously invalid pid

9 years agomove the bulk of [task_]ns_* tapsets to helper fns
Abegail Jakop [Mon, 1 Jun 2015 15:46:34 +0000 (11:46 -0400)]
move the bulk of [task_]ns_* tapsets to helper fns

runtime/linux/namespaces.h: define helper fns to get specific pid or user
information based on the target namespaces. rely on the new runtime
variable _stp_namespace_pid rather than the _STP_NAMESPACE_PID macro
runtime/transport/transport.c: define runtime var _stp_namespace_pid
that will contain the target namespaces pid. default to _stp_pid
if there was no target ns pid specified
tapset/linux/*.stp: replace body of [task_]ns_* tapset functions with a
call to the helper functions in namespaces.h
translate.cxx: remove _STP_NAMESPACE_PID macro definition

9 years agoadd /* guru */ pragma to task_ns_* tapsets
Abegail Jakop [Fri, 29 May 2015 15:20:17 +0000 (11:20 -0400)]
add /* guru */ pragma to task_ns_* tapsets

the task_ns_* functions aren't protected from read faults when trying to
access the task struct at the provided address, so we'll add the /* guru */
pragma to hint at how unsafe those functions are.

9 years agomoved repetitive pid-to-ns chunks into a function
Abegail Jakop [Tue, 26 May 2015 18:40:35 +0000 (14:40 -0400)]
moved repetitive pid-to-ns chunks into a function

runtime/linux/namespaces.h: get_pid_namespace() and get_user_namespace()
that take in a (int) pid returning a pointer to the namespace.
translate.cxx: include the namespaces.h file, if --runtime=kernel
tapset/linux/*.stp: replace repetitive pid-to-namespace code with new
get_*_namespace()

9 years agocontext_ns.exp: test for pid ns-aware tapset functions
Abegail Jakop [Mon, 25 May 2015 18:45:08 +0000 (14:45 -0400)]
context_ns.exp: test for pid ns-aware tapset functions

new test case to check that the ns-aware tapset functions are returning
values that match what is expected. currently only implemented for pid
ns tapset functions.

9 years agoremove ns comparison in [task_]ns_* tapsets
Abegail Jakop [Fri, 22 May 2015 18:10:03 +0000 (14:10 -0400)]
remove ns comparison in [task_]ns_* tapsets

turns out that the functions used to get the ns-specific values in the
new tapsets will return a sufficient error value (0 or uid/guid overflow
value) if the target task/current  is not in the target pid/user namespace

9 years agouse find_pid_ns instead of find_get_pid in [task_]ns_*
Abegail Jakop [Fri, 22 May 2015 18:02:17 +0000 (14:02 -0400)]
use find_pid_ns instead of find_get_pid in [task_]ns_*

in the new namespace-aware tapset functions, we cant use find_get_pid() to
get the pid struct from a target ns pid because it looks for that pid in the
current task's pid ns, when we want it to look in the root pidns. switched
to find_pid_ns() which allows us to specify a pid ns to look in.

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