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

9 years agoPR12276: fix line numbers to match in usymfileline.exp
Abegail Jakop [Mon, 2 Feb 2015 21:56:14 +0000 (16:56 -0500)]
PR12276: fix line numbers to match in usymfileline.exp

9 years agoPR12276: compare symfileline() with pp()
Abegail Jakop [Wed, 28 Jan 2015 16:43:46 +0000 (11:43 -0500)]
PR12276: compare symfileline() with pp()

[u]symfileline.*: added a test that uses *.statement(*@*:*) probes to
compare the return from [u]symfileline() with the @file:line portion of pp()

9 years agoPR12276: expect path+file in [u]symfile[line] tests
Abegail Jakop [Tue, 27 Jan 2015 19:22:55 +0000 (14:22 -0500)]
PR12276: expect path+file in [u]symfile[line] tests

9 years agoPR12276: symfile[line]() return path and filename
Abegail Jakop [Tue, 27 Jan 2015 18:51:23 +0000 (13:51 -0500)]
PR12276: symfile[line]() return path and filename

sym.c: changed the filename gathering portion from _stp_linenumber_lookup()
to collect the directory information and include that with the returned
filename. moved the filename gathering portion to its own function,
_stp_filename_lookup()

9 years agoPR12276: fix comparison in dump_line_tables_check()
Abegail Jakop [Fri, 23 Jan 2015 16:57:57 +0000 (11:57 -0500)]
PR12276: fix comparison in dump_line_tables_check()

9 years agoPR12276: correct checks in dump_line_tables_check()
Abegail Jakop [Thu, 22 Jan 2015 20:28:50 +0000 (15:28 -0500)]
PR12276: correct checks in dump_line_tables_check()

9 years agoPR12276: add ifdef when assigning _stp_module.debug_line
Abegail Jakop [Wed, 14 Jan 2015 17:31:17 +0000 (12:31 -0500)]
PR12276: add ifdef when assigning _stp_module.debug_line

9 years agoPR12276: fix inital line data check to check all units
Abegail Jakop [Wed, 14 Jan 2015 17:22:24 +0000 (12:22 -0500)]
PR12276: fix inital line data check to check all units

translate.cxx: encase the majority of dump_line_tables_check() in a while
loop to check all of the units/line number programs instead of only
the first unit/line number program

9 years agoPR12276: perform initial checks on debug_line data
Abegail Jakop [Wed, 7 Jan 2015 21:30:23 +0000 (16:30 -0500)]
PR12276: perform initial checks on debug_line data

translate.cxx: during translation, check that most of the line data
header looks fine. checks dont cover directory or file name table.

9 years agoPR12276: tests for symfileline and related
Abegail Jakop [Wed, 31 Dec 2014 15:22:11 +0000 (10:22 -0500)]
PR12276: tests for symfileline and related

[u]context-symbols-embedded.stp: check that [u]symfileline() and
the related tapset functions build without issues
usymfileline.*: tests usymfileline(), usymfile(), and usymline() with
and without debug_line info
symfileline.*: tests symfileline(), symfile() and symline() with
an valid address from the kernel module set up in context.exp
context.exp: add symfileline to list of tests to be run

9 years agoPR12276: add functions [u]symfile and [u]symline
Abegail Jakop [Mon, 22 Dec 2014 21:58:44 +0000 (16:58 -0500)]
PR12276: add functions [u]symfile and [u]symline

runtime/sym.c: in _stp_snprint_addr(), add in the ability to return
the linenumber or the filename.
tapset/linux/[u]context-symbols.stp: added functions [u]symline and
[u]symfile. fixed spelling mistake with pragma:myproc-unprivileged

9 years agoPR12276: fix addr adjustment for symfileline()
Abegail Jakop [Mon, 22 Dec 2014 20:04:34 +0000 (15:04 -0500)]
PR12276: fix addr adjustment for symfileline()

runtime/sym*: adjust the given address to account for the load offset
runtime/transport/symbols.c: include the body of _stp_module_update_self()
if STP_NEED_LINE_DATA so that the sec_load_offset can be updated
tapset/linux/context-symbols.stp: remove the pragma myproc-unpriveleged
since it's spelled wrong, and it's not needed anyways
translate.cxx: add funtion find_debug_frame_offset() to set the
sec_load_offset for the ".text" section

9 years agoPR12276: debug_line data decoder
Abegail Jakop [Thu, 11 Dec 2014 20:20:44 +0000 (15:20 -0500)]
PR12276: debug_line data decoder

runtime/sym.c: have _stp_linenumber_lookup() go through the
debug_line info and determine if the given address corresponds
to a line number (and a file name).

9 years agoPR12276: constant definitions and moved functions
Abegail Jakop [Tue, 9 Dec 2014 20:58:17 +0000 (15:58 -0500)]
PR12276: constant definitions and moved functions

unwind.*: moved function and constant definitions related to read_pointer()
from unwind.c to unwind/unwind.h for use by the debug_line decoder
sym.*: include the unwind header file and add in constants for decoding
opcodes within the debug_line decoder

9 years agoPR12276: [u]symfileline() tapset functions
Abegail Jakop [Tue, 9 Dec 2014 19:29:10 +0000 (14:29 -0500)]
PR12276: [u]symfileline() tapset functions

runtime/sym.c: added the portion to print out the file name and line
number of the given address

9 years agoPR12276: pragma:lines sets need_lines, not need_symbols
Abegail Jakop [Fri, 5 Dec 2014 20:55:30 +0000 (15:55 -0500)]
PR12276: pragma:lines sets need_lines, not need_symbols

9 years agoPR12276: dump debug_line data to generated header
Abegail Jakop [Fri, 5 Dec 2014 15:15:37 +0000 (10:15 -0500)]
PR12276: dump debug_line data to generated header

elaborate.cxx: set a flag to indicate debug_line data is needed if
pragma:lines was found in embedded code
translate.cxx: gather debug_line data if it is needed and can be accessed.
if the data was gathered, output it to the generated header file

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 agoActually add changes meant for commit cfdd554.
David Smith [Wed, 4 Feb 2015 21:57:55 +0000 (15:57 -0600)]
Actually add changes meant for commit cfdd554.

* tapset/linux/syscalls.stp (syscall.kill): Fix types.
* tapset/linux/syscalls2.stp (syscall.quotactl): Fix types and add 32-bit
  support.
  (syscall.wait4): Fix nesting.
  (syscall.waitid): Add 32-bit support.
  (syscall.waitpid): New probe.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/aux_syscalls.stp (_adjtx_mode_str): Deprecate unused function.
  (_statfs_f_type_str): Ditto.
  (_waitid_opt_str): Deprecated, since the difference between it and
  _wait4_opt_str() was unnecessary.
  (_internal_wait_opt_str): Deprecated since no longer necessary.
  (_flock_cmd_str): Reworked and updated.
  (_wait4_opt_str): Ditto.
  (_waitid_which_str): Ditto.
  (_quotactl_cmd_str): Ditto.
* NEWS: Mention deprecated functions.
* runtime/linux/compat_unistd.h: Added __NR_compat_wait4.
* testsuite/buildok/aux_syscalls-embedded.stp: Updated.
* testsuite/buildok/nd_syscalls2-detailed.stp: Ditto.
* testsuite/buildok/syscalls2-detailed.stp: Ditto.
* testsuite/systemtap.syscall/clone.c: Ditto.
* testsuite/systemtap.syscall/flock.c: Ditto.
* testsuite/systemtap.syscall/getrandom.c: Ditto.
* testsuite/systemtap.syscall/wait4.c: Ditto.
* testsuite/systemtap.syscall/test.tcl: Make more robust.
* testsuite/systemtap.syscall/module.c: Handle s390.

9 years agoPR16716 partial fix: Fix types for 'syscall.{kill,quotactl,wait{4,id,pid}}'.
David Smith [Tue, 3 Feb 2015 16:21:02 +0000 (10:21 -0600)]
PR16716 partial fix: Fix types for 'syscall.{kill,quotactl,wait{4,id,pid}}'.

* tapset/linux/syscalls.stp (syscall.kill): Fix types.
* tapset/linux/syscalls2.stp (syscall.quotactl): Fix types and add 32-bit
  support.
  (syscall.wait4): Fix nesting.
  (syscall.waitid): Add 32-bit support.
  (syscall.waitpid): New probe.
* tapset/linux/nd_syscalls2.stp: Ditto.
* tapset/linux/aux_syscalls.stp (_adjtx_mode_str): Deprecate unused function.
  (_statfs_f_type_str): Ditto.
  (_waitid_opt_str): Deprecated, since the difference between it and
  _wait4_opt_str() was unnecessary.
  (_internal_wait_opt_str): Deprecated since no longer necessary.
  (_flock_cmd_str): Reworked and updated.
  (_wait4_opt_str): Ditto.
  (_waitid_which_str): Ditto.
  (_quotactl_cmd_str): Ditto.
* NEWS: Mention deprecated functions.
* runtime/linux/compat_unistd.h: Added __NR_compat_wait4.
* testsuite/buildok/aux_syscalls-embedded.stp: Updated.
* testsuite/buildok/nd_syscalls2-detailed.stp: Ditto.
* testsuite/buildok/syscalls2-detailed.stp: Ditto.
* testsuite/systemtap.syscall/clone.c: Ditto.
* testsuite/systemtap.syscall/flock.c: Ditto.
* testsuite/systemtap.syscall/getrandom.c: Ditto.
* testsuite/systemtap.syscall/wait4.c: Ditto.
* testsuite/systemtap.syscall/test.tcl: Make more robust.
* testsuite/systemtap.syscall/kill.c: New test.
* testsuite/systemtap.syscall/quotactl.c: Ditto.
* testsuite/systemtap.syscall/wait.c: Ditto.

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 agoruntime/unwind.c: advance data pointer in get_sleb128()
Abegail Jakop [Tue, 3 Feb 2015 14:30:09 +0000 (09:30 -0500)]
runtime/unwind.c: advance data pointer in get_sleb128()

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.

9 years agoPR12276: fix line numbers to match in usymfileline.exp
Abegail Jakop [Mon, 2 Feb 2015 21:56:14 +0000 (16:56 -0500)]
PR12276: fix line numbers to match in usymfileline.exp

9 years agoFix the hw_watch_addr.stp test to properly test for kernel support
William Cohen [Mon, 2 Feb 2015 04:02:01 +0000 (23:02 -0500)]
Fix the hw_watch_addr.stp test to properly test for kernel support

The check for kernel support uses perf and perf needs to just have the
address to watch.  There was additional output on the line from
/proc/kallsyms causing the test to fail. Used awk to extract only the
numerical address from the line.

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