]> sourceware.org Git - systemtap.git/log
systemtap.git
14 years agoCheck in regenerated systemtap example indexes.
Mark Wielaard [Wed, 18 Nov 2009 13:28:25 +0000 (14:28 +0100)]
Check in regenerated systemtap example indexes.

14 years agoClean up examples
Wenji Huang [Wed, 18 Nov 2009 09:59:24 +0000 (17:59 +0800)]
Clean up examples

14 years agoTest cross-CU type discovery
Josh Stone [Wed, 18 Nov 2009 02:59:47 +0000 (18:59 -0800)]
Test cross-CU type discovery

Check that we can dereference a type declaration that is
defined in a separate CU from the function.

14 years agoMake interrupts-by-dev.stp executable
Wenji Huang [Wed, 18 Nov 2009 02:47:33 +0000 (10:47 +0800)]
Make interrupts-by-dev.stp executable

14 years agoPR4037: 32-bit staprun vs. 64-bit kernels just works (tm)
Frank Ch. Eigler [Wed, 18 Nov 2009 01:11:12 +0000 (20:11 -0500)]
PR4037: 32-bit staprun vs. 64-bit kernels just works (tm)

* configure.ac (PROCFLAGS): Don't define it.
* Makefile.am: Don't use it.

14 years agoDocument is_return(), module_name() and stp_pid() context tapset functions.
Mark Wielaard [Tue, 17 Nov 2009 22:41:31 +0000 (23:41 +0100)]
Document is_return(), module_name() and stp_pid() context tapset functions.

14 years agoWith tapset/aux_syscalls.stp fixes, test twentyseven.stp is not kfail.
David Smith [Tue, 17 Nov 2009 21:40:59 +0000 (15:40 -0600)]
With tapset/aux_syscalls.stp fixes, test twentyseven.stp is not kfail.
* testsuite/systemtap.pass1-4/buildok.exp: Test twentyseven.stp should
  pass now.

14 years agoSearch other CUs of the module when resolving declarations.
Mark Wielaard [Tue, 17 Nov 2009 21:20:32 +0000 (22:20 +0100)]
Search other CUs of the module when resolving declarations.

* dwflpp.h (declaration_resolve_other_cus): New method.
  (iterate_over_globals): Mark as static and takes a CU to iterate over.
  (global_alias_caching_callback_cus): New method.
* dwflpp.cxx (global_alias_caching_callback_cus): New method.
  (declaration_resolve_other_cus): New method.
  (declaration_resolve): Call iterate_over_globals() with current cu.
  Call declaration_resolve_other_cus() when name not found.
  (iterate_over_globals): Takes cu_die to iterate over as argument.

14 years agoFixed aux_syscalls.stp for RHEL4.
David Smith [Tue, 17 Nov 2009 19:50:03 +0000 (13:50 -0600)]
Fixed aux_syscalls.stp for RHEL4.
* tapset/aux_syscalls.stp: Only define entries for IRQF_* flags if they
  exist.

14 years agoPR 10974 fix. Fixed aux_syscalls.stp for RHEL5.
David Smith [Tue, 17 Nov 2009 18:52:35 +0000 (12:52 -0600)]
PR 10974 fix.  Fixed aux_syscalls.stp for RHEL5.
* tapset/aux_syscalls.stp: Only define entries for
  IRQF_NOBALANCING/IRQF_IRQPOLL if they exist.

14 years agoUse DW_AT_MIPS_linkage_name when available in vardie_from_symtable.
Mark Wielaard [Tue, 17 Nov 2009 15:11:28 +0000 (16:11 +0100)]
Use DW_AT_MIPS_linkage_name when available in vardie_from_symtable.

If there is a DW_AT_MIPS_linkage_name it encodes the actual name of
the variable as used in the symbol table.

* dwflpp.cpp (vardie_from_symtable): Check whether there is a
  DW_AT_MIPS_linkage_name attribute and use its value if so.

14 years agoRemove caching of emit_address for kernel modules and shared libraries.
Mark Wielaard [Tue, 17 Nov 2009 09:10:31 +0000 (10:10 +0100)]
Remove caching of emit_address for kernel modules and shared libraries.

Caching of the address is only safe for kernel addresses that can never
change. For kernel module or dynamic shared library addresses it isn't
safe to cache the address since they can be unloaded, reloaded or mapped
differently in separate executables.

* dwflpp.cxx (emit_address): Remove static from addr definition for
  kernel and dynamic modules.

14 years agoExplain "cheat" comment in sym.c (_stp_tf_mmap_cb).
Mark Wielaard [Tue, 17 Nov 2009 08:24:41 +0000 (09:24 +0100)]
Explain "cheat" comment in sym.c (_stp_tf_mmap_cb).

We are abusing the "first" section address here to indicate where the
module (actually first segment) is loaded (which is why we are ignoring
the offset). It would be good to redesign the stp_module/stp_section
data structures to better align with the actual memory mappings we are
interested in (especially the "section" naming is slightly confusing
since what we really seem to mean are elf segments (which can contain
multiple elf sections).

* runtime/sym.c (_stp_tf_mmap_cb): Add cheat comment.

14 years agoPR 5150 partial fixes. Added support for nfs_file_fsync.
David Smith [Mon, 16 Nov 2009 21:53:33 +0000 (15:53 -0600)]
PR 5150 partial fixes.  Added support for nfs_file_fsync.
* tapset/nfs.stp(nfs.fop.fsync): Added support for nfs_file_fsync.
  (nfs.fop.fsync.return): Ditto.
  (nfs.aop.readpages.return): Fixed 'size' bug.
  (nfs.aop.write_begin): Renamed to make 'nfs.*.*' probes work correctly.
  (nfs.aop.write_end): Ditto.
  (__nfs.aop.write_begin): Ditto.
  (__nfs.aop.write_end): Ditto.
  (__nfs.aop.prepare_write): Ditto.
  (__nfs.aop.commit_write): Ditto.
  (nfs.fop.aio_read.return): Always sets 'units'.
  (nfs.fop.aio_write.return): Ditto.
  (nfs.fop.sendfile.return): Ditto.

14 years agoAdd testcase for retrieving $global vars from execs and shared libs.
Mark Wielaard [Mon, 16 Nov 2009 20:41:13 +0000 (21:41 +0100)]
Add testcase for retrieving $global vars from execs and shared libs.

Explicit testcase for PR10010 and PR10622.

* testsuite/systemtap.base/externalvar.c: New file.
* testsuite/systemtap.base/externalvar.exp: New file.
* testsuite/systemtap.base/externalvar.stp: New file.
* testsuite/systemtap.base/externalvar_lib.c: New file.

14 years agoPR10010 Support $globals in shared libraries.
Mark Wielaard [Mon, 16 Nov 2009 20:34:00 +0000 (21:34 +0100)]
PR10010 Support $globals in shared libraries.

* dwflpp.cxx (dwflpp::emit_address): Enable task finder and emit a
  _stp_module_relocate for the ".dynamic" section when seeing a
  user-space dso address.
* runtime/sym.c (_stp_mod_sec_lookup): Remove .dynamic section addr cheat.
  (_stp_tf_mmap_cb): Add cheat here.

14 years agoAllow modules to trigger task_finder vma_tracker.
Mark Wielaard [Mon, 16 Nov 2009 19:59:16 +0000 (20:59 +0100)]
Allow modules to trigger task_finder vma_tracker.

* runtime/sym.h: Define _stp_need_vma_tracker.
* translate.cxx (emit_symbol_data_done): Output _stp_need_vma_tracker value.
  (c_unparser::emit_module_init): If STP_NEED_VMA_TRACKER isn't defined
  check _stp_need_vma_tracker to call _stp_sym_init().

14 years agoPR 5150 partial fix. Support nfs_write_begin()/nfs_write_end().
David Smith [Mon, 16 Nov 2009 18:58:46 +0000 (12:58 -0600)]
PR 5150 partial fix.  Support nfs_write_begin()/nfs_write_end().
* tapset/nfs.stp: Added support for nfs_write_begin()/nfs_write_end(),
  which replaced nfs_prepare_write()/nfs_commit_write().

14 years agoAdd documentation for ansi.stp tapset.
Mark Wielaard [Mon, 16 Nov 2009 10:56:38 +0000 (11:56 +0100)]
Add documentation for ansi.stp tapset.

* tapset/ansi.stp: Add documentation for every function.
* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add chapter on ansi.

14 years agoPR10622 Search for extern $variables in symbol table.
Mark Wielaard [Mon, 16 Nov 2009 09:02:50 +0000 (10:02 +0100)]
PR10622 Search for extern $variables in symbol table.

* dwflpp.h (vardie_from_symtable): New method.
* dwflpp.cxx (vardie_from_symtable): New method.
  (literal_stmt_for_local): Use vardie_from_symtable when no location
  attribute and DW_AT_external.
* testsuite/buildok/xtime.stp: New testcase from PR10622.

14 years agoDefine IRQF_ONESHOT for older kernels.
Mark Wielaard [Mon, 16 Nov 2009 09:33:20 +0000 (10:33 +0100)]
Define IRQF_ONESHOT for older kernels.

IRQF_ONESHOT was only introduced in 2.6.32. It doesn't hurt defining it
if it isn't already there. It will just never show up on older kernels.

* tapset/aux_syscalls.stp: Define IRQF_ONESHOT if not already defined.

14 years ago add definition of function irqflags_str()
Prerna Saxena [Mon, 16 Nov 2009 05:55:46 +0000 (11:25 +0530)]
 add definition of function irqflags_str()

14 years agoRegen indexes for interrupts-by-dev example
Josh Stone [Fri, 13 Nov 2009 23:21:06 +0000 (15:21 -0800)]
Regen indexes for interrupts-by-dev example

14 years agoDelete test commit file
Josh Stone [Fri, 13 Nov 2009 23:20:16 +0000 (15:20 -0800)]
Delete test commit file

14 years agoTurn ctime.stp documentation into proper Tapset Reference markup.
Mark Wielaard [Fri, 13 Nov 2009 13:42:17 +0000 (14:42 +0100)]
Turn ctime.stp documentation into proper Tapset Reference markup.

* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add chapter on ctime.stp.
* tapset/ctime.stp: Turn documentation into proper reference markup.

14 years agoAccept relative user module paths for -d.
Mark Wielaard [Fri, 13 Nov 2009 12:39:24 +0000 (13:39 +0100)]
Accept relative user module paths for -d.

When using relative (non-canonical) paths for user modules one would get
a confusing WARNING: missing unwind/symbol data for module 'bin/test'.
Also unless the path started with '/' the task_finder wouldn't start.
By checking that the given file can be made absolute (canonicalized)
both issues are resolved and the user module will be correctly identified
at both translation and runtime.

* main.cxx (main): case 'd' try canonicalize_file_name() the argument
  first to identify user modules.

14 years agoAdding a new .meta file to run interrupts-by-dev.stp in test
Prerna Saxena [Fri, 13 Nov 2009 10:25:26 +0000 (15:55 +0530)]
Adding a new .meta file to run interrupts-by-dev.stp in test

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Thu, 12 Nov 2009 19:29:09 +0000 (14:29 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoSign uprobes.ko with the builder's certificate.
Dave Brolley [Thu, 12 Nov 2009 18:50:09 +0000 (13:50 -0500)]
Sign uprobes.ko with the builder's certificate.
Delete ownership & permissions tests from modsign.cxx and stap-serverd.

14 years agoAdd documentation for conversions.stp tapset functions.
Mark Wielaard [Thu, 12 Nov 2009 16:25:26 +0000 (17:25 +0100)]
Add documentation for conversions.stp tapset functions.

* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Add conversions.stp chapter.
* tapset/conversions.stp: Add documentation for all functions.

14 years agoMark usymname as unprivileged.
Mark Wielaard [Thu, 12 Nov 2009 14:26:57 +0000 (15:26 +0100)]
Mark usymname as unprivileged.

* tapset/ucontext-symbols.stp (usymname): Add assert_is_myproc() and mark
  as unprivileged, just like usymdata().

14 years agoRelax restrictions on ownership and access permissions of signer's cert database.
Dave Brolley [Thu, 12 Nov 2009 15:23:59 +0000 (10:23 -0500)]
Relax restrictions on ownership and access permissions of signer's cert database.

14 years agoPR6979: fix loc2c handling of second and later pieces
Roland McGrath [Wed, 11 Nov 2009 20:14:30 +0000 (12:14 -0800)]
PR6979: fix loc2c handling of second and later pieces

* loc2c.c (translate): Reset stack state tracking after finishing each piece.

14 years agobuild: quiet down xmlto tests and runs
Frank Ch. Eigler [Wed, 11 Nov 2009 14:40:32 +0000 (09:40 -0500)]
build: quiet down xmlto tests and runs

* configure.ac (xmlto --stringparam check): Add >&/dev/null.
* doc/*/Makefile.am (xmlto runs): Ditto.

14 years agoA very simple patch that fix the networking tapset documentation.
Breno Leitao [Wed, 11 Nov 2009 13:24:41 +0000 (11:24 -0200)]
A very simple patch that fix the networking tapset documentation.

It references the file include/linux/if_ether.h as the one that contains
the protocol numbers and types.

14 years agoPR5916: Exploit kretprobe data storage area
Josh Stone [Wed, 11 Nov 2009 02:37:02 +0000 (18:37 -0800)]
PR5916: Exploit kretprobe data storage area

Since 2.6.25, kretprobes can carry a data packet to be filled in an
entry_handler.  This patch lets us store our implicitly-saved $target
variables in .return probes in that data area.

* tapset/kretprobe.stp: New get/set functions for kretprobe data.
* translate.cxx (c_unparser::emit_common_header): Add context->pi_longs.
* tapsets.cxx
  (dwarf_var_expanding_visitor::visit_target_symbol_saved_return): Switch
  between the old and new methods of saving $vars in .return probes.
  (dwarf_var_expanding_visitor::gen_mapped_saved_return): The old way.
  (dwarf_var_expanding_visitor::gen_kretprobe_saved_return): The new way.
  (dwarf_derived_probe::join_group): Don't register paired entry-handlers.
  (dwarf_derived_probe::dwarf_derived_probe): Remember saved-var details.
  (dwarf_derived_probe_group::emit_module_decls): Output saved-var details.
  Also split the kretprobe handler whether we're on entry or return.
  (dwarf_derived_probe_group::emit_module_init): Prepare the entry handler.
* testsuite/systemtap.base/kretprobe-vars.stp: Test implicit $var saving.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 10 Nov 2009 19:26:34 +0000 (14:26 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoUse 'module_realpath' instead of overwriting 'path' in insert_module.
Dave Brolley [Tue, 10 Nov 2009 19:25:03 +0000 (14:25 -0500)]
Use 'module_realpath' instead of overwriting 'path' in insert_module.
Update comments to clearly explain the security issues involved.

14 years agoPR10877: Fix coveragedb.cxx to account for new components/token structure
Charley Wang [Tue, 10 Nov 2009 19:04:57 +0000 (14:04 -0500)]
PR10877: Fix coveragedb.cxx to account for new components/token structure

14 years agoPR10927: undocument nonexistent do/while construct
Frank Ch. Eigler [Tue, 10 Nov 2009 18:11:10 +0000 (13:11 -0500)]
PR10927: undocument nonexistent do/while construct

14 years agoPR10877: Give token* to each component instead of each probe_point
Charley Wang [Tue, 10 Nov 2009 17:22:18 +0000 (12:22 -0500)]
PR10877: Give token* to each component instead of each probe_point

14 years agoReplace the use of the global variable 'modpath' in diagnostic
Dave Brolley [Tue, 10 Nov 2009 17:12:54 +0000 (12:12 -0500)]
Replace the use of the global variable 'modpath' in diagnostic
messages within verify_it with the use of a 'module_name'
parameter passed in.

Add a comment in insert_module explaining why it's ok to
overwrite the 'path' parameter with the canonicalized path.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 10 Nov 2009 15:45:29 +0000 (10:45 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoAdd blank lines for formatting stapprobes.irq
Josh Stone [Tue, 10 Nov 2009 10:36:56 +0000 (02:36 -0800)]
Add blank lines for formatting stapprobes.irq

The line spacing is significant to the way the output is rendered.

14 years agoFix stapprobes.irq title and add to install list
Josh Stone [Tue, 10 Nov 2009 10:29:22 +0000 (02:29 -0800)]
Fix stapprobes.irq title and add to install list

(And incidentally re-enable quiet builds at the same time...)

14 years agoOnly .3stap.in files should be committed
Josh Stone [Tue, 10 Nov 2009 10:05:22 +0000 (02:05 -0800)]
Only .3stap.in files should be committed

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Mon, 9 Nov 2009 19:59:45 +0000 (14:59 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoDon't reference global variable modpath in insert_module and its helpers.
Dave Brolley [Mon, 9 Nov 2009 19:50:52 +0000 (14:50 -0500)]
Don't reference global variable modpath in insert_module and its helpers.
This allows insert_module to to be used for loading the signed uprobes.ko
module.

Allow the use of $$parms and $$return in uprobes based probes for
unprivileged users.

Re-add management of module signatures in the cache. Don't know why
it was removed.

14 years agoNormalized whitespace and comments.
David Smith [Mon, 9 Nov 2009 16:29:10 +0000 (10:29 -0600)]
Normalized whitespace and comments.

14 years agoIRQ tapset, sample script, testsuite, man page updates, etc
Prerna Saxena [Mon, 9 Nov 2009 06:06:11 +0000 (11:36 +0530)]
IRQ tapset, sample script, testsuite, man page updates, etc

14 years agoPR10923 Handle AT_frame_base given by DW_OP_call_frame_cfa in .debug_frame.
Mark Wielaard [Sun, 8 Nov 2009 21:03:31 +0000 (22:03 +0100)]
PR10923 Handle AT_frame_base given by DW_OP_call_frame_cfa in .debug_frame.

dwarf_cfi_addrframe should not be called with pc adjusted to the bias
of the dwfl_module_dwarf_cfi or dwfl_module_eh_cfi. This just happened to
work in the .eh_frame case because bias was always zero.

* dwflpp.cxx (get_cfa_ops): Don't adjust pc for bias.

14 years agoFix a comment typo
Josh Stone [Sat, 7 Nov 2009 02:17:19 +0000 (18:17 -0800)]
Fix a comment typo

14 years agoexpand comment on has_return=0 treatment of -L foo.return probes
Frank Ch. Eigler [Sat, 7 Nov 2009 01:57:55 +0000 (20:57 -0500)]
expand comment on has_return=0 treatment of -L foo.return probes

14 years agoConstrain $var-checking for -L of .return probes
Josh Stone [Sat, 7 Nov 2009 00:01:10 +0000 (16:01 -0800)]
Constrain $var-checking for -L of .return probes

Normally, using a $var in a return probe create a matching entry probe
to save the value.  We don't want all this machinery though when we're
just checking the accessibility of a $var for -L mode.

* tapsets.cxx (dwarf_derived_probe::saveargs): Save/restore has_return
  while the $var accesses are attempted.

14 years agoPR10849: Support MAXSKIPPED handling on RHEL4 through implementation of atomic_cmpxchg
Roland Grunberg [Fri, 6 Nov 2009 19:09:06 +0000 (14:09 -0500)]
PR10849: Support MAXSKIPPED handling on RHEL4 through implementation of atomic_cmpxchg

14 years agoPR10820-cont': initialize the fields of empty token
Wenji Huang [Fri, 6 Nov 2009 02:03:32 +0000 (10:03 +0800)]
PR10820-cont': initialize the fields of empty token

* tapsets.cxx (dwarf_derived_probe::saveargs): fill fields.

14 years agoRevert change which loads uprobes.ko using insert_module.
Dave Brolley [Thu, 5 Nov 2009 23:17:50 +0000 (18:17 -0500)]
Revert change which loads uprobes.ko using insert_module.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Thu, 5 Nov 2009 20:23:35 +0000 (15:23 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

14 years agoRevert previous change re: home directory og stap-server. Ensure it has 755 privileges.
Dave Brolley [Thu, 5 Nov 2009 20:07:37 +0000 (15:07 -0500)]
Revert previous change re: home directory og stap-server. Ensure it has 755 privileges.

14 years agoPR 9973: Sign uprobes.ko when it is created and load it using insert_module.
Dave Brolley [Thu, 5 Nov 2009 19:52:56 +0000 (14:52 -0500)]
PR 9973: Sign uprobes.ko when it is created and load it using insert_module.
Create home directory manually for stap-server.

14 years agoPR10466: print the set-intersection of variables retrieved from each branch
Wenji Huang [Wed, 4 Nov 2009 02:58:58 +0000 (10:58 +0800)]
PR10466: print the set-intersection of variables retrieved from each branch

* elaborate.h: Remove printargs and add getargs.
* tapset-mark.cxx (mark_derived_probe): Ditto.
* tapsets.cxx (dwarf_derived_probe,tracepoint_derived_probe): Ditto.
* main.cxx (printscript): Make intersection before printing.

14 years agoAdd NEWS entry for stap-server initscript.
Dave Brolley [Tue, 3 Nov 2009 21:29:06 +0000 (16:29 -0500)]
Add NEWS entry for stap-server initscript.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Tue, 3 Nov 2009 21:22:36 +0000 (16:22 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

Conflicts:

Makefile.in
configure
doc/Makefile.in
doc/SystemTap_Tapset_Reference/Makefile.in
grapher/Makefile.in
testsuite/configure

14 years agoRedirect stap-serverd output to /dev/null.
Dave Brolley [Tue, 3 Nov 2009 19:27:12 +0000 (14:27 -0500)]
Redirect stap-serverd output to /dev/null.

14 years agoPR 10706 fixed by switching to unbuffered output.
David Smith [Tue, 3 Nov 2009 17:04:35 +0000 (11:04 -0600)]
PR 10706 fixed by switching to unbuffered output.
* runtime/staprun/mainloop.c (stp_main_loop): Switched to unbuffered
  output (instead of line buffered output).

14 years agoI forgot to change the NEWS file when commiting
Breno Leitao [Tue, 3 Nov 2009 16:24:03 +0000 (14:24 -0200)]
I forgot to change the NEWS file when commiting
249534c041971db5e9f89cb11b6d38d311e91f57, and this commit
just adds a line in the NEWS file explaining the commmit above

14 years agoFix for bug 10866 (exit with rc != 0 on script ERRORs).
Breno Leitao [Tue, 3 Nov 2009 15:38:32 +0000 (13:38 -0200)]
Fix for bug 10866 (exit with rc != 0 on script ERRORs).
This patch just make the RC=1 when any output line starts with ERROR:.

Also some minors error that was returning 0 instead of 1 were fixed.

14 years agoMore logging for stap-server initscript.
Dave Brolley [Mon, 2 Nov 2009 21:38:41 +0000 (16:38 -0500)]
More logging for stap-server initscript.

14 years agoFinal cleanup of stap-server initscript and packaging.
Dave Brolley [Mon, 2 Nov 2009 20:15:09 +0000 (15:15 -0500)]
Final cleanup of stap-server initscript and packaging.

14 years agoPR 6691 fixed by adding support for sys_accept4.
David Smith [Mon, 2 Nov 2009 18:51:12 +0000 (12:51 -0600)]
PR 6691 fixed by adding support for sys_accept4.
* tapset/aux_syscalls.stp(_sock_type_str): Rewrote in embedded-C and added
  socket flags support.
  (_sock_flags_str): New function.
* tapset/syscalls.stp: syscall.accept prefers to use sys_accept4 when it
  exists.  Added support for sys_accept4's 'flag' parameter.
* testsuite/systemtap.syscall/net1.c (main): Updated regular expression to
  handle the new 'flags' argument.

14 years agoPR10849: make MAXSKIPPED overflow trigger an error message
Charley Wang [Mon, 2 Nov 2009 15:18:34 +0000 (10:18 -0500)]
PR10849: make MAXSKIPPED overflow trigger an error message

14 years agoreorganize app tests; rewrite tcl as sample of improvements
Frank Ch. Eigler [Sat, 31 Oct 2009 17:54:41 +0000 (13:54 -0400)]
reorganize app tests; rewrite tcl as sample of improvements

* testsuite/configure.ac (--enable-testapps): New option.
* testsuite/Makefile.am (TESTAPPS): Pass to dejagnu.

* testsuite/systemtap.base/{xulrunner,tcl,mysql,postgres}:
  Moved under new systemtap.apps/ subdirectory.

* testsuite/systemtap.apps/stap-tcl.sh: New file to build tcl.
* testsuite/systemtap.apps/stap-tcl.stp: New file to test tcl.
* testsuite/systemtap.apps/tcl.exp: New simplified test driver.

* dtrace.in: Disable STAP_HAS_SEMAPHORES as they don't work on shlibs yet.
* includes/sys/sdt.h (STAP_SEMAPHORE): Include __builtin_expect for unlikely.

14 years agoregen sample indexes with plimit.stp
Frank Ch. Eigler [Fri, 30 Oct 2009 23:53:03 +0000 (19:53 -0400)]
regen sample indexes with plimit.stp

14 years agoplimit: Add plimit.stp sample script
Eugene Teo [Fri, 30 Oct 2009 23:52:23 +0000 (19:52 -0400)]
plimit: Add plimit.stp sample script

14 years agoUse /dev/urandom (non-blocking) instead of /dev/random.
Dave Brolley [Fri, 30 Oct 2009 16:32:01 +0000 (12:32 -0400)]
Use /dev/urandom (non-blocking) instead of /dev/random.

14 years agoNever ask the user for a password in stap-gen-cert. Read from /dev/random as
Dave Brolley [Fri, 30 Oct 2009 16:17:06 +0000 (12:17 -0400)]
Never ask the user for a password in stap-gen-cert. Read from /dev/random as
a last resort. Cert db passwords will be going away soon(tm).

14 years agocontext.exp test improvements.
David Smith [Fri, 30 Oct 2009 15:03:52 +0000 (10:03 -0500)]
context.exp test improvements.
* testsuite/systemtap.context/args.tcl: Increased timeout.  If tests do
  timeout, fail (instead of silently failing).
* testsuite/systemtap.context/num_args.tcl: Ditto.
* testsuite/systemtap.context/backtrace.tcl: Increase timeout.
* testsuite/systemtap.context/pid.tcl: Ditto.

14 years agoPR10839: compute default KRETACTIVE from num_possible_cpus() instead of NR_CPUS
Frank Ch. Eigler [Fri, 30 Oct 2009 12:10:04 +0000 (08:10 -0400)]
PR10839: compute default KRETACTIVE from num_possible_cpus() instead of NR_CPUS

* tapsets.cxx (dwarf_ and kprobe_derived_probe_group): Redefine KRETACTIVE.

14 years agoFix syscall testsuite bugs.
David Smith [Thu, 29 Oct 2009 21:12:18 +0000 (16:12 -0500)]
Fix syscall testsuite bugs.
* testsuite/systemtap.syscall/test.tcl: Substitute '[[[[' and ']]]]' for
  '(' and ')'.  This allows us to get unquoted parens.
* testsuite/systemtap.syscall/test-debug.tcl: Matches substitute logic of
  test.tcl.
* testsuite/systemtap.syscall/README: Document '[[[[' and ']]]]'.
* testsuite/systemtap.syscall/chmod.c: Handle optional O_LARGEFILE flag in
  open calls.
* testsuite/systemtap.syscall/dir.c: Ditto.
* testsuite/systemtap.syscall/mmap.c: Ditto.
* testsuite/systemtap.syscall/openclose.c: Ditto.
* testsuite/systemtap.syscall/readwrite.c: Ditto.
* testsuite/systemtap.syscall/stat.c: Ditto.

14 years agoRemoved extra declarations.
David Smith [Thu, 29 Oct 2009 20:54:58 +0000 (15:54 -0500)]
Removed extra declarations.
* runtime/transport/transport.h: Removed extra declarations of
  _stp_transport_init() and _stp_transport_close().

14 years agoRework for bugs found during testing.
Dave Brolley [Thu, 29 Oct 2009 20:24:33 +0000 (16:24 -0400)]
Rework for bugs found during testing.

14 years agoNormalize Breno Leitao's name without an accent
Josh Stone [Thu, 29 Oct 2009 17:50:14 +0000 (10:50 -0700)]
Normalize Breno Leitao's name without an accent

Per Breno's guidance, I'm removing the accent from the 'a' in Leitao.
We can normalize it either way -- I just want it to be consistent.

This only has an effect on git shortlog and git blame, but we do use
shortlog in our AUTHORS queries.

14 years agotty: Adding tty.stp to the documentation
Breno Leitão [Tue, 20 Oct 2009 17:34:18 +0000 (13:34 -0400)]
tty: Adding tty.stp to the documentation

Adding the TTY tapset to the .tmpl Reference documentation

14 years agoA new testcase for tty tapset
Breno Leitão [Fri, 2 Oct 2009 20:38:46 +0000 (16:38 -0400)]
A new testcase for tty tapset

This is a basic test to assure that the tty tapset is working
compiling and working properly

14 years agoA new tapset that adds support for tty and serial devices
Breno Leitão [Fri, 2 Oct 2009 20:37:15 +0000 (16:37 -0400)]
A new tapset that adds support for tty and serial devices

A new tapset that supports tty devices and consequently serial
devices. It is just a basic implementation that can be extended
as demands appears

14 years agoinit.d/rc.d -> rc.d/init.d
Dave Brolley [Thu, 29 Oct 2009 15:34:24 +0000 (11:34 -0400)]
init.d/rc.d -> rc.d/init.d

14 years agoCreate /etc/sysconfig in %install.
Dave Brolley [Thu, 29 Oct 2009 15:29:52 +0000 (11:29 -0400)]
Create /etc/sysconfig in %install.

14 years agostap-server initscript cleanup and follow fedora initscript requirements.
Dave Brolley [Thu, 29 Oct 2009 15:22:40 +0000 (11:22 -0400)]
stap-server initscript cleanup and follow fedora initscript requirements.

14 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Tim Moore [Thu, 29 Oct 2009 11:30:55 +0000 (12:30 +0100)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

14 years agoPR10820: stap -L ignores any variable that isn't accessible
Wenji Huang [Thu, 29 Oct 2009 00:26:32 +0000 (08:26 +0800)]
PR10820: stap -L ignores any variable that isn't accessible

* tapsets.cxx (saveargs): check the accessibility.

14 years ago* grapher/GraphData.hxx (GraphDataBase, GraphData): Use
Tim Moore [Wed, 28 Oct 2009 21:13:50 +0000 (22:13 +0100)]
* grapher/GraphData.hxx (GraphDataBase, GraphData): Use
  boost::circular_buffer for time and data storage.

14 years agoFix regression of parsing grapher options
Tim Moore [Wed, 28 Oct 2009 17:57:50 +0000 (18:57 +0100)]
Fix regression of parsing grapher options

* grapher/StapParser.hxx (ioCallback): Test return value from findTaggedValue
  properly.

14 years agoChange permissions and ownership of /var/log/systemtap.log after installation.
Dave Brolley [Wed, 28 Oct 2009 15:01:26 +0000 (11:01 -0400)]
Change permissions and ownership of /var/log/systemtap.log after installation.

14 years agoAdd stap-server userid to the stap-server group when it is created.
Dave Brolley [Tue, 27 Oct 2009 21:47:52 +0000 (17:47 -0400)]
Add stap-server userid to the stap-server group when it is created.

14 years agoAdd /var/log/stap-server.log to the files for the systemtap-server sub rpm.
Dave Brolley [Tue, 27 Oct 2009 21:36:16 +0000 (17:36 -0400)]
Add /var/log/stap-server.log to the files for the systemtap-server sub rpm.

14 years agoIn systemtap.spec create $RPM_BUILD_ROOT%{_localstatedir}/log before working in it.
Dave Brolley [Tue, 27 Oct 2009 21:28:55 +0000 (17:28 -0400)]
In systemtap.spec create $RPM_BUILD_ROOT%{_localstatedir}/log before working in it.

14 years agoSpecialized user to run stap-server and improved logging.
Dave Brolley [Tue, 27 Oct 2009 21:23:24 +0000 (17:23 -0400)]
Specialized user to run stap-server and improved logging.

14 years agoProperly close the spawn of the pr10854 testcase
Josh Stone [Tue, 27 Oct 2009 21:06:06 +0000 (14:06 -0700)]
Properly close the spawn of the pr10854 testcase

14 years agoPR10854 cont'd: Add a testcase for the reproducer
Josh Stone [Tue, 27 Oct 2009 20:52:34 +0000 (13:52 -0700)]
PR10854 cont'd: Add a testcase for the reproducer

14 years agoPR10854: Use a mutex around transport startup/shutdown
Josh Stone [Tue, 27 Oct 2009 19:15:29 +0000 (12:15 -0700)]
PR10854: Use a mutex around transport startup/shutdown

We had a race where the probe setup could be called during/after the
probe shutdown in abnormal circumstances, which leads to kernel
callbacks still registered after module unload.  (BOOM)

Now the setup/shutdown activities and related flags are guarded by a
mutex, so we should have strict ordering.

* runtime/transport/transport.c (_stp_transport_mutex): New.
  (_stp_handle_start): Grab the mutex, and make sure we're not exiting.
  (_stp_cleanup_and_exit): Grab the mutex.
  (_stp_lock_inode, _stp_unlock_inode): Use kernel version for checking
  inode locking type.

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