]> sourceware.org Git - systemtap.git/log
systemtap.git
13 years agoMake 'make check LD_LIBRARY_PATH=...' work right.
Roland McGrath [Wed, 18 Aug 2010 22:25:44 +0000 (15:25 -0700)]
Make 'make check LD_LIBRARY_PATH=...' work right.

* Makefile.am (check-local): Append to LD_LIBRARY_PATH, don't override it.
* Makefile.in: Regenerated.

13 years agoRemove redundant parameters of catch command in lib/systemtap.exp
Wenji Huang [Wed, 18 Aug 2010 01:51:54 +0000 (09:51 +0800)]
Remove redundant parameters of catch command in lib/systemtap.exp

13 years agoMade arch-specific syscalls probe fixups and deprecations. New testcase.
David Smith [Tue, 17 Aug 2010 20:47:51 +0000 (15:47 -0500)]
Made arch-specific syscalls probe fixups and deprecations.  New testcase.

* tapset/i386/syscalls.stp (syscall.sigaltstack): Deprecated 'ussp'
  variable in favor of 'uss_uaddr' (to match other arches).
* tapset/ia64/syscalls.stp(syscall.sigaltstack): Deprecated the
  'ss_uaddr'/'oss_uaddr' variables in favor of the
  'uss_uaddr'/'uoss_uaddr' variables (to match other arches).
* tapset/powerpc/syscalls.stp (syscall.sysctl32): Deprecated old probe
  name 'syscall.compat_sysctl'.
  (syscall.sysctl32.return): Deprecated old probe name
  'syscall.compat_sysctl.return'.
  (syscall.sigaltstack): Added probe.
  (syscall.sigaltstack.return): Ditto.
  (syscall.sys32_sigaltstack): Added the kernel function
  'compat_sys_sigaltstack' for newer kernels.
* tapset/s390/syscalls.stp (syscall.getresgid16): Added convenience
  variables to match 'syscall.getresgid'.
  (syscall.getresuid16): Added convenience variables to match
  'syscall.getresuid'.
  (syscall.mmap): Added convienece variables to match other arches.
  (syscall.mmap2): Ditto.
  (syscall.sigaltstack): Added probe.
  (syscall.sigaltstack.return): Ditto.
  (syscall.sys32_sigaltstack): Ditto.
  (syscall.sys32_sigaltstack.return): Ditto.
* tapset/x86_64/syscalls.stp (syscall.sigaltstack): Deprecated the
  'regs_uaddr' variable in favor of 'regs' (since the address isn't a user
  address).
  (syscall.mmap32): Added convenience variables to match 'syscall.mmap'.
  (syscall.pipe32): Added convenience variables to match 'syscall.pipe'.
* testsuite/buildok/testsuite/buildok/syscalls-arch-detailed.stp: New
  testcase.
* tapset/aux_syscalls.stp (__ulong): New function.
* testsuite/buildok/aux_syscalls-embedded.stp: Added __ulong() test.
* NEWS: Mentioned pending deprecations.
* stap.1: Ditto.

13 years agoSimplify dwfl_assert and dwarf_assert
Josh Stone [Tue, 17 Aug 2010 20:33:38 +0000 (13:33 -0700)]
Simplify dwfl_assert and dwarf_assert

We don't need template or const efforts for a null pointer check -- just
use const void* for all cases.  Make the overloaded variants inline
while I'm at it.

13 years agoPR7054: robustify stap -c " " a bit
Frank Ch. Eigler [Tue, 17 Aug 2010 19:58:13 +0000 (15:58 -0400)]
PR7054: robustify stap -c "  " a bit

* session.cxx (parse_cmdline): Reject empty -c argument.

13 years agoSupport DWARF4 linkage names
Josh Stone [Tue, 17 Aug 2010 19:42:49 +0000 (12:42 -0700)]
Support DWARF4 linkage names

With -gdwarf-4, gcc outputs DW_AT_linkage_name instead of
DW_AT_MIPS_linkage_name.  Semantics are unchanged.

* dwarf_wrappers.h (dwarf_linkage_name): New, retrieves the linkage_name
  by either the old or new attribute value.
* dwflpp.cxx (dwflpp::iterate_over_functions): Use dwarf_linkage_name.
  (dwflpp::vardie_from_symtable): Ditto.
* tapsets.cxx (dwarf_query::add_probe_point): Ditto.

13 years agoPR10975: deprecate cpuid() tapset fn in favour of cpu()
Frank Ch. Eigler [Mon, 16 Aug 2010 22:24:06 +0000 (18:24 -0400)]
PR10975: deprecate cpuid() tapset fn in favour of cpu()

13 years agoPR9928: note old elfutils for old gcc
Frank Ch. Eigler [Mon, 16 Aug 2010 22:12:03 +0000 (18:12 -0400)]
PR9928: note old elfutils for old gcc

13 years agoInitialize variable to avoid compiler error.
David Smith [Mon, 16 Aug 2010 21:38:02 +0000 (16:38 -0500)]
Initialize variable to avoid compiler error.

* dwflpp.cxx (iterate_over_functions): Initialize variable to make gcc
  happy.

13 years agoPR11798: abort 'make *check' early if kernel-devel / -debuginfo absent
Frank Ch. Eigler [Mon, 16 Aug 2010 19:08:44 +0000 (15:08 -0400)]
PR11798: abort 'make *check' early if kernel-devel / -debuginfo absent

13 years agoPR11800: document that stap -l / -L takes only a single probe point
Frank Ch. Eigler [Mon, 16 Aug 2010 18:27:07 +0000 (14:27 -0400)]
PR11800: document that stap -l / -L takes only a single probe point

13 years agoPR 11369, due to performance issues stap_merge.c is being shipped
Lukas Berk [Thu, 12 Aug 2010 16:10:08 +0000 (12:10 -0400)]
PR 11369, due to performance issues stap_merge.c is being shipped
instead of a .tcl script.  stap-merge.1 man page was added to
document the command.

13 years agoUpdated stap-server config comment.
David Smith [Wed, 11 Aug 2010 20:38:34 +0000 (15:38 -0500)]
Updated stap-server config comment.

* initscript/config.stap-server: Added a comment about default STAP_USER
  values.

13 years agoUpdated stap_get_arch().
David Smith [Wed, 11 Aug 2010 19:37:07 +0000 (14:37 -0500)]
Updated stap_get_arch().

* stap-env (stap_get_arch): If we don't have a special renaming rule for
  an arch, just use the output of 'uname -m'.  Added a comment stating the
  code needs to match the code in session.cxx.
* session.cxx (systemtap_session): Added a comment stating the code for
  determining the arch needs to match the code in stap_get_arch.

13 years agoPR11880: Allow function matching on the MIPS_linkage_name
Josh Stone [Tue, 10 Aug 2010 00:22:33 +0000 (17:22 -0700)]
PR11880: Allow function matching on the MIPS_linkage_name

When a function pattern starts with "_Z", we can assume that it is
trying to match the mangled C++ name.  Without actually implementing a
mangler ourselves, we can do pretty well using the MIPS_linkage_name.

* dwflpp.cxx (dwflpp::iterate_over_functions): Match _Z patterns against
  the MIPS_linkage_name of each function die.
* tapsets.cxx (dwarf_query::query_module_dwarf): As with wildcards,
  don't use the query_module_functions for _Z patterns.
  (dwarf_query::add_probe_point): For _Z queries, use the linkage name
  for the final probe product too.
* testsuite/semok/mangled.stp: Probe mangled names in stap itself.

13 years agoBZ607232: Fixed 'service systemtap restart' and added required commands.
David Smith [Tue, 10 Aug 2010 19:35:57 +0000 (14:35 -0500)]
BZ607232: Fixed 'service systemtap restart' and added required commands.

* initscript/systemtap.in: Fixed 'restart' by making using local copies of
  the $SCRIPTS global variable.  Also brought it up to speed with current
  Fedora packaging guidelines by adding 'force-reload', 'reload',
  'condrestart' and 'try-restart' commands.

13 years agoIgnore empty files in the cache
Josh Stone [Fri, 6 Aug 2010 17:55:32 +0000 (10:55 -0700)]
Ignore empty files in the cache

Sometimes crashes can leave just-written files at zero length, so we
should be a little paranoid that our cached files are ok.  The stapconf
header is especially vulnerable, as it will prevent all scripts from
being compiled if it gets bad.

* util.cxx (get_file_size(int)): Read the size from a file descriptor.
* cache.cxx (get_stapconf_from_cache, get_script_from_cache): Check that
  cached files are non-empty before using them.

13 years agosprint_stack() and sprint_ustack() are pure
Josh Stone [Thu, 5 Aug 2010 22:12:02 +0000 (15:12 -0700)]
sprint_stack() and sprint_ustack() are pure

13 years agosprint_backtrace() is pure and stringy
Josh Stone [Thu, 5 Aug 2010 22:11:09 +0000 (15:11 -0700)]
sprint_backtrace() is pure and stringy

13 years agosprint_ubacktrace() is pure and stringy
Josh Stone [Thu, 5 Aug 2010 21:58:54 +0000 (14:58 -0700)]
sprint_ubacktrace() is pure and stringy

13 years agoRevert accidental commit of twenty.stp.
Stan Cox [Wed, 4 Aug 2010 15:07:50 +0000 (11:07 -0400)]
Revert accidental commit of twenty.stp.

13 years agoFix sdt_misc.exp cleanup_handler
Stan Cox [Wed, 4 Aug 2010 15:03:34 +0000 (11:03 -0400)]
Fix sdt_misc.exp cleanup_handler

* sdt_misc.exp (cleanup_handler): pbtype_mssgs needs to be global

13 years agoadd dates to release stanzas
Frank Ch. Eigler [Mon, 2 Aug 2010 15:06:34 +0000 (11:06 -0400)]
add dates to release stanzas

13 years agorespond quickly to ^C for long statement wildcard loops
Frank Ch. Eigler [Mon, 2 Aug 2010 00:30:51 +0000 (20:30 -0400)]
respond quickly to ^C for long statement wildcard loops

Without this patch, an operation such as
  % stap -L 'kernel.statement("choose_mirror@*:*")'
was not immediately interruptible.

* dwflpp.cxx (iterate_over_srcfile_lines): Abort quickly if
  pending_interrupts.

13 years agond_syscalls.stp/nd_syscalls2.stp fixups and deprecations. Added testcases.
David Smith [Fri, 30 Jul 2010 19:51:54 +0000 (14:51 -0500)]
nd_syscalls.stp/nd_syscalls2.stp fixups and deprecations. Added testcases.

* tapset/nd_syscalls.stp (nd_syscall.accept): Added a pending deprecation
  of 'flag_str'.  Added 'flags_str'.
  (nd_syscall.dup): Added a pending deprecation of 'old_fd'.  Added
  'oldfd'.
  (nd_syscall.fadvise64): At some point, x86_64 kernels couldn't find
  dwarf parameters.  But, the nd_syscall tapset doesn't care about dwarf
  parameters, so delete the special x86_64 version.
  (nd_syscall.fadvise64_64): Ditto.
  (nd_syscall.fgetxattr): Added pending deprecation of 'name2' and added
  'name_str'.
  (nd_syscall.fremovexattr): Ditto.
  (nd_syscall.fsetxattr): Ditto.
  (nd_syscall.getxattr): Ditto.
  (nd_syscall.lremovexattr): Ditto.
  (nd_syscall.compat_sys_msgctl): Add convenience variables to match
  non-'compat' probe.
  (nd_syscall.compat_sys_msgrcv): Ditto.
  (nd_syscall.compat_sys_msgsnd): Ditto.
* tapset/nd_syscalls2.stp (nd_syscall.pipe): Added convenience variables
  to match 'syscall' probe alias.
  (nd_syscall.compat_sys_recvmsg): Ditto.
  (nd_syscall.signalfd): Ditto.
  (nd_syscall.ustat32): Ditto.
  (nd_syscall.compat_pselect7a): Started a pending deprecation of
  incorrect 'syscall.compat_pselect7a' probe alias name.  Correct name is
  'syscall.compat_pselect7'.
  (nd_syscall.sched_setaffinity): Removed special x86_64 version.
  (nd_syscall.compat_sys_semctl):  Make sure it supports the same
  variables as the non-compat probe.
  (nd_syscall.compat_sys_sendmsg): Ditto.
  (nd_syscall.compat_signalfd): Ditto.
* testsuite/buildok/nd_syscalls-all-probes.stp: New testcase.
* testsuite/buildok/nd_syscalls-detailed.stp: Ditto.
* testsuite/buildok/nd_syscalls2-detailed.stp: Ditto.
* testsuite/lib/stap_buildok.exp (buildok_known_failures): KFail the
  tests that use nd_syscalls probes on ia64 (PR6971).
* NEWS: Mentioned pending deprecations.
* stap.1: Ditto.

13 years agobump AUTHORS
Frank Ch. Eigler [Fri, 30 Jul 2010 17:31:55 +0000 (13:31 -0400)]
bump AUTHORS

13 years agoPR11861: tolerate null struct bio->bi_vcnt in __bio_ino tapset fn
Kapileshwar Singh (KP) [Fri, 30 Jul 2010 17:29:32 +0000 (13:29 -0400)]
PR11861: tolerate null struct bio->bi_vcnt in __bio_ino tapset fn

Jeff Moyer confirms operations such as blkdev_issue_flush
can submit an empty bio.

13 years agoFollow the Python style guide (11691)
Stan Cox [Thu, 29 Jul 2010 20:36:34 +0000 (16:36 -0400)]
Follow the Python style guide (11691)

dtrace.in: Follow the Python style guide.

13 years agoSupport -L for nodebuginfo sdt.
Stan Cox [Wed, 28 Jul 2010 16:59:35 +0000 (12:59 -0400)]
Support -L for nodebuginfo sdt.

* tapsets.cxx (uprobe_derived_probe::getargs): New.
(uprobe_derived_probe::saveargs): New.
(uprobe_derived_probe::args): New.

* sdt_misc.exp: Change test 6 to test -L.

13 years agoarm: fix typo in __stp_stack_print
Frank Ch. Eigler [Wed, 28 Jul 2010 15:47:46 +0000 (11:47 -0400)]
arm: fix typo in __stp_stack_print

13 years agoAdd dieoffset to missing location error messages.
Mark Wielaard [Wed, 28 Jul 2010 11:19:07 +0000 (13:19 +0200)]
Add dieoffset to missing location error messages.

* dwflpp.h (translate_location): Take die as argument.
  (find_struct_member): Take dies vector as argument.
* dwflpp.cxx (translate_location): Take die as argument and output dieoffset
  in error message.
  (find_struct_member): Take dies vector as argument and fill it with the
  dies found.
  (literal_stmt_for_local): Call translate_location with vardie.

13 years agoloc2c-test: NULL-terminate argp_children
Josh Stone [Tue, 27 Jul 2010 05:46:05 +0000 (22:46 -0700)]
loc2c-test: NULL-terminate argp_children

13 years ago* loc2c-test.c: Add --help output.
Roland McGrath [Fri, 23 Jul 2010 06:17:00 +0000 (23:17 -0700)]
* loc2c-test.c: Add --help output.

13 years agoClarify deprecation descriptions in NEWS.
David Smith [Mon, 26 Jul 2010 20:32:42 +0000 (15:32 -0500)]
Clarify deprecation descriptions in NEWS.

13 years agoMany small tapset/syscalls.stp fixups. Deprecate misnamed vars. Added testcase.
David Smith [Mon, 26 Jul 2010 19:19:32 +0000 (14:19 -0500)]
Many small tapset/syscalls.stp fixups. Deprecate misnamed vars. Added testcase.

* tapset/syscalls.stp (syscall.add_key): Added a pending deprecation of
  'description_auddr'. Added 'description_uaddr'.
  (syscall.clock_nanosleep): Added 'flags' convenience variable (to go
  along with existing 'flag_str' variable).
  (syscall.compat_clock_nanosleep): Ditto.
  (syscall.fadvise64): At some point, x86_64 kernels couldn't find
  parameters, so a special version of this probe was written for x86_64.
  Now just uses @defined().
  (syscall.fadvise64_64): Ditto.
  (syscall.fremovexattr): Add 'name_str' and fix 'argstr'.
  (syscall.fgetxattr): Added pending deprecation of 'name2' and added
  'name_str'.
  (syscall.fsetxattr): Ditto.
  (syscall.getxattr): Ditto.
  (syscall.lgetxattr): Ditto.
  (syscall.lremovexattr): Ditto.
  (syscall.futex): Use dwarf variable in comparison instead of convenience
  variable (to let convenience variable be optimized away).
  (syscall.compat_futex): Ditto.
  (syscall.compat_sys_msgctl): Add convenience variables to match
  non-'compat' probe.
  (syscall.compat_sys_msgrcv): Ditto.
  (syscall.compat_sys_msgsnd): Ditto.
* testsuite/buildok/syscalls-detailed.stp: New testcase.
* NEWS: Mentioned pending variable deprecations.
* stap.1: Ditto.

13 years agoBump version numbers for the next release.
David Smith [Mon, 26 Jul 2010 18:41:12 +0000 (13:41 -0500)]
Bump version numbers for the next release.

* configure.ac: Increment version number.
* configure: Regenerated.
* systemtap.spec: Increment version number.
* testsuite/configure.ac: Ditto.
* testsuite/configure: Regenerated.

13 years agoInstead of ifdef'ing out resolve_server(), add needed headers.
David Smith [Mon, 26 Jul 2010 18:01:01 +0000 (13:01 -0500)]
Instead of ifdef'ing out resolve_server(), add needed headers.

* csclient.cxx: Add needed headers to get resolve_server() to compile when
  HAVE_NSS and HAVE_AVAHI aren't defined.

13 years agoFix compilation when HAVE_NSS isn't defined.
David Smith [Mon, 26 Jul 2010 17:18:29 +0000 (12:18 -0500)]
Fix compilation when HAVE_NSS isn't defined.

* csclient.cxx (resolve_server): If HAVE_NSS isn't defined, just return an
  error.

13 years agoadd utrace blurb
Frank Ch. Eigler [Mon, 26 Jul 2010 16:07:55 +0000 (12:07 -0400)]
add utrace blurb

13 years agoPR 11441: Implement --list-servers=specified.
Dave Brolley [Mon, 26 Jul 2010 14:49:27 +0000 (10:49 -0400)]
PR 11441: Implement --list-servers=specified.

Also filter listing of identical servers.

13 years agoPR 11441, PR 10772: Support specified servers on --use-server option to stap.
Dave Brolley [Wed, 21 Jul 2010 18:44:27 +0000 (14:44 -0400)]
PR 11441, PR 10772: Support specified servers on --use-server option to stap.

Implement the direct specification of servers by hostname/ip address with an
(optionally) port in the integrated compile-server client, as implemented by
stap-client.

13 years agopowerpc needs sdt.h tests built with -g as a fallback option.
Stan Cox [Fri, 23 Jul 2010 18:59:41 +0000 (14:59 -0400)]
powerpc needs sdt.h tests built with -g as a fallback option.

sdt_misc.exp (pbtype_flags): Include -g for ppc.

13 years agoMake the beginner's guide use the iotime.stp example
William Cohen [Fri, 23 Jul 2010 15:45:21 +0000 (11:45 -0400)]
Make the beginner's guide use the iotime.stp example

In effort to clean out the extras directory in systemtap beginner's guide
use the existing iotime.stp example in the examples rather than a local
version in the extras directory.

13 years agoRemove unused traceio2-simple.stp.
William Cohen [Fri, 23 Jul 2010 15:20:04 +0000 (11:20 -0400)]
Remove unused traceio2-simple.stp.

13 years agoexamples: include the sample/test invocation with the description blurbs
Frank Ch. Eigler [Fri, 23 Jul 2010 00:21:16 +0000 (20:21 -0400)]
examples: include the sample/test invocation with the description blurbs

13 years agoMove inodewatch2.stp from the beginner's guide into the examples
William Cohen [Thu, 22 Jul 2010 22:16:43 +0000 (18:16 -0400)]
Move inodewatch2.stp from the beginner's guide into the examples

13 years agoUse the para-callgraph.stp example in the examples in the beginner's guide
William Cohen [Thu, 22 Jul 2010 21:35:31 +0000 (17:35 -0400)]
Use the para-callgraph.stp example in the examples in the beginner's guide

Use the tested examples rather than extras scripts where possible. So in this
case use the para-callgraph.stp example which has the same functionality as
para-callgraph-simple.stp.

13 years agoMove inodewatch.stp into the examples
William Cohen [Thu, 22 Jul 2010 20:47:58 +0000 (16:47 -0400)]
Move inodewatch.stp into the examples

Originally inodewatch.stp was in the beginner guide's extras directory.
Moving inodewatch.stp into the examples directory to get regular testing
of the script.

13 years agoClean up the inodewatch-simple.stp to just be inodewatch.stp
William Cohen [Thu, 22 Jul 2010 20:15:06 +0000 (16:15 -0400)]
Clean up the inodewatch-simple.stp to just be inodewatch.stp

This addresses the issues in Red Hat bz617057. Also simplify the script
to make use of the tapset variables dev/ino and MKDEV functions.

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
William Cohen [Thu, 22 Jul 2010 18:54:43 +0000 (14:54 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

13 years agoCorrect error in 4.3.1. Counting Function Calls Made
William Cohen [Thu, 22 Jul 2010 18:53:15 +0000 (14:53 -0400)]
Correct error in 4.3.1. Counting Function Calls Made

This was reported in Red Hat bz617055.

13 years agoPR7097: in flight-recorder-launch mode, don't open the stapio output files early
Frank Ch. Eigler [Thu, 22 Jul 2010 18:35:25 +0000 (14:35 -0400)]
PR7097: in flight-recorder-launch mode, don't open the stapio output files early

* runtime/staprun/relay.c (init_relayfs): Return early if load_only.

13 years agoadded a test for the procfs umask functionality, ensuring expected
Lukas Berk [Thu, 22 Jul 2010 16:39:52 +0000 (12:39 -0400)]
added a test for the procfs umask functionality, ensuring expected
permissions match up with what is actually set

13 years agoVersion bumps for the 1.3 release release-1.3
Josh Stone [Wed, 21 Jul 2010 20:43:23 +0000 (13:43 -0700)]
Version bumps for the 1.3 release

13 years agoAdd NEWS for uprobes-on-NOP speedup
Josh Stone [Wed, 21 Jul 2010 20:38:50 +0000 (13:38 -0700)]
Add NEWS for uprobes-on-NOP speedup

13 years agoRemove duped -G NEWS
Josh Stone [Wed, 21 Jul 2010 20:38:11 +0000 (13:38 -0700)]
Remove duped -G NEWS

13 years agoExtend vta-test.exp testcase for PR11825 and add 32-on-64 for fun.
Mark Wielaard [Wed, 21 Jul 2010 20:24:33 +0000 (22:24 +0200)]
Extend vta-test.exp testcase for PR11825 and add 32-on-64 for fun.

* testsuite/systemtap.base/vta-test.c: Provide constants through struct.
* testsuite/systemtap.base/vta-test.exp: Build/Test also for 32-on-64 if
  available.
* testsuite/systemtap.base/vta-test.stp: Take program under probe as @1.

14 years agoPR11825: loc2c: Handle a computed-value piece.
Roland McGrath [Wed, 21 Jul 2010 18:37:14 +0000 (11:37 -0700)]
PR11825: loc2c: Handle a computed-value piece.

* loc2c.c (location_relative): Handle a computed-value piece.

14 years agorhbz#616040 loc2c deref on 32bit address fails.
Mark Wielaard [Wed, 21 Jul 2010 13:59:27 +0000 (15:59 +0200)]
rhbz#616040 loc2c deref on 32bit address fails.

* runtime/loc2c-runtime.h (deref): For __x86_64__ case cast address to
  (unsigned long) everywhere in case we got a 32 bit address of a 32-on-64
  but process.

14 years agofntimes: use @entry for timestamps
Josh Stone [Tue, 20 Jul 2010 23:55:15 +0000 (16:55 -0700)]
fntimes: use @entry for timestamps

14 years agoerrno: use syscall.*'s "name" instead of probefunc()
Josh Stone [Tue, 20 Jul 2010 23:24:32 +0000 (16:24 -0700)]
errno: use syscall.*'s "name" instead of probefunc()

14 years agowait4time: use @entry for timestamps
Josh Stone [Tue, 20 Jul 2010 23:17:04 +0000 (16:17 -0700)]
wait4time: use @entry for timestamps

14 years agosleeptime: use @entry for timestamps
Josh Stone [Tue, 20 Jul 2010 23:06:21 +0000 (16:06 -0700)]
sleeptime: use @entry for timestamps

14 years agoUse @entry and return- in futexes example
Josh Stone [Tue, 20 Jul 2010 22:32:56 +0000 (15:32 -0700)]
Use @entry and return- in futexes example

14 years agoMake sure Dwarf_Ops don't have garbage
Josh Stone [Tue, 20 Jul 2010 22:10:29 +0000 (15:10 -0700)]
Make sure Dwarf_Ops don't have garbage

We synthesize a Dwarf_Op in a couple of places, but we were only setting
the fields we care about, ".atom" and ".number".  The garbage in
".number2" would survive into "DWARF expression:" comment in loc2c,
which made it look unique and subverted caching.

Now we memset-0 the Dwarf_Op before proceeding.

14 years agotcpipstat: use @defined instead of preprocessor
Josh Stone [Tue, 20 Jul 2010 22:09:24 +0000 (15:09 -0700)]
tcpipstat: use @defined instead of preprocessor

14 years agosk_stream_wait_memory spelling fixes
Josh Stone [Tue, 20 Jul 2010 21:18:51 +0000 (14:18 -0700)]
sk_stream_wait_memory spelling fixes

14 years agoUpdate bkl examples with newer syntax
Josh Stone [Tue, 20 Jul 2010 21:06:10 +0000 (14:06 -0700)]
Update bkl examples with newer syntax

* testsuite/systemtap.examples/locks/bkl.stp: Use '!' to alternate
  kernel probepoints between lock_kernel and _lock_kernel (and unlock).
* testsuite/systemtap.examples/locks/bkl_stats.stp: Ditto, and use
  @entry to get timestamps.

14 years agoUse actual bytes read/written for iotop
Josh Stone [Tue, 20 Jul 2010 19:54:15 +0000 (12:54 -0700)]
Use actual bytes read/written for iotop

Probe on .return, so we know how many bytes the vfs actually handled.

14 years agoRemove explicit entry probes from iotime example
Josh Stone [Tue, 20 Jul 2010 19:32:47 +0000 (12:32 -0700)]
Remove explicit entry probes from iotime example

For the use of syscall.open/read/write, use .return to do all the work.
This uses @entry to collect timestamps and implicit saving for other
$vars.

Note that $return is used for byte counts instead of the entry $count,
because we should care more about the actual work performed.

14 years agoAdd para-callgraph-verbose example
Josh Stone [Tue, 20 Jul 2010 19:15:08 +0000 (12:15 -0700)]
Add para-callgraph-verbose example

It's like para-callgraph, except using $$parms$$.  The output can get
VERY big, so you probably want to dump it into a file for offline
browsing...

14 years agoUse @defined in examples/general/grapher.stp
Josh Stone [Thu, 15 Jul 2010 22:11:53 +0000 (15:11 -0700)]
Use @defined in examples/general/grapher.stp

14 years agoTweak the systemtap.apps tcl test.
Stan Cox [Tue, 20 Jul 2010 21:03:56 +0000 (17:03 -0400)]
Tweak the systemtap.apps tcl test.

tcl.exp: Bump up timeout value.
stap-tcl.sh: Don't run obj.test as it takes a really long time.

14 years agomention user-space and other recent developments in man pages and tutorial
Frank Ch. Eigler [Tue, 20 Jul 2010 17:02:34 +0000 (13:02 -0400)]
mention user-space and other recent developments in man pages and tutorial

14 years agoNEWS: tweak SDT_V2 blurbage
Frank Ch. Eigler [Tue, 20 Jul 2010 15:14:54 +0000 (11:14 -0400)]
NEWS: tweak SDT_V2 blurbage

14 years agoMake SDT_V2 the default on all architectures.
Stan Cox [Tue, 20 Jul 2010 14:38:24 +0000 (10:38 -0400)]
Make SDT_V2 the default on all architectures.

sdt.h:  Don't special case unsupported STAP_SDT_V2 architectures as STAP_SDT_V1

14 years agoPR11821: sdt.exp should tolerate sdt_v2 dwarf warnings
Frank Ch. Eigler [Tue, 20 Jul 2010 11:29:43 +0000 (07:29 -0400)]
PR11821: sdt.exp should tolerate sdt_v2 dwarf warnings

14 years agoMerge branch 'master' of git://sources.redhat.com/git/systemtap
Frank Ch. Eigler [Tue, 20 Jul 2010 01:26:22 +0000 (21:26 -0400)]
Merge branch 'master' of git://sources.redhat.com/git/systemtap

* 'master' of git://sources.redhat.com/git/systemtap:
  * tapset/syscalls2.stp: Started a pending deprecation of incorrect   'syscall.compat_pselect7a' probe alias name.  Correct name is   'syscall.compat_pselect7'. * testsuite/buildok/syscalls2-detailed.stp: Checks for correct probe alias   name. * NEWS: Mentioned 'syscall.compat_pselect7a' deprecation. * stap.1: Ditto. * HACKING: Updated deprecation description.
  Many small tapset/syscalls2.stp fixups.  Added testcase.
  Fix spurios testcase failure from systemtap.examples/network/socktop.
  added the procfs.umask(UMASK) feature to the NEWS file.

Conflicts:
NEWS

14 years agoPR11815: SDT_V2 asm operand parsing reorg
Frank Ch. Eigler [Tue, 20 Jul 2010 01:18:46 +0000 (21:18 -0400)]
PR11815: SDT_V2 asm operand parsing reorg

* tapsets.cxx (sdt_uprobe_var_expanding_visitor ctor): Use %-adorned
  register names.  Accept other architectures.
  (visit_target_symbol): Rewrite regexp matching / parsing.  Fall back to
  DWARF in case of parse failure.
* testsuite/systemtap.base/cxxclass.exp: Use -w to suppress dwarf warning.
* util.cxx (regexp_match): New function.
* util.h: Declare it.

14 years ago* tapset/syscalls2.stp: Started a pending deprecation of incorrect
David Smith [Mon, 19 Jul 2010 21:44:20 +0000 (16:44 -0500)]
* tapset/syscalls2.stp: Started a pending deprecation of incorrect
  'syscall.compat_pselect7a' probe alias name.  Correct name is
  'syscall.compat_pselect7'.
* testsuite/buildok/syscalls2-detailed.stp: Checks for correct probe alias
  name.
* NEWS: Mentioned 'syscall.compat_pselect7a' deprecation.
* stap.1: Ditto.
* HACKING: Updated deprecation description.

14 years agoMany small tapset/syscalls2.stp fixups. Added testcase.
David Smith [Mon, 19 Jul 2010 21:19:49 +0000 (16:19 -0500)]
Many small tapset/syscalls2.stp fixups.  Added testcase.

* tapset/syscalls2.stp (syscall.compat_sys_recvmsg): Make sure it supports
  the same variables as the non-compat probe.
  (syscall.compat_sys_semctl): Ditto.
  (syscall.compat_sys_sendmsg): Ditto.
  (syscall.sched_setaffinity): At some point, x86_64 kernels couldn't
  find $len, so a special version of this probe was written for it.  Now
  just uses @defined().
  (syscall.compat_signalfd): Prefers compat_sys_signalfd4 over
  compat_sys_signalfd.
  (syscall.ustat32): Merged the 2 probes into 1.
* testsuite/buildok/syscalls2-detailed.stp: New testcase.

14 years agoFix spurios testcase failure from systemtap.examples/network/socktop.
David Smith [Mon, 19 Jul 2010 17:49:37 +0000 (12:49 -0500)]
Fix spurios testcase failure from systemtap.examples/network/socktop.

* testsuite/systemtap.examples/network/socktop: Make sure the exit status
  is from stap, not from the cleanup commands.

14 years agoadded the procfs.umask(UMASK) feature to the NEWS file.
Lukas Berk [Mon, 19 Jul 2010 15:47:37 +0000 (11:47 -0400)]
added the procfs.umask(UMASK) feature to the NEWS file.

14 years agoMerge branch 'master' of git://sources.redhat.com/git/systemtap
Frank Ch. Eigler [Mon, 19 Jul 2010 14:31:36 +0000 (10:31 -0400)]
Merge branch 'master' of git://sources.redhat.com/git/systemtap

* 'master' of git://sources.redhat.com/git/systemtap:
  PR 11729 adding a umask parameter to modify the permissions of the file

14 years agoPR 11729 adding a umask parameter to modify the permissions of
Lukas Berk [Fri, 16 Jul 2010 19:17:46 +0000 (15:17 -0400)]
PR 11729 adding a umask parameter to modify the permissions of
the file

14 years agotweak -G documentation wording
Frank Ch. Eigler [Thu, 15 Jul 2010 15:52:21 +0000 (11:52 -0400)]
tweak -G documentation wording

14 years agoMinor timestamp.stp/timestap_gtod.stp/ucontext.stp buildok test improvements.
David Smith [Wed, 14 Jul 2010 15:33:01 +0000 (10:33 -0500)]
Minor timestamp.stp/timestap_gtod.stp/ucontext.stp buildok test improvements.

* testsuite/buildok/timestamp-embedded.stp: Renamed from
  buildok/timestamp.stp.  Only covers function from timestamp.stp.
* testsuite/buildok/timestamp_gtod-embedded.stp: New testcase.
* testsuite/buildok/ucontext-embedded.stp: Renamed from ucontext.stp

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Rayson Ho [Wed, 14 Jul 2010 05:39:05 +0000 (01:39 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoValiduate -G & -m user input w/ assert_regexp_match().
Rayson Ho [Wed, 14 Jul 2010 05:37:13 +0000 (01:37 -0400)]
Validuate -G & -m user input w/ assert_regexp_match().

14 years agoPR 11373: Cleanup residual stap_*.ko modules when shutting down the compile-server.
Dave Brolley [Tue, 13 Jul 2010 19:48:13 +0000 (15:48 -0400)]
PR 11373: Cleanup residual stap_*.ko modules when shutting down the compile-server.

14 years agoPR 11274: server.exp: Add tests.
Dave Brolley [Tue, 13 Jul 2010 19:18:05 +0000 (15:18 -0400)]
PR 11274: server.exp: Add tests.

14 years agoEnsure that server.exp test names have the "with server" suffix.
Dave Brolley [Tue, 13 Jul 2010 19:09:49 +0000 (15:09 -0400)]
Ensure that server.exp test names have the "with server" suffix.

14 years agovalidate input for -G
Rayson Ho [Tue, 13 Jul 2010 19:00:46 +0000 (15:00 -0400)]
validate input for -G

14 years agoAdd tests for PR11808 and PR11809
Josh Stone [Tue, 13 Jul 2010 18:10:32 +0000 (11:10 -0700)]
Add tests for PR11808 and PR11809

* testsuite/semok/pr11808.stp: Make sure we don't abort().
* testsuite/semok/pr11809.stp: Make sure we don't underflow.

14 years agoAllow pretty-printing with partial availability
Josh Stone [Tue, 13 Jul 2010 17:25:48 +0000 (10:25 -0700)]
Allow pretty-printing with partial availability

Especially with local structs, DWARF may only have parts of a variable
available at runtime.  This change lets us print '?' for inaccessible
parts, so we can still print the parts we do have.

* tapsets.cxx (dwarf_pretty_print::push_deref): New, try a deref and
  push a '?' instead if it fails.
  (dwarf_pretty_print::recurse): Use push_deref instead of deref.
  (dwarf_pretty_print::recurse_base): Ditto.
  (dwarf_pretty_print::recurse_pointer): Ditto.
  (dwarf_pretty_print::print_chars): Ditto.

14 years agoPR 11274: csclient.cxx: Revert previous fix. Pass "--" before passing script arguments.
Dave Brolley [Tue, 13 Jul 2010 16:54:10 +0000 (12:54 -0400)]
PR 11274: csclient.cxx: Revert previous fix. Pass "--" before passing script arguments.

14 years agoPR 11274: csclient.cxx: DOn't pass script arguments to the server.
Dave Brolley [Tue, 13 Jul 2010 15:25:53 +0000 (11:25 -0400)]
PR 11274: csclient.cxx: DOn't pass script arguments to the server.

14 years agofix commit misnames
Frank Ch. Eigler [Tue, 13 Jul 2010 12:15:01 +0000 (08:15 -0400)]
fix commit misnames

14 years agosome more git hints
Frank Ch. Eigler [Tue, 13 Jul 2010 12:12:03 +0000 (08:12 -0400)]
some more git hints

14 years agoNew stap -G option to support passing global variables to the kernel module
rho [Tue, 13 Jul 2010 06:27:39 +0000 (02:27 -0400)]
New stap -G option to support passing global variables to the kernel module
(Bugzilla Bug 5642)

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