]> sourceware.org Git - systemtap.git/log
systemtap.git
13 years agoRead the pipe directly in stap_system_read
Josh Stone [Thu, 10 Feb 2011 22:54:18 +0000 (14:54 -0800)]
Read the pipe directly in stap_system_read

* util.cxx (stap_system_read): Use gnu's stdio_filebuf to read directly
  from the pipe file descriptor.

13 years agoThe logger pmda now builds outside of the pcp source tree.
David Smith [Thu, 10 Feb 2011 20:14:26 +0000 (14:14 -0600)]
The logger pmda now builds outside of the pcp source tree.

* pcp/.gitignore: New file.
* pcp/config.guess: Ditto.
* pcp/config.sub: Ditto.
* pcp/configure.in: Ditto.
* pcp/install-sh: Ditto.
* pcp/src/include/.gitignore: Ditto.
* pcp/src/include/builddefs.in: Ditto.
* pcp/src/include/buildrules: Ditto.
* pcp/src/pmdas/logger/.gitignore: Updated.
* pcp/src/pmdas/logger/GNUmakefile: Modified to build either in the pcp
  source tree or separately.
* pcp/src/pmdas/logger/Install: Updated.
* pcp/src/pmdas/logger/percontext.c: Updated include file paths.

13 years agoMore improvements to the client.exp test harness.
Dave Brolley [Thu, 10 Feb 2011 17:05:55 +0000 (12:05 -0500)]
More improvements to the client.exp test harness.

Changes to account for unanticipated, but correct, output.

13 years agoInitial version of pcp logger pmda.
David Smith [Thu, 10 Feb 2011 15:12:39 +0000 (09:12 -0600)]
Initial version of pcp logger pmda.

13 years agoFix RHBZ#676474 by removing some incorrect asmlinkage() markers.
Roland McGrath [Thu, 10 Feb 2011 06:29:40 +0000 (22:29 -0800)]
Fix RHBZ#676474 by removing some incorrect asmlinkage() markers.

* tapset/nd_syscalls.stp: Remove asmlinkage() for do_fork, do_execve,
  compat_do_execve.

13 years agoTest harness improvements for testing using a compile server.
Dave Brolley [Wed, 9 Feb 2011 20:57:33 +0000 (15:57 -0500)]
Test harness improvements for testing using a compile server.

- Always generate and authorize new server cert when a server starts.
- Only consider online servers when testing for trust in client.exp.

13 years agoDon't report IPv6 entries returned by avahi, for now.
Dave Brolley [Wed, 9 Feb 2011 20:57:08 +0000 (15:57 -0500)]
Don't report IPv6 entries returned by avahi, for now.

13 years agoFix a README typo of CONFIG_MODULE_UNLOAD
Josh Stone [Wed, 9 Feb 2011 20:36:56 +0000 (12:36 -0800)]
Fix a README typo of CONFIG_MODULE_UNLOAD

(reported by "wil_" on #systemtap)

13 years agoFix the indentation of systemtap_session::usage
Josh Stone [Tue, 8 Feb 2011 23:06:25 +0000 (15:06 -0800)]
Fix the indentation of systemtap_session::usage

13 years agoClean up exit paths
Josh Stone [Tue, 8 Feb 2011 23:06:25 +0000 (15:06 -0800)]
Clean up exit paths

We need to strive not to leave files/processes around, so exit() calls
are reduced to only places where nothings been allocated yet.  Errors
are rarely so fatal to require immediate exit.

13 years agoUse a ControlMaster for ssh remotes
Josh Stone [Tue, 8 Feb 2011 23:06:25 +0000 (15:06 -0800)]
Use a ControlMaster for ssh remotes

We can start the ssh remote with a ControlMaster connection, using a
unique socket in the tmpdir, and then each subsequent remote command can
reuse that connection.

* remote.cxx (ssh_remote::open_control_master): Connect to the remote
  host with a ControlPath that later commands can reuse.  The relevant
  options are saved in member ssh_opts.
  (ssh_remote::close_control_master): Ask the control process to exit.
  (ssh_remote::get_uname, ::start, ::finish): Start using ssh_opts, so
  the ControlPath is always specified.

13 years agoPrecreate the main tmpdir
Josh Stone [Tue, 8 Feb 2011 23:06:25 +0000 (15:06 -0800)]
Precreate the main tmpdir

Create the primary temp dir early on, so we have a place to store
temporary data for remotes (like control socket paths).

* main.cxx (main): Create the tmpdir before remotes are started.
  (create_temp_dir, remove_temp_dir): Tolerate repeat calls.

13 years agoUse a proper session copier when cloning
Josh Stone [Tue, 8 Feb 2011 23:06:25 +0000 (15:06 -0800)]
Use a proper session copier when cloning

* session.cxx (systemtap_session): Define copy and assignment
  constructors without implementation, to avoid implicit behavior.
  Add a new copy constructor with a new kernel/arch.
  (systemtap_session::clone): Use the new copier.

13 years agoRework setup_server to ensure that servers get shut down on error.
Dave Brolley [Tue, 8 Feb 2011 22:07:52 +0000 (17:07 -0500)]
Rework setup_server to ensure that servers get shut down on error.

Also reqorganize in order to save more output from server smoke tests.

13 years agoaccept and ignore %l (long) option in *printf family
Stan Cox [Tue, 8 Feb 2011 15:05:08 +0000 (10:05 -0500)]
accept and ignore %l (long) option in *printf family

* staptree.cxx (print_format::string_to_components): Parse 'l' type modifier.
* int1.stp: Test '#' flag and 'l' type modifier.
* int1.exp: Likewise.

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
Dave Brolley [Mon, 7 Feb 2011 20:04:53 +0000 (15:04 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

Conflicts:
main.cxx

13 years agoPR 11844 - --use-server-on-error option
Dave Brolley [Mon, 7 Feb 2011 20:00:15 +0000 (15:00 -0500)]
PR 11844 - --use-server-on-error option

- Now defaults to 'off'
- Errors no longer automatically result in retry using the server.
  This is done only for certain whitelisted errors.
  systemtap_session::set_try_server() is called for these errors.

13 years agoFix two more 'temporary' typos
Lukas Berk [Mon, 7 Feb 2011 18:19:26 +0000 (13:19 -0500)]
Fix two more 'temporary' typos

13 years agoFix typo in message (temorary -> temporary) which broke compile server.
Dave Brolley [Mon, 7 Feb 2011 17:58:25 +0000 (12:58 -0500)]
Fix typo in message (temorary -> temporary) which broke compile server.

stap-server-connect uses this message to locate the temp directory.

13 years agoAdd NEWS item for process.mark $$parms
Stan Cox [Sat, 5 Feb 2011 20:59:07 +0000 (15:59 -0500)]
Add NEWS item for process.mark $$parms

13 years agoSupport $$parms for sdt.
Stan Cox [Fri, 4 Feb 2011 21:25:35 +0000 (16:25 -0500)]
Support $$parms for sdt.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor): Add
visit_target_symbol_arg visit_target_symbol_context
(visit_target_symbol_context): Handle $$name, $$provider, $$parms
(visit_target_symbol_arg): Handle symbol
* sdt_misc.exp:  Test $$parms.

13 years agoPR 12428 - Document Compile Server/Client Setup and Admin
Dave Brolley [Fri, 4 Feb 2011 18:32:37 +0000 (13:32 -0500)]
PR 12428 - Document Compile Server/Client Setup and Admin

- New README.unprivileged
- Update info about unprivileged mode in stap.1 and in stap-server.8
- Don't bother autoconfing paths in stap-server.8. Refer to stappaths
  instead.

13 years agoAdd gettext-devel build requirement to spec file.
William Cohen [Fri, 4 Feb 2011 13:27:33 +0000 (08:27 -0500)]
Add gettext-devel build requirement to spec file.

13 years agoAvoid using $env(HOSTNAME)
William Cohen [Thu, 3 Feb 2011 21:59:24 +0000 (16:59 -0500)]
Avoid using $env(HOSTNAME)

When running crontab jobs the systemtap.server/server.exp tests
would not run because $env(HOSTNAME) is unset. HOSTNAME is
set by the bash shell and is not available in crontab run tests.
An equivalent [info hostname] is used in its place.

13 years agoRevert accidental gettext clobbering
Josh Stone [Thu, 3 Feb 2011 19:45:33 +0000 (11:45 -0800)]
Revert accidental gettext clobbering

13 years agoWrapped lines, fixed some white space issues.
Lukas Berk [Thu, 3 Feb 2011 14:30:02 +0000 (09:30 -0500)]
Wrapped lines, fixed some white space issues.

Some comments with the original strings have been left in for
ease of comparison. They will be removed for the final I18N commit.

13 years agogettext changes in main.cxx and session files
Lukas Berk [Thu, 3 Feb 2011 14:16:24 +0000 (09:16 -0500)]
gettext changes in main.cxx and session files

to invoke run $ xgettext -c -k_ main.cxx session.*
not every string has been set up for gettext translation, at this
point it is just to make sure it doesn't break stap.  The more
complicated strings will be I18N in time.

13 years agoAutoconf groundwork for I18N of systemtap
Lukas Berk [Thu, 3 Feb 2011 14:10:04 +0000 (09:10 -0500)]
Autoconf groundwork for I18N of systemtap

TODO: localedir needs to be a variable and not hard-coded
further changes to files for .po file output are upcoming.

13 years agoCleanup to improve sdt on ppc.
Stan Cox [Tue, 1 Feb 2011 22:08:12 +0000 (17:08 -0500)]
Cleanup to improve sdt on ppc.

* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol):
Use variable shift amount.  Don't cast unless probe type 3.
* sdt_misc.exp (type_flags): Don't use sup_flags
* sdt_types.c: Check __SIZEOF_SIZE_T__ for long long tests.

13 years agoAssert that TMPDIR, if set, is a boring path
Josh Stone [Fri, 28 Jan 2011 23:02:50 +0000 (15:02 -0800)]
Assert that TMPDIR, if set, is a boring path

We don't want any excitement in the paths we must use.
e.g. Kbuild doesn't cope well with spaces in the M="/module path"

* session.cxx (systemtap_session::check_options): Restrict the
  characters allowed in TMPDIR to a universally-safe set.
* testsuite/parseko/cmdline22.stp: New, check that TMPDIR spaces are
  not allowed, even if that path really exists.

13 years agoMerge branch 'master' of ssh://sourceware.org/git/systemtap
William Cohen [Fri, 28 Jan 2011 21:18:40 +0000 (16:18 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/systemtap

13 years agoEnsure systemtap.stress/conversions.exp generates individual errors and warnings
William Cohen [Fri, 28 Jan 2011 21:12:08 +0000 (16:12 -0500)]
Ensure systemtap.stress/conversions.exp generates individual errors and warnings

PR12168 eliminated duplicated error messages and changed the count of
ERROR and WARNING messages. Adding the "-vv" option turns off the
duplication eliminate and allows an accurate count of the number
of times ERROR and WARNING messages occur.

13 years agoPR 11844 - --use-server-on-error option
Dave Brolley [Fri, 28 Jan 2011 19:55:29 +0000 (14:55 -0500)]
PR 11844 - --use-server-on-error option

- Mechanism is in session.cxx, session.h.
- Code in main.cxx:passes_0_4 calls set_try_server upon compilation
  errors in phases 0-4.
- set_try_server (systemtap_session:dont_try_server) can be set for
  individual errors which do not warrant a retry (e.g. syntax errors)
  to override.

13 years agoMake sure NSS and NSPR are properly initialized and shutdown.
Dave Brolley [Wed, 26 Jan 2011 22:15:35 +0000 (17:15 -0500)]
Make sure NSS and NSPR are properly initialized and shutdown.

- rpmReadConfigFiles initializes NSS, but does not shut it down.
  We now call rpmFreeCrypto if available or call NSS_Shutdown directly otherwise
  in missing_rpm_enlist
- In some versions of NSPR, PR_Init must be called once and only once before NSS_Init or
  NSS_InitReadOnly is called. In later versions, it is unnecessary and is ignored.
  systemtap_session::NSPR_Initialized is now static so that it is
  shared by all active session objects.

13 years agoRemove unused variables and calls which initialized them.
Dave Brolley [Wed, 26 Jan 2011 20:54:53 +0000 (15:54 -0500)]
Remove unused variables and calls which initialized them.

13 years agoFixed BZ559599 by making target_set.stp use syscall probes for ia64.
David Smith [Fri, 28 Jan 2011 18:58:26 +0000 (12:58 -0600)]
Fixed BZ559599 by making target_set.stp use syscall probes for ia64.

* tapset/target_set.stp: Dwarfless probes don't work on ia64, so fall back
  to the 'syscall' probes (as we do for kernels < 2.6.18).

13 years agoFixed BZ661424 by checking for $prev_p first in __scheduler.ctxswitch.kp.
David Smith [Thu, 27 Jan 2011 20:54:13 +0000 (14:54 -0600)]
Fixed BZ661424 by checking for $prev_p first in __scheduler.ctxswitch.kp.

* tapset/scheduler.stp: Checks for '$prev_p' before checking for '$prev'
  so that i386 RHEL5 (which has both arguments) works correctly.

13 years agoBZ673085: amplify documentation on initialization of probe alias variables
Frank Ch. Eigler [Thu, 27 Jan 2011 14:54:08 +0000 (09:54 -0500)]
BZ673085: amplify documentation on initialization of probe alias variables

13 years agoAvoid use of limits include in sdt. Sign extend signed HI/SI values.
Stan Cox [Wed, 26 Jan 2011 15:10:01 +0000 (10:10 -0500)]
Avoid use of limits include in sdt.  Sign extend signed HI/SI values.

* sdt.h (limits): Remove.
(__sdt_type): Predefine type signness.
* tapsets.cxx (sdt_uprobe_var_expanding_visitor::visit_target_symbol):
Sign extend signed HI/SI values.
* sdt_asm.stp (rN): Add rNd tests

13 years agostap-report: also add a dummy "stap -vv -p4 ..." run
Frank Ch. Eigler [Wed, 26 Jan 2011 13:32:00 +0000 (08:32 -0500)]
stap-report: also add a dummy "stap -vv -p4 ..." run

13 years agostap-report: dump more state
Frank Ch. Eigler [Wed, 26 Jan 2011 13:21:57 +0000 (08:21 -0500)]
stap-report: dump more state

$XDG_DATA_* since that can interfere, and /proc*/*/kprobes*, for completeness

13 years agoGCC 4.6 unused-variable warnings
Frank Ch. Eigler [Mon, 24 Jan 2011 18:30:04 +0000 (13:30 -0500)]
GCC 4.6 unused-variable warnings

We set a couple of variables that later code doesn't use.  GCC 4.6
warns about them, which our C*FLAGS=-Werror turned into a build failure.
Worked around these by adding a (void) var; to add a dummy use.

13 years agoadding #ifdef CLONE_STOPPED to stop module compilation error
Lukas Berk [Mon, 24 Jan 2011 17:09:29 +0000 (12:09 -0500)]
adding #ifdef CLONE_STOPPED to stop module compilation error

13 years agoAudit some minus/dash/hyphen use in manpages
Josh Stone [Fri, 21 Jan 2011 23:44:41 +0000 (15:44 -0800)]
Audit some minus/dash/hyphen use in manpages

Groff treats "-" as a hyphen, U+2010.  When the intention is to produce
a literal ASCII minus sign, U+002D, it must be "\-".  This matters for
command-line options and examples to be copyable from the manpage.

I've updated cases that should obviously be escaped.  At a glance, I
think we have other cases that could be normal hyphens, not escaped, but
that's less of an issue.

13 years agoAdd the cache options from commit d105f66 to stap.1
Josh Stone [Fri, 21 Jan 2011 23:25:35 +0000 (15:25 -0800)]
Add the cache options from commit d105f66 to stap.1

13 years agoAdd support for real URI syntax in remote targets
Josh Stone [Fri, 21 Jan 2011 22:06:52 +0000 (14:06 -0800)]
Add support for real URI syntax in remote targets

We still only support SSH for now, but this opens the door for other
protocols.  All of the following should work:

  --remote host
  --remote user@host
  --remote ssh://host/
  --remote ssh://user@host/

URI paths, queries, and fragments are all parsed, but don't have any
meaning yet, so they're treated as an error.  I can imagine using this
for protocol-specific options though, e.g. ssh://host/?Compression=yes

* remote.cxx (class uri_decoder): New, breaks down a URI string.
  (ssh_remote::ssh_remote): Add a constructor using a uri_decoder.
  (remote::create): Redirect based on the scheme of URI-looking remote
  targets.  Assume all others are still plain [user@]host for ssh.

13 years agoPR 11862: remove obsolete stap-client script and friends
Dave Brolley [Fri, 21 Jan 2011 16:21:37 +0000 (11:21 -0500)]
PR 11862: remove obsolete stap-client script and friends

Rework and improve warnings for missing NSS and avahi headers, libs and tools

13 years agoPR 11862: remove obsolete stap-client script and friends
Dave Brolley [Wed, 19 Jan 2011 22:15:31 +0000 (17:15 -0500)]
PR 11862: remove obsolete stap-client script and friends

- Integrate stap-client-connect.c into csclient.cxx
- Remove stap-client-connect.c

13 years agoPR 11862: remove obsolete stap-client script and friends
Dave Brolley [Wed, 19 Jan 2011 20:36:56 +0000 (15:36 -0500)]
PR 11862: remove obsolete stap-client script and friends

- Remove deprecated scripts
- Remove parts of stap-env used only by the removed scripts
- Remove man pages for removed scripts
- Remove parts of stap-client-connect which allowed it to be built
  as a standalone tool (used by stap-client).
- Update spec file. systemtap-client package removed.

13 years agoImprove sdt asm test coverage.
Stan Cox [Fri, 21 Jan 2011 03:10:36 +0000 (22:10 -0500)]
Improve sdt asm test coverage.

* sdt_asm.S:  Improve coverage of tested registers and values.
* sdt_asm.stp: Likewise.

13 years agoPR12413, Provide TID information in kprocess.create and kprocess.release
Jan Kratochvil [Thu, 20 Jan 2011 21:40:26 +0000 (16:40 -0500)]
PR12413, Provide TID information in kprocess.create and kprocess.release

13 years agoPR12412: Make the text agree with the example (should be reads)
William Cohen [Thu, 20 Jan 2011 20:47:11 +0000 (15:47 -0500)]
PR12412: Make the text agree with the example (should be reads)

13 years agoAllow sdt to avoid application defined min/max macros.
Stan Cox [Wed, 19 Jan 2011 20:52:14 +0000 (15:52 -0500)]
Allow sdt to avoid application defined min/max macros.

* sdt.h:  Surround limits inclusion with push_macro and pop_macro.

13 years agoPR12419: fix x86 uprobes decoding of "repnz ret"
Roland McGrath [Wed, 19 Jan 2011 19:23:43 +0000 (11:23 -0800)]
PR12419: fix x86 uprobes decoding of "repnz ret"

13 years agoBZ669082: support powerpc prior to 2.6.15, resolving conflict with PR4186
Frank Ch. Eigler [Wed, 19 Jan 2011 18:53:50 +0000 (13:53 -0500)]
BZ669082: support powerpc prior to 2.6.15, resolving conflict with PR4186

* buildrun.cxx (compile_pass): Omit passing of ARCH=foo for
  ancient powerpc.  This enables native ARCH=ppc64 builds,
  but sacrifices ppc-target cross-architecture cross-compilation.
  (make_tracequery_kmod, make_typequery_kmod): Ditto.

13 years agoPR12411 cont'd: use enum type decl
Frank Ch. Eigler [Wed, 19 Jan 2011 13:20:22 +0000 (08:20 -0500)]
PR12411 cont'd: use enum type decl

* tapsets.cxx (sdt_uprobe_var_expanding_visitor): Make regwidths
  an enum type decl, not an anonymous-enum-typed variable.  Move
  DRI macro #define/#undef just around its use.

13 years agoRHBZ669751: old ia64 kernels lack task_pt_regs()
Frank Ch. Eigler [Tue, 18 Jan 2011 20:54:51 +0000 (15:54 -0500)]
RHBZ669751: old ia64 kernels lack task_pt_regs()

... so define it in terms of ia64_task_regs()

13 years agoSwitch to using a register width table instead of heuristic code.
Stan Cox [Wed, 19 Jan 2011 12:09:01 +0000 (07:09 -0500)]
Switch to using a register width table instead of heuristic code.

       * tapsets.cxx (sdt_uprobe_var_expanding_visitor): Add DRI and regwidths.
       Change dwarf_regs to be a regname/regwidth pair.  Change initializer.
       * (sdt_uprobe_var_expanding_visitor::visit_target_symbol):  Use it.

13 years agoFixed BZ669740 by making target_set.stp use syscall probes in kernels < 2.6.18.
David Smith [Tue, 18 Jan 2011 20:14:13 +0000 (14:14 -0600)]
Fixed BZ669740 by making target_set.stp use syscall probes in kernels < 2.6.18.

* tapset/target_set.stp: Dwarfless probes don't work in kernels < 2.6.18.
  So, fall back to 'syscall' probes for those kernels (instead of
  'nd_syscall' probes.

13 years agoPR 11445: Check that assert_is_my_proc check is within all uprobes/utrace callback...
Dave Brolley [Tue, 18 Jan 2011 19:39:08 +0000 (14:39 -0500)]
PR 11445: Check that assert_is_my_proc check is within all uprobes/utrace callback entry points

Add comment explaining why a check for is_myproc() is not generated as a
safety net for process.end probes and their variants.

13 years agosystemtap.apps infrastructure fixes.
Stan Cox [Mon, 17 Jan 2011 22:47:43 +0000 (17:47 -0500)]
systemtap.apps infrastructure fixes.

mysql.exp (stap-mysql.sh): Use push/pop_macro to avoid mysql max/min macros.
xulrunner.exp (stap-xul.sh): Make JAVA_HOME platform independent.

13 years agoCleanup warnings caused by CFLAGS correction.
Dave Brolley [Mon, 17 Jan 2011 18:53:56 +0000 (13:53 -0500)]
Cleanup warnings caused by CFLAGS correction.

13 years agoMerge branch 'master' of ssh://sources.redhat.com/git/systemtap
Dave Brolley [Mon, 17 Jan 2011 18:44:34 +0000 (13:44 -0500)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap

Conflicts:
configure
testsuite/configure

13 years agoConfiguration problems.
Dave Brolley [Mon, 17 Jan 2011 18:29:50 +0000 (13:29 -0500)]
Configuration problems.

- CFLAGS was being cleared in configure.ac (oldCFLAGS typo)
- CXXFLAGS was not always being set (CXFXLAGS typo)
- pick up $(AM_CFLAGS) and @PIECFLAGS@ in all C compilations in Makefile.am

13 years agobump version numbers to 1.5, for future release cycle
Frank Ch. Eigler [Mon, 17 Jan 2011 17:45:10 +0000 (12:45 -0500)]
bump version numbers to 1.5, for future release cycle

13 years agodatestamp release release-1.4
Frank Ch. Eigler [Mon, 17 Jan 2011 11:31:41 +0000 (06:31 -0500)]
datestamp release

13 years agoREADME: build instructions suggest elfutils version 0.151
Frank Ch. Eigler [Sat, 15 Jan 2011 00:48:16 +0000 (19:48 -0500)]
README: build instructions suggest elfutils version 0.151

13 years agoPR12399: make sdt.h semaphores visibility("hidden")
Frank Ch. Eigler [Fri, 14 Jan 2011 22:39:21 +0000 (17:39 -0500)]
PR12399: make sdt.h semaphores visibility("hidden")

13 years agoNEWS: sdt.h v3
Frank Ch. Eigler [Fri, 14 Jan 2011 17:38:24 +0000 (12:38 -0500)]
NEWS: sdt.h v3

13 years agoPR 10657: Document changes in NEWS and in stap.1.
Dave Brolley [Fri, 14 Jan 2011 21:00:25 +0000 (16:00 -0500)]
PR 10657: Document changes in NEWS and in stap.1.

13 years agoFix myproc-unprivileged in embedded_expr
Josh Stone [Fri, 14 Jan 2011 19:13:30 +0000 (11:13 -0800)]
Fix myproc-unprivileged in embedded_expr

The macro assert_is_myproc() forms a statement, so we need to wrap it
in ({}) to use it in an expression list.

* translate.cxx (c_unparser::visit_embedded_expr): Wrap stmt as expr.

13 years agoPR 10657 - semi-unprivileged tapset embedded-C functions.
Dave Brolley [Fri, 14 Jan 2011 18:19:21 +0000 (13:19 -0500)]
PR 10657 - semi-unprivileged tapset embedded-C functions.

Including the comment /* myproc-unprivileged */ within an embedded C
tapset function or embedded C expression makes it available for use
by unprivileged users and also automatically adds a call to
assert_is_myproc() within the function or expression (i.e. it is
equivalent to including the comment /* unprivileged */ and
manually adding the the call to assert_is_myproc).

All instances within the tapset source tree have been updated.

13 years agoPR11756 - adding warnings for deprecated declarations
Lukas Berk [Fri, 14 Jan 2011 15:32:47 +0000 (10:32 -0500)]
PR11756 - adding warnings for deprecated declarations
Added the --version-check  flag, this will check if systemtap
constructors being used are version dependent. If so, a warning
detailing what syntax element is displayed.

13 years agoPR12115: defeat uninitialized-variable warnings
Frank Ch. Eigler [Fri, 14 Jan 2011 00:21:19 +0000 (19:21 -0500)]
PR12115: defeat uninitialized-variable warnings

13 years agoPR12115: defeat uninitialized-variable warning
Frank Ch. Eigler [Fri, 14 Jan 2011 00:21:19 +0000 (19:21 -0500)]
PR12115: defeat uninitialized-variable warning

13 years agoNEWS: tweak --remote blurb wording
Frank Ch. Eigler [Thu, 13 Jan 2011 20:57:47 +0000 (15:57 -0500)]
NEWS: tweak --remote blurb wording

13 years agoAUTHORS bump
Josh Stone [Thu, 13 Jan 2011 03:51:40 +0000 (19:51 -0800)]
AUTHORS bump

13 years agoFix for undefined STAPCONF_PERF_STRUCTPID
Josh Stone [Thu, 13 Jan 2011 02:09:09 +0000 (18:09 -0800)]
Fix for undefined STAPCONF_PERF_STRUCTPID

13 years agoFix paragraph indentation of ssl options
Josh Stone [Thu, 13 Jan 2011 01:20:20 +0000 (17:20 -0800)]
Fix paragraph indentation of ssl options

13 years agoDisable auto-unpriv when --remote is used
Josh Stone [Thu, 13 Jan 2011 01:19:09 +0000 (17:19 -0800)]
Disable auto-unpriv when --remote is used

13 years agoPR12115: Document --remote in NEWS, stap.1, and --help
Josh Stone [Thu, 13 Jan 2011 01:18:17 +0000 (17:18 -0800)]
PR12115: Document --remote in NEWS, stap.1, and --help

13 years agoMerge branch 'master' into remote
Josh Stone [Wed, 12 Jan 2011 20:13:06 +0000 (12:13 -0800)]
Merge branch 'master' into remote

13 years agoIntegrate sdt-compat.h into testsuite sdt.h
Stan Cox [Wed, 12 Jan 2011 03:17:22 +0000 (22:17 -0500)]
Integrate sdt-compat.h into testsuite sdt.h

Makefile.am: Use sdt_types.h instead of sdt-compat.h
Makefile.in: Likewise.
tapsets.cxx: Likewise.
testsuite/sys/sdt.h: Integrate sdt-compat.h.
sdt-compat.h: Remove.
sdt_types.h: New.

13 years agoPR11203: Provide default init functions for initscript/systemtap.
Dave Brolley [Tue, 11 Jan 2011 16:08:08 +0000 (11:08 -0500)]
PR11203: Provide default init functions for initscript/systemtap.

Used on plattforms where /etc/rc.d/init.d/functions is not available.

13 years agoPR11203: Provide default init functions for stap-server.
Dave Brolley [Mon, 10 Jan 2011 19:42:46 +0000 (14:42 -0500)]
PR11203: Provide default init functions for stap-server.

Used on plattforms where /etc/rc.d/init.d/functions is not available.

13 years agotapset compat: irq tracepoints to use @cast() for $action
Frank Ch. Eigler [Mon, 10 Jan 2011 18:41:26 +0000 (13:41 -0500)]
tapset compat: irq tracepoints to use @cast() for $action

13 years agoyear bump
Frank Ch. Eigler [Mon, 10 Jan 2011 17:01:35 +0000 (12:01 -0500)]
year bump

13 years agoPR12168: fix testcase to unsuppress warnings
Frank Ch. Eigler [Mon, 10 Jan 2011 16:53:37 +0000 (11:53 -0500)]
PR12168: fix testcase to unsuppress warnings

13 years agocompatibility: perf_event.h updates for kernel 2.6.37
Frank Ch. Eigler [Fri, 7 Jan 2011 21:22:49 +0000 (16:22 -0500)]
compatibility: perf_event.h updates for kernel 2.6.37

* runtime/autoconf-perf-structpid.c: New file.
* buildrun.cxx: Use it to define STAPCONF_PERF_STRUCTPID.
* runtime/perf.c: Respect it for perf_event_create_kernel_counter param 3.

13 years agopfiles test: adapt to upstream kernel commit 53c3fa206
Frank Ch. Eigler [Fri, 7 Jan 2011 19:04:54 +0000 (14:04 -0500)]
pfiles test: adapt to upstream kernel commit 53c3fa206

sk_peercred->pid -> sk_peer_pid->....

13 years agotestsuite: accept post-PR11736 hit-count message
Frank Ch. Eigler [Fri, 7 Jan 2011 19:03:38 +0000 (14:03 -0500)]
testsuite: accept post-PR11736 hit-count message

13 years agoInelegant workaround for systemtap.apps mysql.exp's use of min/max
Stan Cox [Fri, 7 Jan 2011 21:14:52 +0000 (16:14 -0500)]
Inelegant workaround for systemtap.apps mysql.exp's use of min/max

* mysql.exp (do_abi_check): skip it.
(probes_mysql.h): #undef min/max prior to sdt.h inclusion, then re-#define

13 years agoParenthesize probe arguments properly.
Stan Cox [Tue, 4 Jan 2011 22:13:37 +0000 (17:13 -0500)]
Parenthesize probe arguments properly.

* sdt-compat.h (STAP_CAST): Parenthesize.
(STAP_PROBE{1,10}): Parenthisize kprobe arguments too.

* sdt_misc.c (buz): Test probing a boolean expression.

* sdt_misc.exp (sup_flags): Compile tests with -Wall -Werror

* sdt_misc.stp (test_probe_1): New.

* sdt_misc_.d (test_probe_1): New.

* sdt_types.c (arr_struct, primary_colors_var): Only declare if needed.

13 years agoPR12172: make implied --unprivileged --use-server emit messages only if verbose
Frank Ch. Eigler [Thu, 23 Dec 2010 16:30:04 +0000 (11:30 -0500)]
PR12172: make implied --unprivileged --use-server emit messages only if verbose

13 years agoConditionalize sdt tests resulting in templates with anonymous types.
Stan Cox [Wed, 22 Dec 2010 18:44:47 +0000 (13:44 -0500)]
Conditionalize sdt tests resulting in templates with anonymous types.

* sdt_types.c (arr_struct, primary_colors, incomplete_struct_type):
Make conditional.

* sdt_types.stp: Likewise.

13 years agoPR12172: make unprivileged mode default under certain conditions.
Dave Brolley [Wed, 22 Dec 2010 16:16:27 +0000 (11:16 -0500)]
PR12172: make unprivileged mode default under certain conditions.

--unprivileged --use-server is now the default for invocations requiring
phase 5 for members of the group stapusr who are not also members of
the group stapdev.

13 years agoFixed PR12338 by updating softirq.entry/softirq.exit probes for 2.6.37+.
David Smith [Tue, 21 Dec 2010 21:53:33 +0000 (15:53 -0600)]
Fixed PR12338 by updating softirq.entry/softirq.exit probes for 2.6.37+.

* tapset/irq.stp: Added 'vec_nr' variable to softirq.entry/softirq.exit
  probes.  Used @defined() to make sure old variables are present.
* testsuite/buildok/irq-detailed.stp: Updated softirq.entry/softirq.exit
  test.

13 years agoEditing the Beginner's guide section on target variables.
William Cohen [Tue, 21 Dec 2010 19:08:36 +0000 (14:08 -0500)]
Editing the Beginner's guide section on target variables.

13 years agoMake syscall.nfsservctl* tests optional for kernel 2.6.35.9-64.fc14.x86_64.
David Smith [Tue, 21 Dec 2010 16:33:15 +0000 (10:33 -0600)]
Make syscall.nfsservctl* tests optional for kernel 2.6.35.9-64.fc14.x86_64.

* testsuite/buildok/syscalls2-detailed.stp: Make syscall.nfsservctl and
  syscall.nfsservctl.return tests optional.

13 years agotweak wording/suppressibility of .function/.statement warning
Frank Ch. Eigler [Tue, 21 Dec 2010 02:57:54 +0000 (21:57 -0500)]
tweak wording/suppressibility of .function/.statement warning

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