]> sourceware.org Git - systemtap.git/log
systemtap.git
12 years agoRegen script index for process/syscalltimes.
Mark Wielaard [Fri, 9 Sep 2011 11:55:27 +0000 (13:55 +0200)]
Regen script index for process/syscalltimes.

12 years agoFix systemtap.examples/process/syscalltimes script and add test.
Mark Wielaard [Fri, 9 Sep 2011 11:46:45 +0000 (13:46 +0200)]
Fix systemtap.examples/process/syscalltimes script and add test.

stap was a little too smart for the script, optimizing out unused
variables and producing WARNINGS/ERRORS for deleted variables.
Make all variable manipulation conditional on their actual usage,
add -w to surpress warnings, add a new option -c 'process' to run
during script invocation and add a meta testcase for the testsuite.

12 years agoRemove CONFIG_UTRACE check in pass 2 (dwarfbuilder).
Mark Wielaard [Fri, 9 Sep 2011 07:05:09 +0000 (09:05 +0200)]
Remove CONFIG_UTRACE check in pass 2 (dwarfbuilder).

pass 4 (buildrun) already checks for CONFIG_UTRACE, so remove it from
pass 2 (dwarfbuilder) so scripts containing process() probes can at least
be semantically checked and inspected with stap -l on arches that don't
have utrace yet.

12 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Mark Wielaard [Thu, 8 Sep 2011 15:34:29 +0000 (17:34 +0200)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

12 years agoRemove kfail from backtrace.exp. Fixed by commit 207d2d.
Mark Wielaard [Thu, 8 Sep 2011 15:30:59 +0000 (17:30 +0200)]
Remove kfail from backtrace.exp. Fixed by commit 207d2d.

12 years agoUse "unsigned long" in place of "uintptr_t" to compile on older kernels
William Cohen [Thu, 8 Sep 2011 15:23:00 +0000 (11:23 -0400)]
Use "unsigned long" in place of "uintptr_t" to compile on older kernels

12 years agoRemove commented out and outdated (confusing embedded C) example from SBG.
Mark Wielaard [Thu, 8 Sep 2011 15:22:25 +0000 (17:22 +0200)]
Remove commented out and outdated (confusing embedded C) example from SBG.

Just remove so there are no false positives while looking for dangerous
embedded C snippets. The actual example just includes the thread-times.stp
file which is fine.

12 years agoDon't try to be smart detecting perf event was in user mode.
Mark Wielaard [Thu, 8 Sep 2011 15:14:32 +0000 (17:14 +0200)]
Don't try to be smart detecting perf event was in user mode.

Just use user_mode(regs) always.
Add test to check we always detect some user_mode activity.

12 years agos390 also has ambiguous asm opcode.
Stan Cox [Thu, 8 Sep 2011 15:14:39 +0000 (11:14 -0400)]
s390 also has ambiguous asm opcode.

* sdt.exp: Add s390 to the ambiguous asm opcode list.

12 years agoPR12221: Added the build ids to the script's hash
Chris Meek [Thu, 8 Sep 2011 12:09:51 +0000 (08:09 -0400)]
PR12221: Added the build ids to the script's  hash

hash.cxx
  Added the build IDs from the session variables's build_ids
  vector to the script's hash.

session.h
  Added the build_ids vector to the session.

setupdwfl.cxx
  Extracted the build IDs in setup_dwfl_kernel and
  setup_dwfl_user and added them to the build_ids vector.
  Also, rearranged the code for downloading the debuginfo
  to facilitate this patch.

12 years agoRename CONTEXT regflags to probe_flags. Now simply indicates user mode.
Mark Wielaard [Thu, 8 Sep 2011 11:57:21 +0000 (13:57 +0200)]
Rename CONTEXT regflags to probe_flags. Now simply indicates user mode.

Renamed common_probe_context.h regflags to probe_flags, rename constant
from _STP_REGS_USER_FLAG to _STP_PROBE_STATE_USER_MODE and use throughout
tapsets to check whether in user_mode() or not.

12 years agoAllow xfails for sdt.exp.
Stan Cox [Wed, 7 Sep 2011 21:57:51 +0000 (17:57 -0400)]
Allow xfails for sdt.exp.

* sdt.exp (sdt_stap_run): New.  Like stap_run3 but adds FAIL.
Use it for known xfails.

12 years agoRemove unused runtime/counter.c file.
Mark Wielaard [Wed, 7 Sep 2011 14:01:31 +0000 (16:01 +0200)]
Remove unused runtime/counter.c file.

12 years agochange probe wildcard matching criterion in sdt_misc.exp
Han Pingtian [Wed, 17 Aug 2011 09:23:58 +0000 (17:23 +0800)]
change probe wildcard matching criterion in sdt_misc.exp

On i386 and x86_64 system, sdt_misc.exp fails with those messages:

i386:
FAIL: sdt_misc wildcard (40) V1_uprobe
FAIL: sdt_misc wildcard (40) V2_kprobe
FAIL: sdt_misc wildcard (40) V2_uprobe
FAIL: sdt_misc wildcard (40) V3_uprobe

x86_64:
FAIL: sdt_misc wildcard (48) V1_uprobe
FAIL: sdt_misc wildcard (48) V2_kprobe
FAIL: sdt_misc wildcard (48) V2_uprobe
FAIL: sdt_misc wildcard (48) V3_uprobe

I believe this because three variables, arr_struct, primary_colors_var, incomplete_struct_type, has been changed to conditional defined in systemtap.base/sdt_types.c:

 92 # if !defined(__cplusplus) || \
 93         ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)) && __GXX_EXPERIMENTAL_CXX0X__)
 94   struct {
 95     int int_var;
 96   } arr_struct [2] = {{1},{2}};
 97
 98   enum  {
 99     red = 0,
100     green = 1,
101     blue = 2
102   } primary_colors_var = green;
103
104   struct opaque_struct *incomplete_struct_type = 0;
105 # endi

The criterion should be changed.

Signed-off-by: Han Pingtian <phan@redhat.com>
12 years agoPR11441 - unprivileged mode test suite enhancements.
Dave Brolley [Tue, 6 Sep 2011 19:48:29 +0000 (15:48 -0400)]
PR11441 - unprivileged mode test suite enhancements.

- Created a script which identifies all embedded C code in our tapset
  sources.
- Tests to ensure that calls to each function containing embedded C are
  accepted/rejected for unprivileged users, as appropriate.

12 years agoruntime/staprun/configure.ac: AC_CHECK_LIB before adding -lelf.
Turgis, Frederic [Tue, 6 Sep 2011 17:38:08 +0000 (19:38 +0200)]
runtime/staprun/configure.ac: AC_CHECK_LIB before adding -lelf.

12 years agoUpdate known and expected failures in unprivileged_all.exp
Dave Brolley [Tue, 6 Sep 2011 16:07:30 +0000 (12:07 -0400)]
Update known and expected failures in unprivileged_all.exp

12 years agoRemove unused STP_WORK_TIMER define.
David Smith [Tue, 6 Sep 2011 15:35:01 +0000 (10:35 -0500)]
Remove unused STP_WORK_TIMER define.

* runtime/transport/transport.h: Remove unused STP_WORK_TIMER.

12 years agoAllow STP_WORK_TIMER to be changed on the stap command line.
David Smith [Tue, 6 Sep 2011 14:33:17 +0000 (09:33 -0500)]
Allow STP_WORK_TIMER to be changed on the stap command line.

* runtime/transport/transport.h: Allow user to override STP_WORK_TIMER
  from the command line using '-DSTP_WORK_TIMER=value'.

12 years agoPR13112 Add include/asm/io_64.h blacklist.
Mark Wielaard [Mon, 5 Sep 2011 21:57:44 +0000 (23:57 +0200)]
PR13112 Add include/asm/io_64.h blacklist.

Also simplify blfile include list (starting .* pattern needed for all
asm/include files means we can collapse some).

12 years agoPR13108 blacklist probing paravirt ops from paravirt.c or paravirt.h.
Mark Wielaard [Mon, 5 Sep 2011 21:44:53 +0000 (23:44 +0200)]
PR13108 blacklist probing paravirt ops from paravirt.c or paravirt.h.

12 years agoPR13112 (and PR13108) blacklist probing function from include/asm .h files.
Mark Wielaard [Mon, 5 Sep 2011 21:37:11 +0000 (23:37 +0200)]
PR13112 (and PR13108) blacklist probing function from include/asm .h files.

dwflpp.cxx (build_blacklist): all include/asm .h blfile patterns might
need "full path" so prefix those with '.*'
Add new XFAIL semok.exp inb_blacklisted.stp testcase.

12 years agonon-guru printk test fail during semantic (p2) time, not build (p4) time.
Mark Wielaard [Mon, 5 Sep 2011 08:14:34 +0000 (10:14 +0200)]
non-guru printk test fail during semantic (p2) time, not build (p4) time.

guru functions are checked during pass 2 (semantic analysis) time.

12 years agoPR6503: introduce systemtap_module_refresh() entry point
Frank Ch. Eigler [Fri, 2 Sep 2011 21:22:51 +0000 (17:22 -0400)]
PR6503: introduce systemtap_module_refresh() entry point

This new function in the generated code is to get all active probe
point families to reevaluate applicability, to retry inserting probes
that may have failed during systemtap_module_init (e.g., due to
modules being offline), or disarm/remove probes that are no longer
applicable (e.g. due to modules having gone offline).  The default
implementation is empty.

* elaborate.h (derived_probe_group::emit_module_refresh): Define
  empty default.
* translate.cxx (c_unparser::emit_module_refresh): Call the
  per-probe-group functions.
  (translate_pass): Call emit_module_refresh().

12 years agoPR13101 - Networking tapsets should have structured comments
William Cohen [Fri, 2 Sep 2011 03:14:21 +0000 (23:14 -0400)]
PR13101 - Networking tapsets should have structured comments

Make the descriptions of the default filter functions clear.

12 years agoPR13101 Networking tapsets should have structured comments
William Cohen [Thu, 1 Sep 2011 21:33:18 +0000 (17:33 -0400)]
PR13101 Networking tapsets should have structured comments

Fix up formatting issues in documentation comments.

12 years agoPR13101 Networking tapsets should have structured comments
William Cohen [Thu, 1 Sep 2011 21:29:09 +0000 (17:29 -0400)]
PR13101 Networking tapsets should have structured comments

Fix up formatting issues in documentation comments.

12 years agoPR6503: make module notifier update kmodule section addresses, GRSECURITY version
Frank Ch. Eigler [Thu, 1 Sep 2011 20:49:46 +0000 (16:49 -0400)]
PR6503: make module notifier update kmodule section addresses, GRSECURITY version

Some struct module fields are renamed under STAPCONF_GRSECURITY.

12 years agoPR6503: make module notifier update kmodule section addresses
Frank Ch. Eigler [Thu, 1 Sep 2011 20:43:55 +0000 (16:43 -0400)]
PR6503: make module notifier update kmodule section addresses

* runtime/sym.c (_stp_kmodule_update_address): Tolerate null reloc
  (section name) parameter, treat as "all".

* runtime/transport/symbols.c (_stp_module_notifier): A hack worthy of
  Alan Smithee himself, supply a disappointing subset of
  module-section-address data tuples as modules come and go.

12 years agotestsuite: remove process.*.return.maxactive(NNN) variants
Frank Ch. Eigler [Wed, 31 Aug 2011 21:12:09 +0000 (17:12 -0400)]
testsuite: remove process.*.return.maxactive(NNN) variants

12 years agoPR6503: add module notifier
Frank Ch. Eigler [Wed, 31 Aug 2011 17:42:17 +0000 (13:42 -0400)]
PR6503: add module notifier

* runtime/transport/symbols.c (_stp_module_notifier): New function.
  Do nothing.
* runtime/transport/transport.c (_stp_handle_start): Register it.
  (_stp_cleanup_and_exit): Unregister it.

12 years agoruntime: remove probe_start/_exit() intermediary
Frank Ch. Eigler [Wed, 31 Aug 2011 17:04:27 +0000 (13:04 -0400)]
runtime: remove probe_start/_exit() intermediary

These functions were unnecessary; the runtime can call to the
translator-generated systemtap_module_init|exit throughout.
Documentation and comment changes dominate this patch.

12 years agoPR6503 part 1: separate out _stp_kmodule_update_address
Frank Ch. Eigler [Wed, 31 Aug 2011 15:52:29 +0000 (11:52 -0400)]
PR6503 part 1: separate out _stp_kmodule_update_address

* runtime/sym.c (_stp_kmodule_update_address): New function, body
  pulled from river at ...
* runtime/transport/symbols.c (_stp_do_relocation): Chop into two bits.

12 years agoPR13101 Networking tapsets should have structured comments
William Cohen [Thu, 1 Sep 2011 20:55:00 +0000 (16:55 -0400)]
PR13101 Networking tapsets should have structured comments

Proof read and correct typos.

12 years agoConfiguration improvements.
Diego Elio Pettenò [Thu, 1 Sep 2011 20:18:01 +0000 (16:18 -0400)]
Configuration improvements.

Auto-discovered dependencies are fine when building on the system the
package will be used on; but for distributions such as Gentoo or for
cross-compilation, they only cause headaches if they are not configurable.

By adding two simple ./configure options, the problem is solved.

12 years agoConfiguration Inprovements for NSS and avahi.
Diego Elio Pettenò [Thu, 1 Sep 2011 18:58:33 +0000 (14:58 -0400)]
Configuration Inprovements for NSS and avahi.

Checking for directories directly on the /usr disallows building against a
locally-installed NSS or Avahi, and makes cross-compilation difficult.

By using pkg-config, it's easy to override the results, which allow
building against non-system libraries as well as properly identifying
cross-compiled libraries.

12 years agoPR13102 nfs tapsets should have structured comments
William Cohen [Thu, 1 Sep 2011 19:46:03 +0000 (15:46 -0400)]
PR13102 nfs tapsets should have structured comments

Fixing typos in new documentation.

12 years agoFixed PR13146 by not allowing memory allocations to sleep.
David Smith [Thu, 1 Sep 2011 14:39:15 +0000 (09:39 -0500)]
Fixed PR13146 by not allowing memory allocations to sleep.

* runtime/alloc.c:  Turn off __GFP_WAIT when allocating memory.
* runtime/transport/ring_buffer.c (__stp_alloc_ring_buffer): Ditto.
* runtime/counter.c (_stp_counter_init): Handles memory allocation failure
  better.
* runtime/task_finder.c (__stp_call_mmap_callbacks_with_addr): Better
  cleanup if memory allocation fails.

12 years agoPR12773 cont'd: Fixed NT_GNU_BUILD_ID undefined error on RHEL 4 and 5
Chris Meek [Wed, 31 Aug 2011 14:53:01 +0000 (10:53 -0400)]
PR12773 cont'd: Fixed NT_GNU_BUILD_ID undefined error on RHEL 4 and 5

12 years agoMerge branch 'master' of git://sources.redhat.com/git/systemtap
Mark Wielaard [Tue, 30 Aug 2011 20:50:02 +0000 (22:50 +0200)]
Merge branch 'master' of git://sources.redhat.com/git/systemtap

12 years agoPR13142: Stopping script execution on Android (ARM) does not unload kernel module
Frederic Turgis [Tue, 30 Aug 2011 21:22:23 +0000 (23:22 +0200)]
PR13142: Stopping script execution on Android (ARM) does not unload kernel module

12 years agoPR12773 cont'd: Added check for --download-debuginfo for kernel
Chris Meek [Tue, 30 Aug 2011 14:21:32 +0000 (10:21 -0400)]
PR12773 cont'd: Added check for --download-debuginfo for kernel

12 years agoPR12773 cont'd: Added Kernel Debuginfo Support
Chris Meek [Tue, 30 Aug 2011 13:42:28 +0000 (09:42 -0400)]
PR12773 cont'd: Added Kernel Debuginfo Support

NOTE: Due to BZ733690, abrt cannot download the kernel-debuginfo.
As soon as that bug is fixed, this feature should work.

setupdwfl.cxx
    - Added get_kernel_build_id_from_notes()
        - This is used to extract the build ID hex string
          from /sys/kernel/notes
    - Added download_kernel_debuginfo(systemtap_session &s)
        - This attempts to extract the build ID hex string
          from /lib/modules/<release>/build/vmlinux.id and
          if it fails, it calls the above function. It then
          calls abrt to attempt to download the associated
          debuginfo.
setupdwfl.cxx
    Added function declarations for the above.

12 years agoPR13136: add guru-mode printk() tapset function
Frank Ch. Eigler [Fri, 26 Aug 2011 16:44:25 +0000 (12:44 -0400)]
PR13136: add guru-mode printk() tapset function

12 years agoPR13057 related, remove process.**.return.maxactive(N) probe type
Frank Ch. Eigler [Thu, 25 Aug 2011 21:21:22 +0000 (17:21 -0400)]
PR13057 related, remove process.**.return.maxactive(N) probe type

The .maxactive stuff is strictly for kretprobes, so should not be
present in process (uprobes) probes.  Use the existing
bind_unprivileged_p flag as a proxy for whether we're dealing with
kernel vs. process probe point hierarchy.

* tapsets.cxx (dwarf_derived_probe::register_*_variants): Make
  bind_unprivileged_p an explicit (non-defaulted) argument.
  Update callers.
  (register_function_variants): Skip TOK_MAXACTIVE variant for process
  probes.

12 years agodocs: add missing " * " line for tapset doc extraction tool
Frank Ch. Eigler [Thu, 25 Aug 2011 20:28:39 +0000 (16:28 -0400)]
docs: add missing " * " line for tapset doc extraction tool

12 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Dave Brolley [Thu, 25 Aug 2011 16:27:33 +0000 (12:27 -0400)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

Conflicts:
NEWS
session.cxx
session.h

12 years agoPR 11441 - continue with unprivileged test suite
Dave Brolley [Thu, 25 Aug 2011 16:14:10 +0000 (12:14 -0400)]
PR 11441 - continue with unprivileged test suite

- New unprivileged_all.exp replaces previously existing unprivileged
  mode test suites.
- Tests all known probe point types for expected success/failure for
  unprivileged users.
- Checks the above directly and also using an alias.
- Checks that all known probe point types have been tested (uses
  --dump-probe-types).

12 years agoPR 13057 Provide a Command Line Option to Dump Supported Probe Points
Dave Brolley [Thu, 25 Aug 2011 16:10:59 +0000 (12:10 -0400)]
PR 13057 Provide a Command Line Option to Dump Supported Probe Points

New command line option, --dump-probe-types, has been added. If
--unprivilged is also specified, the dump will be limited to
probe types available to unprivileged users.

12 years agoFix pr10678.stp failure if system doesn't have ne2k-pci module.
Han Pingtian [Thu, 25 Aug 2011 15:32:43 +0000 (10:32 -0500)]
Fix pr10678.stp failure if system doesn't have ne2k-pci module.

Change from Han Pingtian <phan@redhat.com>

* testsuite/buildok/pr10678.stp: Just use a begin probe if the ne2k_pci
  module doesn't exist.

12 years agoCorrect atomic.stp documentation comments. They should be sfunction.
William Cohen [Tue, 23 Aug 2011 19:28:51 +0000 (15:28 -0400)]
Correct atomic.stp documentation comments. They should be sfunction.

12 years agoadd copyright/license blurb to process/schedtimes.stp sample
Frank Ch. Eigler [Tue, 23 Aug 2011 14:38:30 +0000 (10:38 -0400)]
add copyright/license blurb to process/schedtimes.stp sample

Requested-By: Jason Baron <jbaron@redhat.com>
12 years agoDefault --disable-sdt-probes for gcc version 3
Stan Cox [Mon, 22 Aug 2011 19:14:25 +0000 (15:14 -0400)]
Default --disable-sdt-probes for  gcc version 3

    * configure.ac: Check for the function ppoll.
    * configure, config.in: Regenerate.

12 years agoConvert 4 autoconf tests to exportconf tests.
David Smith [Mon, 22 Aug 2011 15:03:59 +0000 (10:03 -0500)]
Convert 4 autoconf tests to exportconf tests.

* buildrun.cxx (output_dual_exportconf): New function.
(compile_pass): Converted several autoconf tests to exportconf tests.
* runtime/autoconf-probe-kernel.c: Removed unneeded autoconf test.
* runtime/autoconf-synchronize-sched.c: Ditto.
* runtime/autoconf-unregister-kprobes.c: Ditto.
* runtime/autoconf-vm-area.c: Ditto.

12 years agoloc2c.c (location_from_attr): Add pc address where location isn't accessible.
Mark Wielaard [Sun, 21 Aug 2011 21:10:02 +0000 (23:10 +0200)]
loc2c.c (location_from_attr): Add pc address where location isn't accessible.

Sometimes a probe point expands to multiple addresses, only some of
which cannot access a particular variable or argument.

12 years agoDocument atomic.stp and add to the SystemTap Tapset Reference Manual.
William Cohen [Fri, 19 Aug 2011 20:17:27 +0000 (16:17 -0400)]
Document atomic.stp and add to the SystemTap Tapset Reference Manual.

12 years agoPR13101 Add linuxmib-filter-default.stp to Tapset Reference Manual.
William Cohen [Fri, 19 Aug 2011 17:44:31 +0000 (13:44 -0400)]
PR13101 Add linuxmib-filter-default.stp to Tapset Reference Manual.

12 years agoPR13101 Add ipmib-filter-default.stp to documentation.
William Cohen [Fri, 19 Aug 2011 17:29:31 +0000 (13:29 -0400)]
PR13101 Add ipmib-filter-default.stp to documentation.

12 years agoAdd documentation comments to inet_sock.stp
William Cohen [Fri, 19 Aug 2011 16:19:19 +0000 (12:19 -0400)]
Add documentation comments to inet_sock.stp

12 years agoDocument and relocate information about default tcpmib_filter_key function.
William Cohen [Fri, 19 Aug 2011 16:05:26 +0000 (12:05 -0400)]
Document and relocate information about default tcpmib_filter_key function.

12 years agoPR13101 Add structured comments to document rpc.stp.
William Cohen [Fri, 19 Aug 2011 15:49:59 +0000 (11:49 -0400)]
PR13101 Add structured comments to document rpc.stp.

12 years agoAdd documentation comments to nfs_proc.stp.
William Cohen [Thu, 18 Aug 2011 20:53:22 +0000 (16:53 -0400)]
Add documentation comments to nfs_proc.stp.

12 years agoFixed PR13055 by getting procfs probes working on 3.1 kernels.
David Smith [Thu, 18 Aug 2011 18:34:01 +0000 (13:34 -0500)]
Fixed PR13055 by getting procfs probes working on 3.1 kernels.

* runtime/procfs.c (_stp_rmdir_proc_module): Fix problem where
  '/proc/systemtap' wasn't getting removed correctly.
  (_stp_mkdir_proc_module): Add support for kernels where neither
  path_lookup() or kern_path_parent() are exported (such as the 3.1
  kernels).
* buildrun.cxx (compile_pass): Convert compile test for kern_path_parent()
  to an export test.  Add exports tests for path_lookup() and
  vfs_path_lookup().
* runtime/autoconf-kern-path-parent.c: Removed.

12 years agoUpdate parse_kernel_exports() for RHEL4.
David Smith [Thu, 18 Aug 2011 18:27:14 +0000 (13:27 -0500)]
Update parse_kernel_exports() for RHEL4.

* main.cxx (parse_kernel_exports): Now handles RHEL4 (2.6.9) kernels
  correctly, whose 'Modules.symvers' file only has 3 tokens per line.

12 years agodebian bug#604453: tweak new blacklist items to exploit regexps
Frank Ch. Eigler [Thu, 18 Aug 2011 17:59:19 +0000 (13:59 -0400)]
debian bug#604453: tweak new blacklist items to exploit regexps

12 years agodebian bug#604453: add more items to kprobe blacklist
Timo Juhani Lindfors [Thu, 18 Aug 2011 17:57:03 +0000 (13:57 -0400)]
debian bug#604453: add more items to kprobe blacklist

12 years agoAdd documentation comments to inet.stp.
William Cohen [Thu, 18 Aug 2011 15:45:18 +0000 (11:45 -0400)]
Add documentation comments to inet.stp.

12 years agoInitial checkin of nfsd.stp documentation.
William Cohen [Thu, 18 Aug 2011 00:19:59 +0000 (20:19 -0400)]
Initial checkin of nfsd.stp documentation.

12 years agoAdd tapset reference manual description for nfsderrno.stp.
William Cohen [Thu, 18 Aug 2011 00:08:47 +0000 (20:08 -0400)]
Add tapset reference manual description for nfsderrno.stp.

12 years agoPR13078: Support stap --remote unix:/path sockets
Josh Stone [Wed, 17 Aug 2011 21:46:45 +0000 (14:46 -0700)]
PR13078: Support stap --remote unix:/path sockets

* remote.cxx (unix_stapsh): New, connects to an AF_UNIX socket.
  (stapsh::get_reply): Deal with possible stapsh stderr chatter.
  (stapsh::handle_poll): Rework to handle some corner cases better,
  like having the same fd for in and out.
* testsuite/systemtap.base/stapsh-unix.exp: New test using socat.
* testsuite/systemtap.base/stapsh-unix.stp: New test.

12 years agoAdd "documentation" for cpu parameter to tapset/timestamp_monotonic.stp.
Mark Wielaard [Wed, 17 Aug 2011 22:38:59 +0000 (00:38 +0200)]
Add "documentation" for cpu parameter to tapset/timestamp_monotonic.stp.

12 years agoReorder the nfs tapset entries to group nfsd material together.
William Cohen [Wed, 17 Aug 2011 21:42:18 +0000 (17:42 -0400)]
Reorder the nfs tapset entries to group nfsd material together.

12 years agoAdd the structure comments for tapset reference manual to nfs.stp
William Cohen [Wed, 17 Aug 2011 21:40:57 +0000 (17:40 -0400)]
Add the structure comments for tapset reference manual to nfs.stp

12 years agoInitialize POD members that were previously uninitialized
Lukas Berk [Wed, 17 Aug 2011 20:36:04 +0000 (16:36 -0400)]
Initialize POD members that were previously uninitialized

* coveragedb.h: initialize type in coverage_element
* csclient.h: initialize argc in compile_server_client
* dwflpp.cxx: initialize blacklist_func, blacklist_func_ret,
              and blacklist_file in dwflpp
* dwflpp.h: initialize entrypc in func_info
* elaborate.cxx: initialize num_newly_resolved, num_still_unresolved,
                 assert_resolvability and t in typeresolution_info
* session.cxx: initialize automatic_server_mode in systemtap_session
* staptree.cxx: initialize privileged in probe, tok in component,
                and epilogue_style in probe_alias
* staptree.h: initialize num_index and expr_index in component
* tapset-utrace.cxx: initialize has_library in derived_probe
* tapsets.cxx: initialize has_process and has_library in
               dwarf_derived_probe, has_library in base_query,
               has_relative, relative_val, choose_next_line, and
               entrypc_for_next_line in dwarf_query, op in
               var_expanding_visitor and probe_type, probe_loc,
               probe_scn_offset, probe_scn_addr, arg_count, base,
               and semaphore in sdt_query
* translate.cxx: initialize action_counter and
                 probe_or_function_needs_deref_fault_handler in
                 c_unparser

12 years agoReally old kprobes didn't have a symbol_name field, autoconf it.
Mark Wielaard [Wed, 17 Aug 2011 17:13:24 +0000 (19:13 +0200)]
Really old kprobes didn't have a symbol_name field, autoconf it.

kprobes on addresses do just work and can now be build.
symbol_named kprobes now get a registration warning if the
symbol_name field isn't available.

12 years agoPR1277 cont'd: NEWS and man page entry
Chris Meek [Wed, 17 Aug 2011 13:24:06 +0000 (09:24 -0400)]
PR1277 cont'd: NEWS and man page entry

12 years agoPR6961 - backtrace from non-pt_regs probe context
Mark Wielaard [Wed, 17 Aug 2011 11:46:48 +0000 (13:46 +0200)]
PR6961 - backtrace from non-pt_regs probe context

When printing a kernel backtrace use the kernel dump_trace if available.
If the kernel is compiled with frame pointers we can guess the stack
pionter pretty reliably, otherwise let dump_stack figure it out and
skip some of the framework stack frames before starting the print the
remaining stack.

12 years agoPR13103 substr 3 argument length description is wrong.
Mark Wielaard [Wed, 17 Aug 2011 07:55:33 +0000 (09:55 +0200)]
PR13103 substr 3 argument length description is wrong.

12 years agoPR11209: Add cpu_clock and local_clock
Josh Stone [Mon, 8 Aug 2011 20:54:06 +0000 (13:54 -0700)]
PR11209: Add cpu_clock and local_clock

This adds cpu_clock_ns(cpu), local_clock_ns(), and their coarser
variants.  These are monotonic wallclock time sources, rather than the
absolute time-since-epoch sort.  On kernels too old for these functions,
it falls back to stap's gettimeofday.

A kernel supports this only if it has the functions exported, and if it
is deemed new enough to have the patches that make it NMI-safe.  See the
comment in timestamp_monotonic.stp for details.

* buildrun.cxx: Add export checks for cpu_clock and local_clock.
* tapset/timestamp_monotonic.stp: Define the new functions.
* testsuite/buildok/timestamp_monotonic-embedded.stp: Build them.
* doc/SystemTap_Tapset_Reference/tapsets.tmpl: Include the new docs.

12 years agoTestsuite Improvements.
Dave Brolley [Tue, 16 Aug 2011 21:24:04 +0000 (17:24 -0400)]
Testsuite Improvements.

Previously, server.log and the server certificates were cleared each
time a server was started. Clearing them once per test run instead
allows the log of all servers started during testing to be examined
after the tests are finished. It also ensures that the same server
certificates are used by all servers started during testing.

12 years agoCheck ix is not NULL before dereferencing for both cases
Lukas Berk [Tue, 16 Aug 2011 20:27:36 +0000 (16:27 -0400)]
Check ix is not NULL before dereferencing for both cases

staptree.cxx: add the assert and remove the (now) redundant portion
              of the conditional.

12 years agodoc: correct chapter heading for function::system
Frank Ch. Eigler [Tue, 16 Aug 2011 20:03:14 +0000 (16:03 -0400)]
doc: correct chapter heading for function::system

12 years agoPR12773 cont'd: Added --download-debuginfo= option
Chris Meek [Tue, 16 Aug 2011 18:28:59 +0000 (14:28 -0400)]
PR12773 cont'd: Added --download-debuginfo= option

 Possible values for option:

 'yes':      Automatically download debuginfo - no timeout.
             Also, if no value is given to the option, it
             is the same as this.
 'no':       Do not automatically download debuginfo. Also
             if the option is not specified at all, it
             defaults to this.
 'ask':      Show output from abrt, including file size of
             needed debuginfo, and make it wait for user
             input before downloading.
 '<number>'  A positive number, in seconds, to represent
             the timeout to use when downloading. If the
             download takes longer than this, it will
             abort the download.

 **NOTE** Due to a few bugs in abrt, both the 'ask' feature
 and the 'timeout' feature will not work properly. In terms
 of the 'ask feature (BZ726192), it will ask the user, but
 abrt then assumes 'yes' right away and continues the
 download. When this is fixed in abrt, stap should function
 properly. In terms of the timeout feature (BZ730107), stap
 does stop if a timeout occurs, but the download process
 continues to completion.

12 years agowarn_overflow.exp: Add -DMAXSKIPPED=9999 to prevent false failures.
Mark Wielaard [Tue, 16 Aug 2011 15:37:27 +0000 (17:37 +0200)]
warn_overflow.exp: Add -DMAXSKIPPED=9999 to prevent false failures.

The syscall.* probe handlers try to overflow the cmd message buffers
which might take some time, so add -DMAXSKIPPED=9999 to not error
out because some probes take too long.

12 years agoBug 11859 - print_ubacktrace() prints kretprobe addresses
Mark Wielaard [Tue, 16 Aug 2011 14:47:34 +0000 (16:47 +0200)]
Bug 11859 - print_ubacktrace() prints kretprobe addresses

runtime/stack.c (_stp_stack_print): Check whether we are printing a user
or kernel stack, only handle [ku]retprobe addresses if the "right" kind.

12 years agoReintroduce timer for transport cmd channel, don't wake_up unconditionally.
Mark Wielaard [Tue, 16 Aug 2011 12:31:29 +0000 (14:31 +0200)]
Reintroduce timer for transport cmd channel, don't wake_up unconditionally.

Revert parts of commit a85c8a "runtime/io.c: Explicitly signal setting of
_stp_exit_flag" and commit 46ac9e "Remove _stp_ctl_work_timer from module
transport layer". Introduce a new test wake_up.exp that shows a deadlock
when sending cmd messages and waking up the reader immediately.

Renamed _stp_ctl_write to _stp_ctl_send, which can be called from
everywhere. Rename _stp_ctl_send to _stp_ctl_send_notify that can be
called from user context in the transport layer itself (this will
immediately notify any readers). Document all places that use
_stp_ctl_send_notify directly to clarify why that is safe.

See http://sourceware.org/ml/systemtap/2011-q3/msg00163.html

12 years agotranslate symbol/unwind extraction: shrink output
Frank Ch. Eigler [Tue, 16 Aug 2011 03:07:27 +0000 (23:07 -0400)]
translate symbol/unwind extraction: shrink output

* translate.cxx (dump_unwindsyms): Use plain decimal formatting
  instead of 0xFF hex for bulk data, to save 1-3 bytes of C source per
  byte.

12 years agoAdd a compat #define FIELD_SIZEOF
Josh Stone [Tue, 16 Aug 2011 00:30:17 +0000 (17:30 -0700)]
Add a compat #define FIELD_SIZEOF

This was added in kernel 2.6.18.  RHEL4 backported this definition, but
it was reported missing in another enterprise distro.  It's an easy
one-line definition to add for compatibility though.

12 years agotweak wording of SYSTEMTAP_DEBUGINFO_PATH env var
Frank Ch. Eigler [Tue, 16 Aug 2011 01:12:14 +0000 (21:12 -0400)]
tweak wording of SYSTEMTAP_DEBUGINFO_PATH env var

12 years agoUpdate testsuite configury to autoconf 2.68 too
Josh Stone [Mon, 15 Aug 2011 23:31:03 +0000 (16:31 -0700)]
Update testsuite configury to autoconf 2.68 too

12 years agoupdate autoconf files for 2.68
Lukas Berk [Mon, 15 Aug 2011 21:15:58 +0000 (17:15 -0400)]
update autoconf files for 2.68

12 years agoPR11775: Add more tapsets to the tapsets.tmpl file
Lukas Berk [Mon, 15 Aug 2011 21:03:03 +0000 (17:03 -0400)]
PR11775: Add more tapsets to the tapsets.tmpl file

doc/SystemTap_Tapset_Reference/tapsets.tmpl: Added tapsets and Network
File Storage chapter

12 years agoMakefile: Add an srpm target
Josh Stone [Mon, 15 Aug 2011 20:00:38 +0000 (13:00 -0700)]
Makefile: Add an srpm target

This target prepares a source rpm without doing a build, useful for
feeding into other build tools, like mock.

12 years agoImplement and use select to wait for cmd channel data.
Mark Wielaard [Sun, 14 Aug 2011 21:07:46 +0000 (23:07 +0200)]
Implement and use select to wait for cmd channel data.

Add a poll implementation to runtime/transport/control.c
(_stp_ctl_poll_cmd) based on the _stp_ctl_ready_q wait queue.
Check whether select is supported in runtime/staprun/mainloop.c
(stp_main_loop) and use pselect with a sigmask that includes
SIGURG to get EINTR notifications whenever an interruptable
event occurred.

12 years agoruntime/io.c: Explicitly signal setting of _stp_exit_flag.
Mark Wielaard [Sat, 13 Aug 2011 21:03:36 +0000 (23:03 +0200)]
runtime/io.c: Explicitly signal setting of _stp_exit_flag.

Call wake_up_interruptible(&_stp_ctl_wq) in _stp_exit()
to signal possible waiters in _stp_ctl_read_cmd().

12 years agoRemove _stp_ctl_work_timer from module transport layer.
Mark Wielaard [Fri, 12 Aug 2011 17:34:20 +0000 (19:34 +0200)]
Remove _stp_ctl_work_timer from module transport layer.

The _stp_ctl_work_timer would trigger every 20ms to check whether
there were cmd messages queued, but not announced yet and to
check the _stp_exit_flag was set.

This commit makes all control messages announce themselves and
check the _stp_exit_flag in the _stp_ctl_read_cmd loop (delivery
is still possibly delayed since the messages are just pushed on
a wait queue).

12 years agoAdd the func_time_stats.stp to the index.
William Cohen [Fri, 12 Aug 2011 13:19:47 +0000 (09:19 -0400)]
Add the func_time_stats.stp to the index.

12 years agoAdd the func_time_stats.stp example.
William Cohen [Fri, 12 Aug 2011 13:18:41 +0000 (09:18 -0400)]
Add the func_time_stats.stp example.

12 years agoClean up func_time_stats information.
William Cohen [Fri, 12 Aug 2011 13:17:18 +0000 (09:17 -0400)]
Clean up func_time_stats information.

12 years agoucontext.stp: Remove STP_NEED_VMA_TRACKER, done through pragma:vma.
Mark Wielaard [Fri, 12 Aug 2011 07:45:48 +0000 (09:45 +0200)]
ucontext.stp: Remove STP_NEED_VMA_TRACKER, done through pragma:vma.

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