]> sourceware.org Git - systemtap.git/log
systemtap.git
14 years agoDefine empty function for tcpmib test
Wenji Huang [Mon, 8 Feb 2010 02:53:21 +0000 (10:53 +0800)]
Define empty function for tcpmib test

14 years agoFix test case tcpmib-all-probes.stp
Wenji Huang [Mon, 8 Feb 2010 01:53:34 +0000 (09:53 +0800)]
Fix test case tcpmib-all-probes.stp

14 years agoundocumented, obfuscated, *evil* option to suppress -Werror during module building
Przemysław Pawełczyk [Sun, 7 Feb 2010 01:24:06 +0000 (20:24 -0500)]
undocumented, obfuscated, *evil* option to suppress -Werror during module building

* session.h (omit_werror): New flag.
* buildrun.cxx (compile_pass): Use it.
* main.cxx (main): Set it.

14 years agoAdded backports required for 2.6.18 kernel for RHEL 5.
David J. Wilder [Fri, 5 Feb 2010 23:59:06 +0000 (15:59 -0800)]
Added backports required for 2.6.18 kernel for RHEL 5.
Files changed:
tapset/ipmib.stp, tapset.tcpmib.stp, testsuite/systemtap.examples/network/tcpipstat.stp,  testsuite/systemtap.examples/network/tcp_trace.stp

Signed-of-by: David Wilder <dwilder@us.ibm.com>
14 years agoUse SYSTEMTAP_INCLUDES for systemtap.apps tests.
Stan Cox [Fri, 5 Feb 2010 22:25:39 +0000 (17:25 -0500)]
Use SYSTEMTAP_INCLUDES for systemtap.apps tests.

* mysql.exp: Use SYSTEM_INCLUDES.
* postgres.exp: Likewise.

14 years agoPR11256: harden --unprivileged mode
Frank Ch. Eigler [Fri, 5 Feb 2010 21:55:22 +0000 (16:55 -0500)]
PR11256: harden --unprivileged mode

* tapsets-mark.cxx, tapsets.cxx: Don't even publish probe point families that are
  inappropriate for use in --unprivileged mode.
  (dwarf_derived_probe_*unprivileged*): Remove, to default to blanket no-permission
  rather than emit_process_owner_permission mode.
* testsuite/semko/fortyeight.stp: New test.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Fri, 5 Feb 2010 19:53:06 +0000 (14:53 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoRefer to the home directory of the 'stap-server' user as ~stap-server.
Dave Brolley [Fri, 5 Feb 2010 19:14:53 +0000 (14:14 -0500)]
Refer to the home directory of the 'stap-server' user as ~stap-server.

14 years agoexcise obsolete description of process-capabilities usage in staprun
Frank Ch. Eigler [Fri, 5 Feb 2010 18:29:53 +0000 (13:29 -0500)]
excise obsolete description of process-capabilities usage in staprun

14 years agopfiles.stp sample: begin tcp option dumping
Frank Ch. Eigler [Fri, 5 Feb 2010 16:30:55 +0000 (11:30 -0500)]
pfiles.stp sample: begin tcp option dumping

14 years agoPR11234: Rewrite __get_argv without embedded-C
Josh Stone [Fri, 5 Feb 2010 01:47:31 +0000 (17:47 -0800)]
PR11234: Rewrite __get_argv without embedded-C

We now implement __get_argv's string building in pure stap script.
Also, every argument is now quoted, which is different than before, but
it's much more robust about handling special characters.

14 years agoRevert "PR11234: Ensure __get_argv doesn't overflow"
Josh Stone [Fri, 5 Feb 2010 01:44:59 +0000 (17:44 -0800)]
Revert "PR11234: Ensure __get_argv doesn't overflow"

This reverts commit f75409719f120a3dbee66d761cf23a64092d1414.

14 years agoRegenerate autotools files
Josh Stone [Thu, 4 Feb 2010 20:35:56 +0000 (12:35 -0800)]
Regenerate autotools files

14 years agoDo not check stuff required by server if disabled.
Przemyslaw Pawelczyk [Thu, 4 Feb 2010 13:03:22 +0000 (14:03 +0100)]
Do not check stuff required by server if disabled.

Building systemtap package using dpkg-buildpackage under scratchbox
yields following error during configure:

checking for /usr/include/nss3... configure: error: cannot check for
file existence when cross compiling

even if --disable-server is provided. Fix it.

* configure.ac: Check for server-related stuff iff enable_server != no.

14 years agonew sample: pfiles
Eugene Teo [Thu, 4 Feb 2010 18:42:24 +0000 (13:42 -0500)]
new sample: pfiles

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Thu, 4 Feb 2010 16:31:47 +0000 (11:31 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoFixed PR 11078. Changed code to avoided procfs race condition.
David Smith [Wed, 3 Feb 2010 17:56:58 +0000 (11:56 -0600)]
Fixed PR 11078.  Changed code to avoided procfs race condition.

* runtime/procfs.c: Allow STP_MAX_PROCFS_FILES define to be overridden.
  (_stp_create_procfs): Calls proc_create() instead of create_proc_entry()
  to avoid a race condition.
* runtime/procfs-probes.c: New file containing procfs probe support
  routines.
* tapset-procfs.cxx (procfs_derived_probe::join_group): Update struct
  _stp_procfs_data definition.
  (procfs_derived_probe::emit_module_decls): Include procfs-probes.c,
  which is where the definition of struct stap_procfs_probe exists.
  Update generated routines to read/write procfs data.
  (procfs_derived_probe_group::emit_module_init): Pass file_operations
  argument to _stp_create_procfs().  Initialize mutex.
  (procfs_var_expanding_visitor::visit_target_symbol): Update generated
  code.

14 years agoPR9931: generate log to help diagnosing occasional cache hash collisions
Wenji Huang [Wed, 3 Feb 2010 02:21:24 +0000 (10:21 +0800)]
PR9931: generate log to help diagnosing occasional cache hash collisions

Ideas from Frank Ch. Eigler:
- extending the hash.add() function to pass names along with the
  hash-mix values, so that class hash can internally track the
  hash-report string
- storing the reports themselves in the cache, beside the .ko / .c
  files, and changing the cache-size-limit logic to delete
  these .txt files upon garbage collection

* hash.h : New member parm_stream.
* hash.cxx (get_parms): New function to convert parms stream to string.
  (hash::add): Aggregrate parms stream.
  (create_hash_log): New function to log hash operation.
  (find_*_hash): Log hash at the end of function.
* cache.cxx (clean_cache): Remove log when cache reaches limitation.

14 years agoFix procfs_write.exp so that it will pass under RHELl5.
David Smith [Tue, 2 Feb 2010 22:14:39 +0000 (16:14 -0600)]
Fix procfs_write.exp so that it will pass under RHELl5.

* testsuite/systemtap.base/procfs_write.exp: Small changes for RHEL5
  support.
* testsuite/lib/stap_run.exp (stap_run): Increase maximum number of
  characters to match against.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
William Cohen [Tue, 2 Feb 2010 19:54:24 +0000 (14:54 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoAdd nfs_func_log example.
William Cohen [Tue, 2 Feb 2010 19:53:20 +0000 (14:53 -0500)]
Add nfs_func_log example.

14 years agoAdd nfs_func_users example.
William Cohen [Tue, 2 Feb 2010 19:32:38 +0000 (14:32 -0500)]
Add nfs_func_users example.

14 years agoAdd iodevstats.stp example
William Cohen [Tue, 2 Feb 2010 19:19:02 +0000 (14:19 -0500)]
Add iodevstats.stp example

14 years agoCompile server logging and robustness.
Dave Brolley [Tue, 2 Feb 2010 19:08:31 +0000 (14:08 -0500)]
Compile server logging and robustness.

Log certificate location and status when starting server.
Additional care in handling arguments in stap-serverd.
New test case discovered by fuzzing added and fixed.

14 years agorhbz 560890: preserve -L/-l variable ordering
Nobuhiro Tachino [Tue, 2 Feb 2010 17:19:18 +0000 (12:19 -0500)]
rhbz 560890: preserve -L/-l variable ordering

Switch to list<string> from set<string> for collecting
available $var lists.  Use O(N**2) list-uniqueifier
that preserves initial ordering.

14 years agoSupport building against elfutils < 0.142 again.
Mark Wielaard [Tue, 2 Feb 2010 15:27:47 +0000 (16:27 +0100)]
Support building against elfutils < 0.142 again.

* dwflpp.cxx (get_cfa_ops): Guard new cfi related code and variables.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 2 Feb 2010 13:28:16 +0000 (08:28 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoPR 11105: Remaining client-side problems:
Dave Brolley [Tue, 2 Feb 2010 13:26:01 +0000 (08:26 -0500)]
PR 11105: Remaining client-side problems:

stap-client: Correct handling of embedded newlines in arguments.
server_args.exp: Add additional cases discovered by fche and by fuzzing.

14 years agobuildok test doesn't need /usr/bin/env
Mark Wielaard [Tue, 2 Feb 2010 13:17:44 +0000 (14:17 +0100)]
buildok test doesn't need /usr/bin/env

* testsuite/buildok/hwbkpt.stp: Just use stap directly after #!.

14 years agoMake sure cfa_ops are always retrieved through dwfl global address.
Mark Wielaard [Tue, 2 Feb 2010 12:47:19 +0000 (13:47 +0100)]
Make sure cfa_ops are always retrieved through dwfl global address.

dwflpp::translate_location() works on the dw address space, but
get_cfa_ops() starts out with dwfl calls (only dwarf_cfi_addrframe()
needs to be adjusted for bias).

* dwflpp.cxx (translate_location): Pass pc plus module bias through to
  get_cfa_ops.
  (get_cfa_ops): Adjust for bias when calling dwarf_cfi_addrframe(),
  add frame start/end address when found if verbose logging.
* testsuite/systemtap.exelib/lib.stp: Add $foo and $bar variables to
  process.function probes.
* testsuite/systemtap.exelib/libmarkunamestack.stp: Likewise.
* testsuite/systemtap.exelib/lib.tcl: Expect correct values for
  process.function probe variables.
* testsuite/systemtap.exelib/libmarkunamestack.tcl: Likewise.

14 years agoRemove unused variable argstream
Wenji Huang [Tue, 2 Feb 2010 02:58:03 +0000 (10:58 +0800)]
Remove unused variable argstream

14 years agoregen sample indexes
Frank Ch. Eigler [Mon, 1 Feb 2010 20:39:44 +0000 (15:39 -0500)]
regen sample indexes

14 years agonew sample for sandeen@redhat.com: fntimes.stp
Frank Ch. Eigler [Mon, 1 Feb 2010 20:39:01 +0000 (15:39 -0500)]
new sample for sandeen@redhat.com: fntimes.stp

14 years agoFix a incorrect UNKNOWN VALUE message creation in _sock_type_str function
Petr Muller [Mon, 1 Feb 2010 17:19:58 +0000 (18:19 +0100)]
Fix a incorrect UNKNOWN VALUE message creation in _sock_type_str function

14 years agoMake hwbkpt.stp compitable with old kernel and exectuable
Wenji Huang [Mon, 1 Feb 2010 07:18:25 +0000 (15:18 +0800)]
Make hwbkpt.stp compitable with old kernel and exectuable

* testsuite/buildok/hwbkpt.stp: Switch by CONFIG_* and be
  executable.

14 years agoFix uninitialization error on gcc 4.1.x
Wenji Huang [Mon, 1 Feb 2010 02:31:37 +0000 (10:31 +0800)]
Fix uninitialization error on gcc 4.1.x

* testsuite/systemtap.base/overflow-get_argv.stp: Initialize var.

14 years agoHardware Breakpoints for x86 / x86_64, based on mainline kernel. [Changes : Part 2]
Prerna Saxena [Fri, 29 Jan 2010 08:00:42 +0000 (13:30 +0530)]
Hardware Breakpoints for x86 / x86_64, based on mainline kernel. [Changes : Part 2]

14 years agoHardware Breakpoints for x86 / x86_64, based on mainline kernel
Prerna Saxena [Fri, 29 Jan 2010 06:32:26 +0000 (12:02 +0530)]
Hardware Breakpoints for x86 / x86_64, based on mainline kernel

14 years agoPR11234: Ensure __get_argv doesn't overflow
Josh Stone [Fri, 29 Jan 2010 05:00:58 +0000 (21:00 -0800)]
PR11234: Ensure __get_argv doesn't overflow

That function was calling strlcpy as if the return value was the number
of bytes copied, but strlcpy actually returns the length of the input
string.  We now use min() to handle the case when it's bigger than the
buffer length, and drop out of the loop when that happens.

14 years agoPR11197, blurbify
Frank Ch. Eigler [Thu, 28 Jan 2010 16:33:41 +0000 (11:33 -0500)]
PR11197, blurbify

14 years agoPR6954: make ++/-- operation trigger automatic global printing
Wenji Huang [Thu, 28 Jan 2010 06:16:43 +0000 (14:16 +0800)]
PR6954: make ++/-- operation trigger automatic global printing

* staptree.cxx (varuse_collecting_visitor::visit_arrayindex):
  Regard operations as pure writes.
* testsuite/systemtap.base/global_end.exp: Add test case.
* testsuite/systemtap.base/global_end.stp: Ditto.

14 years agoPR11197: prevent startup of stap-server as root
Frank Ch. Eigler [Thu, 28 Jan 2010 03:10:56 +0000 (22:10 -0500)]
PR11197: prevent startup of stap-server as root

* stap-serverd: Block startup if whoami=root, unless magic
  environment variable is set.
* testsuite/lib/systemtap.exp: Set magic environment variable to
  override protection.

14 years agoFix PC arithmetic for CFI in loc2c-test.
Roland McGrath [Tue, 26 Jan 2010 20:37:57 +0000 (12:37 -0800)]
Fix PC arithmetic for CFI in loc2c-test.

* loc2c-test.c (main): Correctly bias PC passed to dwarf_cfi_addrframe.

14 years agoFixed PR 11223 by null terminating strings in procfs write probes.
David Smith [Tue, 26 Jan 2010 19:40:51 +0000 (13:40 -0600)]
Fixed PR 11223 by null terminating strings in procfs write probes.

* tapset-procfs.cxx (procfs_var_expanding_visitor::visit_target_symbol):
  Correctly null terminate strings in procfs write probes.
* testsuite/systemtap.base/procfs_write.exp: New test.

14 years agoFixed PR 11220 by setting MAP_STRING_LENGTH to MAXSTRINGLEN.
David Smith [Mon, 25 Jan 2010 21:04:55 +0000 (15:04 -0600)]
Fixed PR 11220 by setting MAP_STRING_LENGTH to MAXSTRINGLEN.

* runtime/map.h: Set MAP_STRING_LENGTH to MAXSTRINGLEN so that large
  strings can be stored in arrays.
* testsuite/systemtap.base/array_string.exp: New testcase.

14 years agoFix typos in several text files
Wenji Huang [Fri, 22 Jan 2010 07:56:51 +0000 (15:56 +0800)]
Fix typos in several text files

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Thu, 21 Jan 2010 16:46:30 +0000 (11:46 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoPR 11201: From Eugeniy Meshcheryakov (eugen@debian.org):
Dave Brolley [Thu, 21 Jan 2010 16:43:16 +0000 (11:43 -0500)]
PR 11201: From Eugeniy Meshcheryakov (eugen@debian.org):

Remove $(pkglibexec_SCRIPTS) from CLEANFILES.

14 years agoRun autoreconf
Eugeniy Meshcheryakov [Thu, 21 Jan 2010 13:54:32 +0000 (14:54 +0100)]
Run autoreconf

14 years agoUse html-nochunks output instead of txt to test for stringparam support in xmlto
Eugeniy Meshcheryakov [Thu, 21 Jan 2010 13:52:09 +0000 (14:52 +0100)]
Use html-nochunks output instead of txt to test for stringparam support in xmlto

txt output requires additional build dependencies (w3m or similar
browser).

14 years agoAdd shebangs
Eugeniy Meshcheryakov [Thu, 21 Jan 2010 10:22:46 +0000 (11:22 +0100)]
Add shebangs

14 years agouse eh_frame_hdr table to speed up unwinding
Tim Moore [Wed, 20 Jan 2010 17:05:26 +0000 (18:05 +0100)]
use eh_frame_hdr table to speed up unwinding

* runtime/sym.h (_stp_module): add unwind_hdr_addr member.
* runtime/unwind.c (read_ptr_sect): Modification of read_pointer that
  also handles offsets from text or "data" sections.
  (read_pointer): Use it.
  (_stp_search_unwind_hdr): Use read_ptr_sect to calculate values that
  are relative to the .eh_frame_hdr section.
  (unwind_frame): Search the frame header if this is an eh frame.
* translate.cxx (get_unwind_data): Get the eh_frame_hdr too.
  (dump_unwindsyms): Write out eh_frame_hdr stuff.

14 years agoAdd dtrace.1 man page.
Stan Cox [Wed, 20 Jan 2010 16:25:19 +0000 (11:25 -0500)]
Add dtrace.1 man page.

* dtrace.1:  New file.
* Makefile.am (man_MANS):  Add dtrace.1
* Makefile.in: Regenerate.
* configure.ac (AC_CONFIG_FILES):  Add dtrace.1
* configure: Regenerate.

14 years agochmod +x testsuite/parseko/conditional.stp
Josh Stone [Wed, 20 Jan 2010 01:04:15 +0000 (17:04 -0800)]
chmod +x testsuite/parseko/conditional.stp

14 years agoPR11195: Prevent all nested argument substitution
Josh Stone [Tue, 19 Jan 2010 23:36:35 +0000 (15:36 -0800)]
PR11195: Prevent all nested argument substitution

Our existing protection only made sure that the first token in a
substitution wasn't a nested substitution.  That's not sufficient when
there could be multiple tokens involved.  This patch makes sure that no
nested tokens are ever allowed to be argument substitutions.

This also adds a cursor_suspended_line/column and resets the main
cursor_line/column to the beginning of the substitution, so errors will
point a little closer to the right place.

14 years agosecurity: list some prudent security practices for stap-server
Frank Ch. Eigler [Tue, 19 Jan 2010 22:19:12 +0000 (17:19 -0500)]
security: list some prudent security practices for stap-server

14 years agoSwap DW_OP_shr and DW_OP_shra.
Roland McGrath [Tue, 19 Jan 2010 20:44:05 +0000 (12:44 -0800)]
Swap DW_OP_shr and DW_OP_shra.

* loc2c.c (translate): DW_OP_shr is unsigned, DW_OP_shra is signed.

14 years agoUse signed division for DW_OP_div.
Roland McGrath [Tue, 19 Jan 2010 20:38:31 +0000 (12:38 -0800)]
Use signed division for DW_OP_div.

* loc2c.c (translate): Use signed division for DW_OP_div.

14 years agoFix the listing mode of process.library.mark
Josh Stone [Mon, 18 Jan 2010 22:36:47 +0000 (14:36 -0800)]
Fix the listing mode of process.library.mark

Our hack for producing nicer listing modes was to write the mark name in
component index 1.  That's fine for process.mark, but writes the wrong
position for process.library.mark.  It now munges the last probe
component of any number of indexes.

(A better fix is due in PR10831, preserving the derivation chain.)

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Mon, 18 Jan 2010 19:19:46 +0000 (14:19 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoCorrect client-side quoting issues discovered by fche during the server-side reimplem...
Dave Brolley [Mon, 18 Jan 2010 16:56:13 +0000 (11:56 -0500)]
Correct client-side quoting issues discovered by fche during the server-side reimplementation.

Also add the test cases to the test suite.

14 years agoPR11173 Markers get a bad address in prelinked libraries.
Mark Wielaard [Mon, 18 Jan 2010 08:13:30 +0000 (09:13 +0100)]
PR11173 Markers get a bad address in prelinked libraries.

Our literal_addr_to_sym_addr() function was just wrong. To compensate for
raw addresses read from elf (either given by the user or through a mark
transformation) we need to know what the elf_bias is (as returned by
dwfl_module_getelf) before feeding them to any libdwfl functions.

* tapsets.cxx (query_module_dwarf): Always add elf_bias to raw function or
  statement addresses before calling query_addr().
  (query_addr): Don't call literal_addr_to_sym_addr().
* dwflpp.h (literal_addr_to_sym_addr): Removed.
* dwflpp.cxx (literal_addr_to_sym_addr): Likewise.

14 years agoPR11105: forget about packaging stap-server-request
Frank Ch. Eigler [Fri, 15 Jan 2010 21:25:16 +0000 (16:25 -0500)]
PR11105: forget about packaging stap-server-request

14 years agoRelax sdt address check for attach to running process case.
Stan Cox [Fri, 15 Jan 2010 20:06:35 +0000 (15:06 -0500)]
Relax sdt address check for attach to running process case.

* uprobes-common.c (stap_uprobe_change_plus): Relax VM_EXEC check.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Fri, 15 Jan 2010 17:38:47 +0000 (12:38 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoPR11105: support default unset --prefix release-1.1
Frank Ch. Eigler [Fri, 15 Jan 2010 17:34:39 +0000 (12:34 -0500)]
PR11105: support default unset --prefix

* configure.ac (STAP_PREFIX): Map NONE -> /usr/local.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Fri, 15 Jan 2010 15:57:08 +0000 (10:57 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

Conflicts:

stap-client

14 years agoPackage command line arguments in separate files.
Dave Brolley [Fri, 15 Jan 2010 15:52:11 +0000 (10:52 -0500)]
Package command line arguments in separate files.

14 years agoPR11105: remove extraneous \n from localized foo.stp script file name
Frank Ch. Eigler [Fri, 15 Jan 2010 08:27:34 +0000 (03:27 -0500)]
PR11105: remove extraneous \n from localized foo.stp script file name

14 years agotestsuite: fix wording of invalid-entry test group
Frank Ch. Eigler [Fri, 15 Jan 2010 08:12:53 +0000 (03:12 -0500)]
testsuite: fix wording of invalid-entry test group

14 years agoPR11105: Remove stap-server-request shell script.
Frank Ch. Eigler [Fri, 15 Jan 2010 08:11:18 +0000 (03:11 -0500)]
PR11105: Remove stap-server-request shell script.

* Makefile.am: Don't install it any more.

14 years agoPR11105: robustify stap-server
Frank Ch. Eigler [Fri, 15 Jan 2010 08:06:52 +0000 (03:06 -0500)]
PR11105: robustify stap-server

* main.cxx (main): Always downgrade client-provided -p5 to -p4.
* stap-client (unpack_response): Sanitize stdout due to same.
* stap-server-connect.c: Eliminate a bunch of globals.
  (handle_connection): Make things locals instead.  Base tmp files
  on $TMPDIR.
  (spawn_and_wait): New helper function.
  (handleRequest): New monster function to inline rest of old
  stap-server-request.

14 years agoserver: log controlling pid
Frank Ch. Eigler [Fri, 15 Jan 2010 08:05:38 +0000 (03:05 -0500)]
server: log controlling pid

* stap-serverd (initialization): Log startup pid.

14 years agoruntime: better staprun diagnostics for failed signature tests
Frank Ch. Eigler [Fri, 15 Jan 2010 08:04:18 +0000 (03:04 -0500)]
runtime: better staprun diagnostics for failed signature tests

* modverify.c (verify_module): Print some messages for verbose > 1.

14 years agoPR11105: stap-client wire protocol change
Dave Brolley [Fri, 15 Jan 2010 05:47:32 +0000 (00:47 -0500)]
PR11105: stap-client wire protocol change

14 years agoImprove stack printing format
Wenji Huang [Fri, 15 Jan 2010 06:00:49 +0000 (14:00 +0800)]
Improve stack printing format

* runtime/stack.c (_stp_stack_print_tsk): Use _stp_symbol_print.

14 years agoPR11151: Recover stap_uprobes slots on process exit
Josh Stone [Fri, 15 Jan 2010 00:40:45 +0000 (16:40 -0800)]
PR11151: Recover stap_uprobes slots on process exit

When a process exits, it won't necessarily bother to munmap all of its
shared libraries.  This patch makes sure that with uprobes in libraries,
we still grab an exit notification and clear everything out.

* runtime/uprobes-common.c (stap_uprobe_process_munmap): New.
* tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): Use above
  callback so that we can recover our resources on process exit.

14 years agoAllow / as a random argyment character when fuzzing.
Dave Brolley [Thu, 14 Jan 2010 20:44:09 +0000 (15:44 -0500)]
Allow / as a random argyment character when fuzzing.

14 years agoPR10467 cont'd: be tolerant of bad line numbers
Josh Stone [Thu, 14 Jan 2010 19:22:23 +0000 (11:22 -0800)]
PR10467 cont'd: be tolerant of bad line numbers

If a line number is invalid for a source file, that should not be a
fatal error, as it may still be valid for some other matching source
file.

* dwflpp.cxx (dwflpp::iterate_over_srcfile_lines): Don't assert that the
  line must be found, just break out quietly.

14 years agoFixed rawhide syscall testsuite problem.
David Smith [Thu, 14 Jan 2010 17:08:14 +0000 (11:08 -0600)]
Fixed rawhide syscall testsuite problem.

* testsuite/systemtap.syscall/net1.c (main): The 'bzero()' function has
  been deprecated on rawhide.  Replaced with 'memset()'.

14 years agoUse gnu indentation style.
Stan Cox [Thu, 14 Jan 2010 15:50:55 +0000 (10:50 -0500)]
Use gnu indentation style.

14 years agoFix rawhide compile problem.
David Smith [Thu, 14 Jan 2010 15:39:36 +0000 (09:39 -0600)]
Fix rawhide compile problem.

* main.cxx (getmemusage): On rawhide systems, 'getpagesize()' has been
  deprecated.  Substitute 'sysconf(_SC_PAGESIZE)'.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
William Cohen [Thu, 14 Jan 2010 04:23:26 +0000 (23:23 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoUse __access_process_vm_noflush for static user semaphore decrement.
Stan Cox [Thu, 14 Jan 2010 03:26:10 +0000 (22:26 -0500)]
Use __access_process_vm_noflush for static user semaphore decrement.

* access_process_vm (__access_process_vm_noflush): New
* tapsets.cxx (uprobe_derived_probe_group::emit_module_exit):  Use it.
* translate.cxx (translate_pass):  Declare it.

14 years agobuild fix: rhbz55060: stdlib.h vs sys/wait.h __WAIT_STATUS conflicts
Frank Ch. Eigler [Wed, 13 Jan 2010 21:35:48 +0000 (16:35 -0500)]
build fix: rhbz55060: stdlib.h vs sys/wait.h __WAIT_STATUS conflicts

14 years agoPR 11167 fixed by adding compat_sys_sigaction to the syscall.sigaction32 probe.
David Smith [Wed, 13 Jan 2010 20:13:15 +0000 (14:13 -0600)]
PR 11167 fixed by adding compat_sys_sigaction to the syscall.sigaction32 probe.

* tapset/syscalls2.stp (syscall.sigaction32): Added
  kernel.function("compat_sys_sigaction").
  (syscall.sigaction32.return): Ditto.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Wed, 13 Jan 2010 20:09:10 +0000 (15:09 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoTest newline characters as part of fuzzing argument strings.
Dave Brolley [Wed, 13 Jan 2010 20:07:52 +0000 (15:07 -0500)]
Test newline characters as part of fuzzing argument strings.

14 years agoMove userspace probing boiler plate code in translator to runtime library.
William Cohen [Wed, 13 Jan 2010 18:54:26 +0000 (13:54 -0500)]
Move userspace probing boiler plate code in translator to runtime library.

14 years agoMerge remote branch 'origin/master'
Tim Moore [Wed, 13 Jan 2010 18:38:47 +0000 (19:38 +0100)]
Merge remote branch 'origin/master'

14 years agomap through uretprobe trampoline in an arbitrary task
Tim Moore [Wed, 13 Jan 2010 18:37:51 +0000 (19:37 +0100)]
map through uretprobe trampoline in an arbitrary task

* runtime/uprobes2/uprobes.c (uprobe_get_pc_task): new function
  (lookup_uretprobe): new helper function
  (uprobe_get_pc): use it
* runtime/uprobes2/uprobes.h (uprobe_get_pc_task): declare
* runtime/uprobes/uprobes.c : ditto
* runtime/uprobes/uprobes.h : ditto

14 years agoFix PR11160 by handling ppc syscall.sigaction32 correctly.
David Smith [Wed, 13 Jan 2010 15:30:12 +0000 (09:30 -0600)]
Fix PR11160 by handling ppc syscall.sigaction32 correctly.

* tapset/aux_syscalls.stp (_struct_old_sigaction32_u): New function.
* tapset/syscalls2.stp (syscall.sigaction32): Uses new
  _struct_old_sigaction32() function to provide a human readable version
  of the sigaction argument.
* testsuite/systemtap.syscall/test.tcl (run_one_test): Use additional C
  flags when pre-processing test files to better determine which tests are
  valid on which platforms.

14 years agoRemoved bogus task_finder error message.
David Smith [Wed, 13 Jan 2010 14:51:42 +0000 (08:51 -0600)]
Removed bogus task_finder error message.

* runtime/task_finder.c (__stp_utrace_attach): No longer prints bogus
  error message when utrace_barrier succeeds.

14 years agoFaulty conditionals are parse errors, not semantical errors.
Mark Wielaard [Wed, 13 Jan 2010 14:11:58 +0000 (15:11 +0100)]
Faulty conditionals are parse errors, not semantical errors.

The test was correct, the given construct should fail. But it fails because
it is a parse error, not because it is a semantical error. So move into the
right pass1-4 sub-directory.

* testsuite/semko/conditional.stp: Moved to...
* testsuite/parseko/conditional.stp: ... here.

14 years agoPR10493: autoconf for cpu_khz
Wenji Huang [Wed, 13 Jan 2010 03:27:48 +0000 (11:27 +0800)]
PR10493: autoconf for cpu_khz

* buildrun.cxx (output_cpu_khz): New function to check cpu_khz.
  (compile_pass): Invoke function output_cpu_khz.
* runtime/time.c : Use STAPCONF_CPU_KHZ.

14 years agoFixed PR 11163 so that syscall.readv/syscall.writev puts fd in argstr for ppc.
David Smith [Tue, 12 Jan 2010 22:48:33 +0000 (16:48 -0600)]
Fixed PR 11163 so that syscall.readv/syscall.writev puts fd in argstr for ppc.

* tapset/syscalls2.stp (syscall.readv): Removed old ppc hack.
  (syscall.writev): Ditto.
* tapset/nd_syscalls2.stp (nd_syscall.readv): Removed mention of old ppc
  hack.
  (nd_syscall.writev): Ditto.

14 years agoAdd attach to live process tests.
Stan Cox [Tue, 12 Jan 2010 20:09:55 +0000 (15:09 -0500)]
Add attach to live process tests.

* sdt_misc.exp (sdt_misc.c):  New funcs loop_check, int_handler, alrm_handler.
(sdt_misc.sdt):  Add timer.ms
(test attach to a running process):  New.
(test attach to a running process with .so markers):  New.

14 years agoFixed PR 11162 by removing extra 'buf_uaddr' assignment.
David Smith [Tue, 12 Jan 2010 19:57:34 +0000 (13:57 -0600)]
Fixed PR 11162 by removing extra 'buf_uaddr' assignment.

* tapset/syscalls2.stp (syscall.pwrite32): Remove extra 'buf_uaddr'
  assignment.

14 years agotweak stap argument checking
Frank Ch. Eigler [Tue, 12 Jan 2010 19:12:04 +0000 (14:12 -0500)]
tweak stap argument checking

* main.cxx (checkOptions): Inline into main(), abeam other option checks.

14 years agonew sample script: overcommit failure monitor
Frank Ch. Eigler [Tue, 12 Jan 2010 16:49:48 +0000 (11:49 -0500)]
new sample script: overcommit failure monitor

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