]> sourceware.org Git - systemtap.git/log
systemtap.git
12 years agoCrucial typo fix in registers.stp.
Serguei Makarov [Thu, 7 Jun 2012 19:03:21 +0000 (15:03 -0400)]
Crucial typo fix in registers.stp.

12 years agoMinor usage clarification for manpager.
Serguei Makarov [Thu, 7 Jun 2012 17:50:00 +0000 (13:50 -0400)]
Minor usage clarification for manpager.

12 years agoRemoved stapfuncs.3stap and moved corresponding information to docstrings.
Serguei Makarov [Thu, 7 Jun 2012 17:47:41 +0000 (13:47 -0400)]
Removed stapfuncs.3stap and moved corresponding information to docstrings.

12 years agotestsuite check.exp: tolerate relative $srcdir
Frank Ch. Eigler [Thu, 7 Jun 2012 14:50:42 +0000 (10:50 -0400)]
testsuite check.exp: tolerate relative $srcdir

After commit c66be968a4ea, the testsuite could receive a relative
$srcdir (if the systemtap build tree was configured with a relative
source tree).  check.exp was not prepared for this, switching around
the cwd's, and still using relative path name strings.  So now we
change directories more circumspectly.  Isly thatly anly adverbly?

12 years agoPR13516: Wrapped exception throwing in function
Chris Meek [Wed, 6 Jun 2012 18:57:26 +0000 (14:57 -0400)]
PR13516: Wrapped exception throwing in function

Now uses assert_no_exception() rather than directly
checking pending_interrupts.

12 years agoPR13516: More robust handling of crtl-c
Chris Meek [Wed, 6 Jun 2012 15:43:59 +0000 (11:43 -0400)]
PR13516: More robust handling of crtl-c

Rather than return or break after checking if(pending_inturrupts),
we now throw an interrupt_exception. This is caught in main, where
we immediately exit.

Also added some code to check for other uncaght exceptions.

12 years agoPR13516: Shifted main (style cleanup)
Chris Meek [Mon, 4 Jun 2012 20:10:16 +0000 (16:10 -0400)]
PR13516: Shifted main (style cleanup)

  Shifted main right by one tab to align properly with
  the new try/catch block. Decided to do this in a separate commit
  so as to make the previous one more clear.

12 years agoPR13516 pre: Re-worked tmpdir creation/removal
Chris Meek [Mon, 4 Jun 2012 20:00:50 +0000 (16:00 -0400)]
PR13516 pre: Re-worked tmpdir creation/removal

In preparation for PR13516, we needed to rework the tmpdir
creation/removal, so as to be sure the tmpdir gets removed
when we get an exception. Creation now happens in the
systemtap_session ctor with a call to
systemtap_session::create_tmp_dir() and removal in the dtor
with a call to systemtap_session::remove_tmp_dir().

passes_0_4_again_with_server() now calls the new
systemtap_session::reset_tmp_dir(), rather than just removing
and relying on passes_0_4() to recreate it.

12 years agoMinor style fix in testsuite code for net-sanity.exp and conversions.exp.
Serguei Makarov [Tue, 5 Jun 2012 19:37:36 +0000 (15:37 -0400)]
Minor style fix in testsuite code for net-sanity.exp and conversions.exp.

12 years agoStress test embedded-C functions including __ip6_skb_proto from PR14165.
Serguei Makarov [Tue, 5 Jun 2012 19:14:52 +0000 (15:14 -0400)]
Stress test embedded-C functions including __ip6_skb_proto from PR14165.

The test can probably be expanded to poke other functions with other
values without too much trouble.

12 years agoPR14164, PR14165: IPv6, ARP functionality for netfilter.stp.
Serguei Makarov [Tue, 5 Jun 2012 19:13:07 +0000 (15:13 -0400)]
PR14164, PR14165: IPv6, ARP functionality for netfilter.stp.

12 years agoAUTHORS bump
Josh Stone [Tue, 5 Jun 2012 18:41:31 +0000 (11:41 -0700)]
AUTHORS bump

12 years agoUpdate generated files
Josh Stone [Tue, 5 Jun 2012 18:19:24 +0000 (11:19 -0700)]
Update generated files

This updates to Fedora 17 versions of automake and autoconf, and adds
the generated code for staprun's new support for --without-nss.

12 years agoruntime/staprun/configure.ac: support --without-nss for staprun
Andreas Müller [Tue, 5 Jun 2012 08:43:37 +0000 (10:43 +0200)]
runtime/staprun/configure.ac: support --without-nss for staprun

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
12 years agoFix systemtap.base/plt.exp cleanup.
David Smith [Mon, 4 Jun 2012 17:57:55 +0000 (12:57 -0500)]
Fix systemtap.base/plt.exp cleanup.

* testsuite/systemtap.base/plt.exp: Only call cleanup function when
  exiting, otherwise an early failure causes later failures.  Also perform
  better cleanup of generated files.

12 years agotapset/nfsd.stp (nfsd.open): Try both $access and $may_flags for access.
Mark Wielaard [Mon, 4 Jun 2012 09:31:34 +0000 (11:31 +0200)]
tapset/nfsd.stp (nfsd.open): Try both $access and $may_flags for access.

Adjust for linux kernel commit 999448 nfsd: rename 'int access' to
'int may_flags' in nfsd_open().

12 years agoUpdate 2 buildok tests for kernel-3.5.0-0.rc0.git9.2.fc18.
David Smith [Fri, 1 Jun 2012 21:15:33 +0000 (16:15 -0500)]
Update 2 buildok tests for kernel-3.5.0-0.rc0.git9.2.fc18.

* testsuite/buildok/twentytwo.stp: Add '.call' to the
  'kernel.function("vfs_llseek")' so that we can avoid inlined versions
  that don't have $offset.
* testsuite/buildok/xtime.stp: Update for kernel-3.5.0-0.rc0.git9.2.fc18,
  where the old xtime global variable got moved into a structure.

12 years agoUpdate tapset/syscalls.stp for kernel-3.5.0-0.rc0.git9.2.fc18.
David Smith [Fri, 1 Jun 2012 18:47:07 +0000 (13:47 -0500)]
Update tapset/syscalls.stp for kernel-3.5.0-0.rc0.git9.2.fc18.

12 years agoHandle the possibility of including runtime/uprobes-inc.h twice.
David Smith [Fri, 1 Jun 2012 15:59:43 +0000 (10:59 -0500)]
Handle the possibility of including runtime/uprobes-inc.h twice.

12 years agoBetter handle task_work_add() return values.
David Smith [Thu, 31 May 2012 21:28:45 +0000 (16:28 -0500)]
Better handle task_work_add() return values.

* runtime/stp_utrace.c (finish_report): Ignore ESRCH errors returned from
  task_work_add().
* runtime/task_finder2.c (__stp_utrace_task_finder_target_quiesce): Don't
  treat task_work_add() success as an error.
  (__stp_utrace_task_finder_target_syscall_exit): Ditto.

12 years agoGive better errors when the kernel won't support the task_finder.
David Smith [Thu, 31 May 2012 20:19:01 +0000 (15:19 -0500)]
Give better errors when the kernel won't support the task_finder.

* runtime/runtime.h: Only include task_finder.c if the kernel supports it.
* runtime/vma.c: Surround code that needs the task_finder with '#ifdef
  HAVE_TASK_FINDER'.
* runtime/task_finder.c: If we don't have the prerequisites for the
  task_finder, give an error instead of silently defining dummy
  functions.

12 years agoPR13667: Hardcoded netfilter constants, cleaned up
Chris Meek [Thu, 31 May 2012 18:19:04 +0000 (14:19 -0400)]
PR13667: Hardcoded netfilter constants, cleaned up

Since certain older versions of the kernel do not define some
netfilter constants, we had to hardcode all the values
so that it would compile on those older kernels (i.e. RHEL 4 and 5).
This is OK, since we were only including the netfilter_* headers
to map the constants to their equivalent values.

12 years agoPR13667: Added netfilter guru packet drop example
Chris Meek [Mon, 28 May 2012 19:19:22 +0000 (15:19 -0400)]
PR13667: Added netfilter guru packet drop example

12 years agoEnabled tapset::* generation using manpager in the --with-docs build sequence.
Serguei Makarov [Mon, 28 May 2012 19:15:41 +0000 (15:15 -0400)]
Enabled tapset::* generation using manpager in the --with-docs build sequence.

12 years agoMerge branch 'master' of http://sourceware.org/git/systemtap
Serguei Makarov [Fri, 25 May 2012 19:04:01 +0000 (15:04 -0400)]
Merge branch 'master' of http://sourceware.org/git/systemtap

12 years agoPR14146: adapted manpager.sh to produce passable tapset::* manpages.
Serguei Makarov [Fri, 25 May 2012 18:57:58 +0000 (14:57 -0400)]
PR14146: adapted manpager.sh to produce passable tapset::* manpages.

The resulting manpages can act as 'very succinct' (read: utterly
bare-bones) tables of contents listing documented functions and probes,
and referring the user to probe::* and function::* manpages generated by
the 'robust' (read: hideously complicated and slow, but very reliable)
DocBook toolchain.

manpager.sh is currently not hooked up to the build sequence, pending
delivery of a fresh supply of fingers to cross in hope that everything
works as advertised.

12 years agoPR14168: sanitize $PATH for kbuild invocation
Frank Ch. Eigler [Fri, 25 May 2012 16:04:04 +0000 (12:04 -0400)]
PR14168: sanitize $PATH for kbuild invocation

* buildrun.cxx (make_any_make_cmd): Use env(1) to unset and change
  some environment variables, particularly $PATH.
  (run_make_cmd): Don't unsetenv here for the stap process any more.
* testsuite/systemtap.base/kbuildenv.exp: Test it.
* NEWS: Mention it.

12 years agoPR13667: changed verdict and protocol constants to lowercase to workaround PR10299.
Serguei Makarov [Fri, 25 May 2012 14:54:20 +0000 (10:54 -0400)]
PR13667: changed verdict and protocol constants to lowercase to workaround PR10299.

12 years agoRudimentary support for ARP and Bridge in netfilter.stp.
Serguei Makarov [Thu, 24 May 2012 21:15:25 +0000 (17:15 -0400)]
Rudimentary support for ARP and Bridge in netfilter.stp.

Still have to add protocol header extraction i.e. the part that's
actually specific to ARP and Bridge.

12 years agoPoint at current upstream version of mysql.
Stan Cox [Thu, 24 May 2012 20:57:43 +0000 (16:57 -0400)]
Point at current upstream version of mysql.

* mysql.exp (mysqlrelease):  Bump version. Grab from current repository location.

12 years agoFix uprobes_pass() logic (that the last commit broke).
David Smith [Thu, 24 May 2012 17:58:28 +0000 (12:58 -0500)]
Fix uprobes_pass() logic (that the last commit broke).

12 years agoImproved uprobes_pass() error message.
David Smith [Thu, 24 May 2012 17:48:43 +0000 (12:48 -0500)]
Improved uprobes_pass() error message.

* buildrun.cxx (uprobes_pass): Improve error message when no utrace and no
  inode-uprobes.

12 years agoIgnore ESRCH errors returned from task_work_add().
David Smith [Thu, 24 May 2012 16:05:09 +0000 (11:05 -0500)]
Ignore ESRCH errors returned from task_work_add().

* runtime/stp_utrace.c (utrace_do_stop): Ignore ESRCH errors returned from
  task_work_add().
  (utrace_stop): Ditto.
  (utrace_control): Ditto.
* runtime/task_finder2.c (__stp_utrace_task_finder_target_quiesce): Ditto.
  (__stp_utrace_task_finder_target_syscall_exit): Ditto.

12 years agoNEWS: mention staprun -T
Frank Ch. Eigler [Thu, 24 May 2012 01:23:36 +0000 (21:23 -0400)]
NEWS: mention staprun -T

12 years agoAllow tuning of reader thread ppoll timeout value
Frederic Turgis [Thu, 24 May 2012 01:21:06 +0000 (21:21 -0400)]
Allow tuning of reader thread ppoll timeout value

Default value of 200ms causes too many wake-ups for embedded platforms
low power use-cases. Timeout of several seconds is expected on these.
New option is -T x where x is timeout in ms.

* runtime/staprun/common.c (parse_args): Parse -T option.
  (usage): Mention it.
* runtime/staprun/relay.c (reader_thread): Use -T value to override default
  polling interval.
* runtime/staprun/staprun.8: Document it.

12 years agosamples: rename psig.stp & add psig.meta
Frank Ch. Eigler [Thu, 24 May 2012 00:58:14 +0000 (20:58 -0400)]
samples: rename psig.stp & add psig.meta

12 years agosamples: new psig script
Eugene Teo [Thu, 24 May 2012 00:39:58 +0000 (20:39 -0400)]
samples: new psig script

12 years agodiagnostics: for stap -vv and above, print "focused on module <FOO>" messages
Frank Ch. Eigler [Wed, 23 May 2012 19:20:31 +0000 (15:20 -0400)]
diagnostics: for stap -vv and above, print "focused on module <FOO>" messages

* tapsets.cxx (validate_module_elf): Be a touch more verbose about dwarf/elf
  modules elfutils found for us.

12 years agoPR14137: tolerate duplicate netfilter hook probe handlers
Frank Ch. Eigler [Wed, 23 May 2012 16:37:54 +0000 (12:37 -0400)]
PR14137: tolerate duplicate netfilter hook probe handlers

translate.cxx may model duplicate probe handlers by changing multiple
*_derived_probe ->name's to the same string, which upsets
tapset-netfilter.cxx code generation.  Use an index for the contexts
where required.

* tapset-netfilter.cxx (netfilter_derived_probe ctor): Assign unique
  nf_filter index.
  (emit_module_decls, emit_module_init, emit_module_exit): Use when
  appropriate.

12 years agoInitial (barely adequate) reference doc for netfilter.stp.
Serguei Makarov [Wed, 23 May 2012 15:26:52 +0000 (11:26 -0400)]
Initial (barely adequate) reference doc for netfilter.stp.

12 years agoAdded section describing netfilter probes to stapprobes.3stap.
Serguei Makarov [Wed, 23 May 2012 15:22:26 +0000 (11:22 -0400)]
Added section describing netfilter probes to stapprobes.3stap.

Note that the link to tapset::netfilter (3stap) is currently broken.
That man page is waiting on a fix for PR14146. If that bug gets delayed
indefinitely, it may be necessary to delete the reference for the time
being, and refer people to the Tapset Reference document instead.

12 years agoRegenerate examples index.
Mark Wielaard [Wed, 23 May 2012 08:47:12 +0000 (10:47 +0200)]
Regenerate examples index.

12 years agoNEWS: mention pretty-printing changes
Frank Ch. Eigler [Tue, 22 May 2012 19:46:03 +0000 (15:46 -0400)]
NEWS: mention pretty-printing changes

12 years agoFix to allow netfilters scripts to distinguish between ipv4 and ipv6 packets.
Serguei Makarov [Tue, 22 May 2012 18:37:29 +0000 (14:37 -0400)]
Fix to allow netfilters scripts to distinguish between ipv4 and ipv6 packets.

12 years agoSimple netfilters example and sanitycheck.
Serguei Makarov [Tue, 22 May 2012 18:23:41 +0000 (14:23 -0400)]
Simple netfilters example and sanitycheck.

This is an example script which uses netfilter hooks to count total
traffic over all source-destination pairs seen by the computer.

12 years agoInitial version of improved tapset for netfilters.
Serguei Makarov [Tue, 22 May 2012 18:20:21 +0000 (14:20 -0400)]
Initial version of improved tapset for netfilters.

This tapset exposes the ability to track IPv4 network packets using the
netfilter hooks mechanism. Support for IPv6 is still very patchy, and
support for other protocols (ARP, bridge) is basically nonexistent.

12 years agoBasic test cases for primitive probe points defined in tapset-netfilter.cxx.
Serguei Makarov [Tue, 22 May 2012 16:17:17 +0000 (12:17 -0400)]
Basic test cases for primitive probe points defined in tapset-netfilter.cxx.

These are all ok/ko type build tests. Tests for actual use of the
functionality will be committed together with an improved netfilter.stp.

The failure of buildok/netfilter02.stp is currently due to a known bug
involving the definition of multiple netfilter probe points.

12 years agounprivileged_probes.exp remove bare netfilter.hook(string) tests.
Mark Wielaard [Mon, 21 May 2012 20:42:31 +0000 (22:42 +0200)]
unprivileged_probes.exp remove bare netfilter.hook(string) tests.

Bare netfilter.hook(string) is no longer valid, it always needs pf(string).

12 years agounprivileged_probes.exp test both netfilter pf(string)/hook(string) variants.
Mark Wielaard [Mon, 21 May 2012 20:33:29 +0000 (22:33 +0200)]
unprivileged_probes.exp test both netfilter pf(string)/hook(string) variants.

Both netfilter.pf(string).hook(string) and netfilter.hook(string).pf(string)
are valid (plus priority).

12 years agoMore tapset-netfilter.cxx compile fixes.
Mark Wielaard [Mon, 21 May 2012 17:49:42 +0000 (19:49 +0200)]
More tapset-netfilter.cxx compile fixes.

Define NF_IP_PRI_SECURITY and NF_INET_PRE_ROUTING constants for pre 2.6.26
and pre 2.6.24 kernels.

12 years agotapset-netfilter.cxx compile fixes.
Mark Wielaard [Mon, 21 May 2012 17:27:36 +0000 (19:27 +0200)]
tapset-netfilter.cxx compile fixes.

include limits.h for MAX_INT and MIN_INT, define NF_IP6_PRI_RAW if undefined.

12 years agoAdd testcase for PR14107 Bad user unwinding from kernel fatal signal handler.
Mark Wielaard [Mon, 21 May 2012 10:57:41 +0000 (12:57 +0200)]
Add testcase for PR14107 Bad user unwinding from kernel fatal signal handler.

This is really a kernel bug, see bug report, when the CFI for the assembly
code is missing we cannot properly recover the register state for the user
process and might give a bad/missing user backtrace.

12 years agoPR13667: Fixed probe point ordering
Chris Meek [Fri, 18 May 2012 19:28:13 +0000 (15:28 -0400)]
PR13667: Fixed probe point ordering

Now supports:

netfilter.hook().pf()
netfilter.pf().hook()
netfilter.hook().pf().priority()
netfilter.pf().hook().priority()

And .priority() no longer has a default value (i.e. it is
required).

12 years agoPR13667: Fixed guru mode hook-not-defined bug
Chris Meek [Fri, 18 May 2012 18:54:34 +0000 (14:54 -0400)]
PR13667: Fixed guru mode hook-not-defined bug

Before, when in guru mode, it would pass the hook/priority
strings across without checking/converting them to numbers. This
caused a bug where perfectly legal strings (such as NF_IP_PRE_ROUTING)
would be unrecognized in the generated code since their definitions
are not available in kernel space.

Now, it checks/converts all the strings to numbers whether in guru
mode or not, but only complains about mismatches if not in guru mode.
If in guru mode, it will still pass the initial string across if it
doesn't match anything else.

12 years agoPR13667: Tweak verdict-needs-guru error message
Chris Meek [Fri, 18 May 2012 14:23:31 +0000 (10:23 -0400)]
PR13667: Tweak verdict-needs-guru error message

12 years agoPR13667: Added guru mode requirement for $verdict
Chris Meek [Wed, 16 May 2012 21:25:37 +0000 (17:25 -0400)]
PR13667: Added guru mode requirement for $verdict

guru mode is needed to write to $verdict, for obvious reasons

12 years agoPR13667: Range checking for hooks and priorities
Chris Meek [Wed, 16 May 2012 20:52:35 +0000 (16:52 -0400)]
PR13667: Range checking for hooks and priorities

- Added more strict range checking for hook names
- Added support for arp and bridge netfilter hooks
- Added range checking of priority strings for ipv4
  and ipv6 hooks, numerical checking for all

12 years agoREADME: note that kernel-debuginfo is not a real prerequisite
Frank Ch. Eigler [Thu, 17 May 2012 23:48:35 +0000 (19:48 -0400)]
README: note that kernel-debuginfo is not a real prerequisite

12 years agoAUTHORS bump
Frank Ch. Eigler [Thu, 17 May 2012 23:43:49 +0000 (19:43 -0400)]
AUTHORS bump

12 years agoFix loop direction in netfilter_derived_probe_group::emit_module_init.
Serguei Makarov [Thu, 17 May 2012 21:03:31 +0000 (17:03 -0400)]
Fix loop direction in netfilter_derived_probe_group::emit_module_init.

12 years agopass-N messages: print also data+stack consumption from /proc/self/statm
Frank Ch. Eigler [Thu, 17 May 2012 21:00:31 +0000 (17:00 -0400)]
pass-N messages: print also data+stack consumption from /proc/self/statm

* util.cxx (getmemusage): Extract all other fields from /proc/self/statm.
  Toss most of them away.  Print #6 also.

12 years agoHelp onoffprobe.exp pass more consistently.
David Smith [Wed, 16 May 2012 14:40:11 +0000 (09:40 -0500)]
Help onoffprobe.exp pass more consistently.

* testsuite/systemtap.base/onoffprobe.exp (advance): Tweak regexps so that
  the test will pass more consistently.

12 years agoRHBZ 820487 - Disable client.exp tests when avahi-daemon is not working.
Dave Brolley [Mon, 14 May 2012 14:56:55 +0000 (10:56 -0400)]
RHBZ 820487 - Disable client.exp tests when avahi-daemon is not working.

12 years agoplt.exp: Don't count unreliable plt invocations.
Mark Wielaard [Mon, 14 May 2012 10:39:10 +0000 (12:39 +0200)]
plt.exp: Don't count unreliable plt invocations.

Depending on gcc version and glibc used plt calls to malloc, free and
__cxa_finalize differ too much (or are just optimized away completely)
to rely on them in the test. Just take them out.

12 years agoadd dbug_task_vma debug macro
Negreanu Marius Adrian [Sat, 12 May 2012 14:31:58 +0000 (17:31 +0300)]
add dbug_task_vma debug macro

replace DEBUG_TASK_FINDER_VMA
with a dbug_unwind-like macro: dbug_task_vma

12 years ago(BZ820457 partial fix) Update the list of systemtap-testsuite requires.
David Smith [Fri, 11 May 2012 19:28:40 +0000 (14:28 -0500)]
(BZ820457 partial fix) Update the list of systemtap-testsuite requires.

* systemtap.spec: Add more systemtap-testsuite requires (systemtap-server,
  avahi, and crash).

12 years ago(BZ820457 partial fix) Update systemtap.printf/sharedbuf.exp for ppc64.
David Smith [Fri, 11 May 2012 18:19:21 +0000 (13:19 -0500)]
(BZ820457 partial fix) Update systemtap.printf/sharedbuf.exp for ppc64.

* testsuite/systemtap.printf/sharedbuf.exp: For ppc64, expect a leading
  '.' on the symbol name we're looking for.

12 years agovarwatch example: make var-changed report lines less verbose
Frank Ch. Eigler [Thu, 10 May 2012 20:34:13 +0000 (16:34 -0400)]
varwatch example: make var-changed report lines less verbose

12 years agoUpdate bz6503.exp testcase.
David Smith [Thu, 10 May 2012 20:04:17 +0000 (15:04 -0500)]
Update bz6503.exp testcase.

* testsuite/systemtap.base/bz6503.exp: Make the test work by non-root
  users.  Also add fat/vfat modules as suggested in BZ820487.
* testsuite/systemtap.base/bz6503.stp: Add fat/vfat modules as
  alternatives as suggested in BZ820487.

12 years agoSet the proper ip address family in resolved addresses rahter than asserting it.
Dave Brolley [Thu, 10 May 2012 18:51:00 +0000 (14:51 -0400)]
Set the proper ip address family in resolved addresses rahter than asserting it.

12 years agoparser: add comment re. undesirability of changes to keywords set
Frank Ch. Eigler [Wed, 9 May 2012 15:49:18 +0000 (11:49 -0400)]
parser: add comment re. undesirability of changes to keywords set

12 years agobump AUTHORS
Frank Ch. Eigler [Wed, 9 May 2012 15:32:26 +0000 (11:32 -0400)]
bump AUTHORS

12 years agostap-report: simplify avahi-browse invocation
Frank Ch. Eigler [Wed, 9 May 2012 15:30:36 +0000 (11:30 -0400)]
stap-report: simplify avahi-browse invocation

12 years agostap-report: add avahi-browse & ifconfig outputs to help diagnose network issues
Frank Ch. Eigler [Wed, 9 May 2012 15:22:01 +0000 (11:22 -0400)]
stap-report: add avahi-browse & ifconfig outputs to help diagnose network issues

12 years agoparsing: when complaining about tok_junk, hex-dump the character in question
Frank Ch. Eigler [Tue, 8 May 2012 21:36:03 +0000 (17:36 -0400)]
parsing: when complaining about tok_junk, hex-dump the character in question

12 years agoGive good error messages for inodes uprobes registration errors.
David Smith [Tue, 8 May 2012 21:07:08 +0000 (16:07 -0500)]
Give good error messages for inodes uprobes registration errors.

* translate.cxx (c_unparser::emit_module_init): Only print an error if
  'probe_point' isn't NULL.
* tapsets.cxx (uprobe_derived_probe_group::emit_module_inode_init): Let
  stapiu_init() handle reporting errors by setting 'probe_point' to NULL.
* runtime/uprobes-inode.c (stapiu_get): Print errors when needed.
  (stapiu_reg): Ditto.

12 years agoconfigury: automake 1.12 as deprecated automatic de-ANSI-fication support
Nitin A Kamble [Tue, 8 May 2012 18:13:49 +0000 (14:13 -0400)]
configury: automake 1.12 as deprecated automatic de-ANSI-fication support

Fix this issue with automake 1.12:

| configure.ac:23: error: automatic de-ANSI-fication support has been removed

[fche:] Note that the systemtap git repository and source releases include
autoconf- and automake-generated files, so this is only an issue for those
who have an unusual reason to regenerate them.

Signed-Off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
12 years agoImprove the labels.exp testcase output handling.
David Smith [Tue, 8 May 2012 18:03:40 +0000 (13:03 -0500)]
Improve the labels.exp testcase output handling.

* testsuite/systemtap.base/labels.exp: Handle probe output in either
  order, which is OK when the probes are probing the same address.

12 years agoPR14079 - caller() pass-4 error if no uretprobes in script
Mark Wielaard [Tue, 8 May 2012 17:59:07 +0000 (19:59 +0200)]
PR14079 - caller() pass-4 error if no uretprobes in script

caller() is odd in that it tries to do both kernel and user caller.
There is no ucaller(). Move it into its own tapset and include the
right uprobes related structures.

* runtime/uprobes-inc.h: New include file to be included in ...
* runtime/stack.c: here and ...
* tapset/context-caller.stp: here. New tapset, with just the caller context
  function, removed from ...
* tapset/context-unwind.stp: here.
* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Also include context-caller.stp.

12 years agoImprove gtod.exp testcase.
David Smith [Tue, 8 May 2012 16:43:06 +0000 (11:43 -0500)]
Improve gtod.exp testcase.

* testsuite/systemtap.base/gtod.exp: Make more robust by using a state
  machine to match output.

12 years agoPR14078: work around rpmio's bad glob
Frank Ch. Eigler [Tue, 8 May 2012 14:23:50 +0000 (10:23 -0400)]
PR14078: work around rpmio's bad glob

Work around ancient rpm packaging misfeature.
https://bugzilla.redhat.com/show_bug.cgi?id=819680

* configure.ac (rpm*): Force -lc before -lrpm*.

12 years agoRegenerate examples index.
Mark Wielaard [Mon, 7 May 2012 23:53:30 +0000 (01:53 +0200)]
Regenerate examples index.

12 years agoImprove the case-scope testcase output handling.
David Smith [Mon, 7 May 2012 21:40:38 +0000 (16:40 -0500)]
Improve the case-scope testcase output handling.

* testsuite/systemtap.base/cast-scope.stp: Print the probe strings in a
  defined order (since the process.function and process.mark probes can
  end up at the same address).

12 years agoMinor bz5274.exp fixes.
David Smith [Mon, 7 May 2012 21:36:24 +0000 (16:36 -0500)]
Minor bz5274.exp fixes.

* testsuite/systemtap.base/bz5274.exp: Make sure test output is saved in
  the log file.  Make sure to clean up.

12 years agoPR13667: update privileged* tests for netfilter-hook probe point name tweaks
Frank Ch. Eigler [Mon, 7 May 2012 13:45:23 +0000 (09:45 -0400)]
PR13667: update privileged* tests for netfilter-hook probe point name tweaks

12 years agofix the small compile issues in the Cleanups DWARF patch
Negreanu Marius Adrian [Mon, 7 May 2012 11:57:16 +0000 (14:57 +0300)]
fix the small compile issues in the Cleanups DWARF patch

Signed-off-by: Negreanu Marius Adrian <adrian.m.negreanu@intel.com>
12 years agoCleanups and fixes for DWARF unwinder.
Mark Wielaard [Mon, 7 May 2012 08:20:21 +0000 (10:20 +0200)]
Cleanups and fixes for DWARF unwinder.

Add explict comments and set_*_rule functions for different states.
Do data alignment in processCFI, not afterwards in unwind_frame.
Remove unnecessary UNW_DEFAULT_RA. Make unwind_item state union
explicit about (unsigned) reg versus (signed) offset. Same for
unwind_reg_state cfa.

12 years agotoolshed name change: vardecl::skip_init->synthetic
Frank Ch. Eigler [Mon, 7 May 2012 02:10:52 +0000 (22:10 -0400)]
toolshed name change: vardecl::skip_init->synthetic

* staptree.h (vardecl::skip_init): Rename field to "synthetic".
  Update all users.

12 years agoPR13667: beginning of a netfilter-hook tapset
Frank Ch. Eigler [Mon, 7 May 2012 01:11:30 +0000 (21:11 -0400)]
PR13667: beginning of a netfilter-hook tapset

12 years agoPR13667: rework netfilter hook $context variable processing
Frank Ch. Eigler [Mon, 7 May 2012 01:01:17 +0000 (21:01 -0400)]
PR13667: rework netfilter hook $context variable processing

We now use tapset-mark.cxx style script/probe locals for incoming and
outgoing parameters.  These are written/read during the probe prologue
function, and specially marked to prevent optimization/elision.

12 years agoelaboration: don't elide assignments to skip_init vardecls
Frank Ch. Eigler [Mon, 7 May 2012 00:59:09 +0000 (20:59 -0400)]
elaboration: don't elide assignments to skip_init vardecls

Such vardecl objects may also used for output parameters, for which
we don't want to suppress assignments to.

* elaborate.cxx (dead_assignment_remover::visit_assignment): Don't kill
  lvalue skip_init vardecls.

12 years agorespond to pending_interrupts during sub-make sequence
Frank Ch. Eigler [Mon, 7 May 2012 00:57:51 +0000 (20:57 -0400)]
respond to pending_interrupts during sub-make sequence

* buildrun.cxx (run_make_cmd): If we already received a ^C as per
  pending_interrupts, but some naive caller has tried to run yet
  another inferior make, abort without even trying.

12 years agoauditbt example: sudo doesn't take -c.
Mark Wielaard [Sun, 6 May 2012 21:54:23 +0000 (23:54 +0200)]
auditbt example: sudo doesn't take -c.

12 years agoPR14057 - ERROR: Your privilege credentials (stapsys) are insufficient...
Mark Wielaard [Thu, 3 May 2012 19:49:11 +0000 (21:49 +0200)]
PR14057 - ERROR: Your privilege credentials (stapsys) are insufficient...

Initialize user_credentials to pr_unknown in init_staprun and set them
to pr_all when getuid() == 0 in assert_stap_module_permissions or
assert_uprobes_module_permissions.

12 years agoImproved task_finder2 mmap tracking and better task_work cleanup.
David Smith [Thu, 3 May 2012 19:20:34 +0000 (14:20 -0500)]
Improved task_finder2 mmap tracking and better task_work cleanup.

* runtime/task_finder2.c (__stp_tf_alloc_task_work): New function.
  (__stp_tf_free_task_work): Ditto.
  (__stp_tf_cancel_task_work): Ditto.
  (__stp_tf_quiesce_worker): Renamed from __stp_task_worker(). Uses
  __stp_tf_free_task_work() to free the task_work structure.
  (__stp_utrace_task_finder_target_quiesce): Uses
  __stp_tf_alloc_task_work() to allocate a task_work structure.
  (__stp_tf_mmap_worker): New task_work worker function.
  (__stp_utrace_task_finder_target_syscall_exit): If we're in an atomic
  context, use task_work_add() to call __stp_tf_mmap_worker().
  (stap_stop_task_finder): Call __stp_tf_cancel_task_work() to cancel all
  outstanding task work requests.

12 years agoPR13667 (in progress): Added initial context varaible code
Chris Meek [Thu, 3 May 2012 13:29:49 +0000 (09:29 -0400)]
PR13667 (in progress): Added initial context varaible code

Added some initial code to handle context variables such as
$verdict. It is not functioning properly yet, but it is still
in progress.

12 years agoRemove more unused semaphore code from dwarf_derived_probe class.
David Smith [Thu, 3 May 2012 14:36:28 +0000 (09:36 -0500)]
Remove more unused semaphore code from dwarf_derived_probe class.

* tapsets.cxx (dwarf_derived_probe::join_group): Remove semaphore code.
  (dwarf_derived_probe::emit_probe_local_init): Ditto.
  (dwarf_derived_probe_group::emit_module_decls): Ditto.

12 years agoFix PR13992 cont. Do iterate_over_modules, just not over libraries.
Mark Wielaard [Wed, 2 May 2012 19:13:30 +0000 (21:13 +0200)]
Fix PR13992 cont. Do iterate_over_modules, just not over libraries.

The original fix for PR13992 (commit 0ce08aa) failed to iterate of any
modules when no executable path was found, which made the exelib.exp
testcase fail. Refixed by iterating of modules, just not over libraries.

12 years agoRemoved unused kprobe1 sdt support.
David Smith [Wed, 2 May 2012 19:31:58 +0000 (14:31 -0500)]
Removed unused kprobe1 sdt support.

* sdt_types.h: Remove KPROBE1_TYPE define and kprobe1_type enum value.
* testsuite/sys/sdt.h: Ditto.
* tapsets.cxx (sdt_kprobe_var_expanding_visitor): Removed struct and its
  functions.
  (sdt_query::have_kprobe): Removed function.
  (sdt_query::handle_probe_entry): Removed kprobe1_type support.
  (sdt_query::iterate_over_probe_entries): Removed have_kprobe() code.
  (sdt_query::convert_probe): Ditto.
  (sdt_query::convert_location): Ditto.

12 years agoUpdate AUTHORS, with a few canonicalized in .mailmap
Josh Stone [Wed, 2 May 2012 18:24:56 +0000 (11:24 -0700)]
Update AUTHORS, with a few canonicalized in .mailmap

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